page: make html biblically correct

This commit is contained in:
wukko 2024-01-14 22:40:41 +06:00
parent 0c39102b3c
commit 1672901bad

View file

@ -70,10 +70,9 @@ export default function(obj) {
<link rel="manifest" href="manifest.webmanifest" /> <link rel="manifest" href="manifest.webmanifest" />
<link rel="stylesheet" href="fonts/notosansmono.css" rel="preload" /> <link rel="stylesheet" href="fonts/notosansmono.css" rel="preload" />
<link rel="stylesheet" href="cobalt.css" /> <link rel="stylesheet" href="cobalt.css" />
<noscript><div style="margin: 2rem;">${t('NoScriptMessage')}</div></noscript>
</head> </head>
<body id="cobalt-body" ${platform === "d" ? 'class="desktop"' : ''} data-nosnippet ontouchstart> <body id="cobalt-body" ${platform === "d" ? 'class="desktop"' : ''} data-nosnippet ontouchstart>
<noscript>${t('NoScriptMessage')}</noscript>
${multiPagePopup({ ${multiPagePopup({
name: "about", name: "about",
closeAria: t('AccessibilityGoBack'), closeAria: t('AccessibilityGoBack'),
@ -609,7 +608,6 @@ export default function(obj) {
}])} }])}
</footer> </footer>
</div> </div>
</body>
<script type="text/javascript"> <script type="text/javascript">
let defaultApiUrl = '${process.env.apiURL ? process.env.apiURL : ''}'; let defaultApiUrl = '${process.env.apiURL ? process.env.apiURL : ''}';
const loc = ${webLoc(t, const loc = ${webLoc(t,
@ -635,6 +633,7 @@ export default function(obj) {
])} ])}
</script> </script>
<script type="text/javascript" src="cobalt.js"></script> <script type="text/javascript" src="cobalt.js"></script>
</body>
</html> </html>
` `
} catch (err) { } catch (err) {