summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/img/blinkies/bee.gifbin0 -> 4066 bytes
-rw-r--r--static/img/blinkies/begaydocrime.gifbin0 -> 2288 bytes
-rw-r--r--static/img/blinkies/bored.gifbin0 -> 2475 bytes
-rw-r--r--static/img/blinkies/construction.gifbin1761 -> 0 bytes
-rw-r--r--static/img/blinkies/eepy.gifbin0 -> 704 bytes
-rw-r--r--static/js/util/setThemeBeforeRender.js7
-rw-r--r--templates/base.html14
7 files changed, 14 insertions, 7 deletions
diff --git a/static/img/blinkies/bee.gif b/static/img/blinkies/bee.gif
new file mode 100644
index 0000000..e784b95
--- /dev/null
+++ b/static/img/blinkies/bee.gif
Binary files differ
diff --git a/static/img/blinkies/begaydocrime.gif b/static/img/blinkies/begaydocrime.gif
new file mode 100644
index 0000000..068d5d0
--- /dev/null
+++ b/static/img/blinkies/begaydocrime.gif
Binary files differ
diff --git a/static/img/blinkies/bored.gif b/static/img/blinkies/bored.gif
new file mode 100644
index 0000000..40f26d1
--- /dev/null
+++ b/static/img/blinkies/bored.gif
Binary files differ
diff --git a/static/img/blinkies/construction.gif b/static/img/blinkies/construction.gif
deleted file mode 100644
index 332399f..0000000
--- a/static/img/blinkies/construction.gif
+++ /dev/null
Binary files differ
diff --git a/static/img/blinkies/eepy.gif b/static/img/blinkies/eepy.gif
new file mode 100644
index 0000000..53e1452
--- /dev/null
+++ b/static/img/blinkies/eepy.gif
Binary files differ
diff --git a/static/js/util/setThemeBeforeRender.js b/static/js/util/setThemeBeforeRender.js
index b8f299a..b025cce 100644
--- a/static/js/util/setThemeBeforeRender.js
+++ b/static/js/util/setThemeBeforeRender.js
@@ -1,8 +1,11 @@
const preferredMode = window.matchMedia("(prefers-color-scheme: dark)").matches
? "DARK"
: "LIGHT";
-localStorage.setItem("theme", localStorage.getItem("theme") || preferredMode);
// sets theme before rendering & jquery loaded to prevent flashing of uninitialized theme
// (ugly white background)
-document.documentElement.setAttribute("data-theme", preferredMode);
+localStorage.setItem("theme", localStorage.getItem("theme") || preferredMode);
+document.documentElement.setAttribute(
+ "data-theme",
+ localStorage.getItem("theme"),
+);
diff --git a/templates/base.html b/templates/base.html
index a609f37..a60ac55 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -50,11 +50,15 @@
<div class="footer">
<div>
- <img width="150" height="20" src="/static/img/blinkies/hatecomputers-club.gif">
- <img width="150" height="20" src="/static/img/blinkies/loveuguys.gif">
- <img width="150" height="20" src="/static/img/blinkies/autism.gif">
- <img width="150" height="20" src="/static/img/blinkies/fuckcomputers.gif">
- <img width="150" height="20" src="/static/img/blinkies/connection.gif">
+ <img width='150' height='20' src='/static/img/blinkies/hatecomputers-club.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/autism.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/fuckcomputers.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/bee.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/begaydocrime.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/bored.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/connection.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/eepy.gif'>
+ <img width='150' height='20' src='/static/img/blinkies/loveuguys.gif'>
</div>
{{ if .User }}