less pants-shitting

This commit is contained in:
postautistic 2016-12-12 16:16:27 -05:00
parent dcf202d020
commit d343a5159c
4 changed files with 12 additions and 7 deletions

View File

@ -11,6 +11,7 @@ div.onclick = toggleNight;
function toggleNight() {
if(checkCookie() == false) {
nightMode();
document.getElementById('image').src = 'assets/back3.png';
} else {
document.getElementsByTagName('head')[0].removeChild(document.getElementById('nightcss'));
setCookie('0');
@ -19,7 +20,7 @@ function toggleNight() {
function nightMode() {
link = document.createElement('link');
link.href = 'style/night.css?2';
link.href = 'style/night.css';
link.rel = 'stylesheet';
link.type = 'text/css';
link.id = 'nightcss';

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="style/anki.css">
</head>
<body>
<script src="assets/script.js"></script>
<script src="assets/script.js?3"></script>
<div class="pagetop">
<div class="header_left"><span class="bold"></span></div>
@ -18,7 +18,7 @@
<p><h1>DJT GUIDE TO JAPANESE</h1></p>
<p><span class="italic">Live Google docs version found</span> <span class="bold"><a href="https://docs.google.com/document/d/1y9UXz7NPj93JZtt2a3QHKGPVnBkNP22KuWLr3yZChnY/edit">here</a></span></p>
<img class="a" src="assets/image01.png">
<img class="a noinvert" src="assets/image01.png">
<br>
@ -94,7 +94,7 @@
<p><a href="https://a.pomf.cat/tlfrix.png">Kanji</a> are the third part of the Japanese writing system, and by far the most extensive. These logographic characters of varying complexity represent words or parts of words in conjunction with the kana. Japanese high school students are required to learn at least 2136 kanji as part of the curriculum, but around 3,000 are used in all facets of life.</p>
<img class="b" src="assets/image02.jpg">
<img class="b noinvert" src="assets/image02.jpg">
<br>
<br>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<script src="assets/script.js"></script>
<script src="assets/script.js?3"></script>
<div class="byline">
<p>you can [not] learn japanese</p>
</div>
@ -25,7 +25,7 @@
<p><a class="one" href="threads.html">thread webring</a></p>
</div>
<img src="assets/back3.png?2" id="image" class="noinvert">
<img src="assets/back3.png" id="image">
<script>
if(checkCookie() == false) {
document.getElementById('image').src = 'assets/back' + Math.floor(Math.random() * 5) +'.png?2';

View File

@ -1,5 +1,9 @@
img {
filter: invert(100%);
filter: invert(100%);
}
.noinvert {
filter: invert(0%);
}
body {