diff --git a/anki.html b/anki.html index 801fdf2..48d2b38 100644 --- a/anki.html +++ b/anki.html @@ -112,6 +112,6 @@

If you followed the instructions and it still does not work, manually add a new card to your mining deck and try again.

- + \ No newline at end of file diff --git a/assets/script.js b/assets/script.js new file mode 100644 index 0000000..48dc610 --- /dev/null +++ b/assets/script.js @@ -0,0 +1,53 @@ + + var div = document.createElement('div'); + div.innerHTML = '☽'; + div.id = 'night'; + div.title = 'night mode'; + document.body.appendChild(div); + div.onclick = toggleNight; + + if(checkCookie() == true) { + nightMode(); + } + +function toggleNight() { + if(checkCookie() == false) { + nightMode(); + } else { + document.getElementsByTagName('head')[0].removeChild(document.getElementById('nightcss')); + setCookie('0'); + } +} + +function nightMode() { + link = document.createElement('link'); + link.href = 'style/night.css'; + link.rel = 'stylesheet'; + link.type = 'text/css'; + link.id = 'nightcss'; + document.getElementsByTagName('head')[0].appendChild(link); + setCookie('1'); +} + +function checkCookie() { + var name = 'night='; + var ca = document.cookie.split(';'); + for(var i = 0; i

fonts

-

Many of these fonts have slight inconsistencies with the official standard; see this image for a detailed comparison. "Suggested" fonts have a green background.

+

Many of these fonts have slight inconsistencies with the official standard; see this image for a detailed comparison. "Suggested" fonts have a colored background.

@@ -2730,7 +2730,7 @@ Vocabulary deck: Front: word (kanji). Back: translation, reading, component kanj - + diff --git a/guide.html b/guide.html index 48dd428..08992b1 100644 --- a/guide.html +++ b/guide.html @@ -277,6 +277,6 @@

WaniKani is a paid website which teaches you 6000 words and 2000 kanji. This may seem like a nice prospect, but reality is that the free open source software Anki will accomplish exactly the same for you. WaniKani limits your potential by providing you with a fixed schedule that you cannot exceed. With Anki, you can learn at whatever pace you wish and it does not cost you anything. Anki is also highly modular and can be adjusted to suit your preferences, while WaniKani offers next to no customization. If you still want to use WaniKana's content, there is a free Anki deck in the CoR.

- + \ No newline at end of file diff --git a/index.html b/index.html index 35df140..36ff1b6 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,6 @@ - + \ No newline at end of file diff --git a/reading list.html b/reading list.html index 4f9874e..56dd2cc 100644 --- a/reading list.html +++ b/reading list.html @@ -201,6 +201,8 @@ Four years after the creation of the super strong cardboard, in AD 2050, Ban Yam
Name Sample Notes Download
AnzuDownload
-
+ + + diff --git a/resource guide.html b/resource guide.html index dcc2fa2..a496a38 100644 --- a/resource guide.html +++ b/resource guide.html @@ -392,5 +392,6 @@ Protip: Type in kaomoji and hit space. Alternatively: read Hiragana Megane - This site adds furigana to kanji on websites.

+ \ No newline at end of file diff --git a/style/anki.css b/style/anki.css index 06e03ab..73c4602 100644 --- a/style/anki.css +++ b/style/anki.css @@ -1,3 +1,13 @@ +#night { + position:absolute; + top:.1em; + right:.6em; + font-size:120%; + text-decoration:none; + color: #F44D54; + cursor:pointer; +} + html { max-height: 999999px; } diff --git a/style/cor.css b/style/cor.css index 61552e0..c51998a 100644 --- a/style/cor.css +++ b/style/cor.css @@ -1,3 +1,14 @@ +#night { + position:absolute; + top:2px; + right:.6em; + font-size:120%; + font-weight:bold; + text-decoration:none; + color: #F44D54; + cursor:pointer; +} + body { font-family: "Noto Sans", "Noto Sans CJK JP", sans-serif; margin:0px auto; diff --git a/style/night.css b/style/night.css new file mode 100644 index 0000000..41e17c9 --- /dev/null +++ b/style/night.css @@ -0,0 +1,7 @@ +html { + filter: invert(100%); +} + +body { + background-color:#000; +} \ No newline at end of file diff --git a/style/style.css b/style/style.css index 654ee47..1c0bb16 100644 --- a/style/style.css +++ b/style/style.css @@ -1,3 +1,13 @@ +#night { + position:absolute; + top:.4em; + right:.6em; + font-size:200%; + text-decoration:none; + color: #F44D54; + cursor:pointer; +} + body { font-family: "Noto Sans", "Noto Sans CJK JP", sans-serif; margin:40px auto; @@ -31,11 +41,7 @@ float:left; margin-top:2.1em; } -a.one:link { - color: black; - text-decoration: none; -} -a.one:visited { +a.one { color: black; text-decoration: none; } @@ -43,10 +49,6 @@ a.one:hover { color: #F44D54; text-decoration:underline; } -a.one:active { - color: black; - text-decoration: none; -} .threadsred { margin-top: 4em; diff --git a/threads.html b/threads.html index 039cde2..c2c9164 100644 --- a/threads.html +++ b/threads.html @@ -41,6 +41,6 @@ - + \ No newline at end of file