diff options
| author | Bobby <[email protected]> | 2023-06-06 19:49:32 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-06 19:50:02 -0400 |
| commit | b71094f06d4dce6777daaa7ae01104b8251c4c72 (patch) | |
| tree | d20a7f0ae41c37070923d20da4e1316cf8444702 /static/js | |
| parent | d0384f82bd2449e6f6b1abe4fb4491e20664a736 (diff) | |
| download | thatcomputerscientist-b71094f06d4dce6777daaa7ae01104b8251c4c72.tar.xz thatcomputerscientist-b71094f06d4dce6777daaa7ae01104b8251c4c72.zip | |
日本語 Approaching Fast: Courtesy of Google Translate
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/globals.js | 5 | ||||
| -rw-r--r-- | static/js/postHandler.js | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/static/js/globals.js b/static/js/globals.js index 9850afb2..ad0f4518 100644 --- a/static/js/globals.js +++ b/static/js/globals.js @@ -6,6 +6,11 @@ gtag("js", new Date()); gtag("config", "G-72XTC500FR"); +function changeLang(lang) { + document.cookie = "lang=" + lang + "; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/"; + location.reload(); +} + // Smooth scroll to anchor $(document).ready(function () { $('a[href^="#"]').on("click", function (e) { diff --git a/static/js/postHandler.js b/static/js/postHandler.js index 186ac64d..77f7b10a 100644 --- a/static/js/postHandler.js +++ b/static/js/postHandler.js @@ -101,7 +101,7 @@ function blindMode() { // if localStorage has blindMode set to on, then turn on blindMode var blindModeStatus = localStorage.getItem('blindMode'); -console.log(blindModeStatus); + if (blindModeStatus == 'on') { blindMode(); } |
