aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-06-06 19:49:32 -0400
committerBobby <[email protected]>2023-06-06 19:50:02 -0400
commitb71094f06d4dce6777daaa7ae01104b8251c4c72 (patch)
treed20a7f0ae41c37070923d20da4e1316cf8444702 /static
parentd0384f82bd2449e6f6b1abe4fb4491e20664a736 (diff)
downloadthatcomputerscientist-b71094f06d4dce6777daaa7ae01104b8251c4c72.tar.xz
thatcomputerscientist-b71094f06d4dce6777daaa7ae01104b8251c4c72.zip
日本語 Approaching Fast: Courtesy of Google Translate
Diffstat (limited to 'static')
-rw-r--r--static/css/styles.css2
-rw-r--r--static/images/site/icons/translate.pngbin0 -> 20480 bytes
-rw-r--r--static/js/globals.js5
-rw-r--r--static/js/postHandler.js2
4 files changed, 7 insertions, 2 deletions
diff --git a/static/css/styles.css b/static/css/styles.css
index 8408cd10..061c7deb 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -355,7 +355,7 @@ blockquote {
}
.pa-btn {
- margin: 0px;
+ margin: 0 2px 0 0;
display: inline-block;
text-decoration: none;
font-size: 11px;
diff --git a/static/images/site/icons/translate.png b/static/images/site/icons/translate.png
new file mode 100644
index 00000000..e8558f3e
--- /dev/null
+++ b/static/images/site/icons/translate.png
Binary files differ
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();
}