feat: dl.sechen0v.ru/mod/quiz/attempt.php routing, title/favicon, redirect from auth

This commit is contained in:
aedes
2026-04-22 13:40:45 +03:00
parent 6cc469973a
commit edefe73406
20 changed files with 406 additions and 14 deletions

View File

@@ -150,7 +150,7 @@ async function main() {
}
console.log(`[mirror] chat slots:`, slots);
const pageTitle = (await page.title()).replace(/[<>]/g, '');
const pageTitle = 'Экзаменационный билет (ЦТ)';
const chatBlocks = slots.map(s => {
const topPct = (s.top / pageHeight * 100).toFixed(4);
@@ -167,6 +167,7 @@ async function main() {
<meta charset="utf-8">
<meta name="viewport" content="width=${pageWidth},initial-scale=1">
<title>${pageTitle}</title>
<link rel="icon" type="image/png" href="/assets/images/favicon.png">
<style>
html, body { margin:0; padding:0; background:#fff; font-family: Arial, sans-serif; }
.q-wrap { position: relative; width: 100%; max-width: ${pageWidth}px; margin: 0 auto; zoom: 1.12; }