diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-27 20:08:58 -0600 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-27 20:08:58 -0600 |
| commit | b2fa4fe9454cbc9c9c0e265e3e6065eaa8726e2f (patch) | |
| tree | 4c7fcf0b7f90117dab8f8d110d42b261ed7440fc | |
| parent | b6e8e041096a921accd439db00c9171c0f68d91b (diff) | |
| download | hatecomputers.club-b2fa4fe9454cbc9c9c0e265e3e6065eaa8726e2f.tar.gz hatecomputers.club-b2fa4fe9454cbc9c9c0e265e3e6065eaa8726e2f.zip | |
moar blinkies
| -rw-r--r-- | static/img/blinkies/bee.gif | bin | 0 -> 4066 bytes | |||
| -rw-r--r-- | static/img/blinkies/begaydocrime.gif | bin | 0 -> 2288 bytes | |||
| -rw-r--r-- | static/img/blinkies/bored.gif | bin | 0 -> 2475 bytes | |||
| -rw-r--r-- | static/img/blinkies/construction.gif | bin | 1761 -> 0 bytes | |||
| -rw-r--r-- | static/img/blinkies/eepy.gif | bin | 0 -> 704 bytes | |||
| -rw-r--r-- | static/js/util/setThemeBeforeRender.js | 7 | ||||
| -rw-r--r-- | templates/base.html | 14 |
7 files changed, 14 insertions, 7 deletions
diff --git a/static/img/blinkies/bee.gif b/static/img/blinkies/bee.gif Binary files differnew file mode 100644 index 0000000..e784b95 --- /dev/null +++ b/static/img/blinkies/bee.gif diff --git a/static/img/blinkies/begaydocrime.gif b/static/img/blinkies/begaydocrime.gif Binary files differnew file mode 100644 index 0000000..068d5d0 --- /dev/null +++ b/static/img/blinkies/begaydocrime.gif diff --git a/static/img/blinkies/bored.gif b/static/img/blinkies/bored.gif Binary files differnew file mode 100644 index 0000000..40f26d1 --- /dev/null +++ b/static/img/blinkies/bored.gif diff --git a/static/img/blinkies/construction.gif b/static/img/blinkies/construction.gif Binary files differdeleted file mode 100644 index 332399f..0000000 --- a/static/img/blinkies/construction.gif +++ /dev/null diff --git a/static/img/blinkies/eepy.gif b/static/img/blinkies/eepy.gif Binary files differnew file mode 100644 index 0000000..53e1452 --- /dev/null +++ b/static/img/blinkies/eepy.gif 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 }} |
