From 03d07ec8d78292e54dceb631d7c6a83508e603b9 Mon Sep 17 00:00:00 2001 From: Kale-Ko Date: Fri, 14 Oct 2022 20:59:11 +0000 Subject: [PATCH] Fix some stuff up --- .deepsource.toml | 2 +- index.html | 26 +++++++++++++------------- style/style.css | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 49ed973..aef764a 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -11,4 +11,4 @@ enabled = true [analyzers.meta] environment = [ "browser" - ] + ] \ No newline at end of file diff --git a/index.html b/index.html index 8eb342f..67a320c 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,8 @@ - + Emotecraft Wiki @@ -17,27 +17,27 @@ - + -
+
-
+ @@ -89,9 +89,9 @@ caches.open("cache").then(cache => { cache.keys().then(keys => { - keys.forEach(key => { + for (var key of keys) { cache.delete(key) - }) + } }) }) @@ -108,11 +108,11 @@ console.groupEnd() if (lang == null) { - navigator.languages.forEach(language => { + for (var language of navigator.languages) { if (lang == null && languages.includes(language)) { lang = language } - }) + } if (lang == null) { lang = "en" @@ -200,11 +200,11 @@ var downloads = document.querySelectorAll("a.download") - downloads.forEach(download => { + for (var download of downloads) { fetch(download.href).then(res => res.blob()).then(data => { download.href = URL.createObjectURL(data) }) - }) + } if (scrollElement != null && scrollElement != "top" && document.querySelector("#" + scrollElement) != null) document.querySelector("#" + scrollElement).scrollIntoView({ block: "center", inline: "center" }) diff --git a/style/style.css b/style/style.css index 9f22a0d..99c36ad 100644 --- a/style/style.css +++ b/style/style.css @@ -1,4 +1,4 @@ -@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400..900"); +@import url("https://fonts.googleapis.com/css?family=Roboto%20Slab:regular,bold"); html { --background-color: radial-gradient(#ffffff 25%, #e0e0e0 75%);