From 6f5bb80b3a50b7c5df65a647d2988c9c9a7cc0da Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 13 Jan 2024 00:20:36 +0000 Subject: [PATCH] page: remove invalid attributes, closing tags, useless trailing slashes --- src/front/cobalt.js | 5 +++++ src/modules/pageRender/page.js | 27 ++++++++++++++------------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/front/cobalt.js b/src/front/cobalt.js index 31196215..509e54cb 100644 --- a/src/front/cobalt.js +++ b/src/front/cobalt.js @@ -614,6 +614,11 @@ window.onload = () => { window.history.replaceState(null, '', window.location.pathname); notificationCheck(); + + // fix for animations not working in Safari + if (isIOS) { + document.addEventListener('touchstart', () => {}, true); + } } eid("url-input-area").addEventListener("keydown", (e) => { button(); diff --git a/src/modules/pageRender/page.js b/src/modules/pageRender/page.js index 9e3d509c..7d754717 100644 --- a/src/modules/pageRender/page.js +++ b/src/modules/pageRender/page.js @@ -43,7 +43,7 @@ export default function(obj) { - + ${t("AppTitleCobalt")} @@ -73,7 +73,7 @@ export default function(obj) { - + @@ -149,10 +149,10 @@ export default function(obj) { body: `${t("SupportSelfTroubleshooting")}` + `${socialLink(emoji("📢"), t("StatusPage"), links.statusPage)}` + `${socialLink(emoji("🔧"), t("TroubleshootingGuide"), links.troubleshootingGuide)}` - + `
` + + `
` + `${t("FollowSupport")}` + `${socialLinks(obj.lang)}` - + `
` + + `
` + `${t("SourceCode")}` + `${socialLink(emoji("🐙"), repo.replace("https://github.com/", ''), repo)}` }, { @@ -196,7 +196,7 @@ export default function(obj) { `width="${changelogManager("banner")["width"]}" ` + `height="${changelogManager("banner")["height"]}" ` + `onerror="this.style.opacity=0" loading="lazy">`+ - ` + ` `: '', raw: true }, { @@ -246,13 +246,14 @@ export default function(obj) { text: `
${t('DonateSub')}
`, raw: true }, { - text: `
+ text: ` +
`+ - ` + `onerror="this.style.opacity=0" loading="lazy">
`, raw: true }, { @@ -572,9 +573,9 @@ export default function(obj) {
- + - +
@@ -612,7 +613,7 @@ export default function(obj) { }])}
- - + `