From 76ab31778e3867aa8b67b7db679d72da274e5abe Mon Sep 17 00:00:00 2001 From: reds Date: Sun, 7 May 2017 17:11:15 +0100 Subject: [PATCH 1/4] Added button that toggles nightmode+fixed a few things in CSS --- public/img/moon.png | Bin 0 -> 4854 bytes public/img/sun.png | Bin 0 -> 5644 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/img/moon.png create mode 100644 public/img/sun.png diff --git a/public/img/moon.png b/public/img/moon.png new file mode 100644 index 0000000000000000000000000000000000000000..cb758307214fd6cbc3a7addaaa037341f0c7ecc6 GIT binary patch literal 4854 zcmWky2{=^W8@_g-EZKK62tQ=s*J&(CcG)R}FxmfzK`4WW?1UI&4MoOIvNLuXWheVi zObGwmbDwk0bIv`>J?DJi`@Y|eH8Rk-NySbD0Km=rx^NS)lmL?yB{`V04_Lkd3nD)g z9T-qG%()3x$Q>W(z=7+3&xh8M6tLxnx2}~R0C4jDOGHDoIeB0sh5!ABS`kqC`YTGgn;k1k zS^TUq4F=v4vTPiI?oTrKND^*5S(f9L2vA|0DY{i$S<+z8L%u^y1{>$UqI}KH5hbD9 zOncuFX1VZljR}HLSev>BqV54soyg_))YT!C{!EayHPDz(FXJMM5CL z81+`hEm>nqqP%q?fEVbq74I!Gqsof1xaQ#)^WprhLR*wdNA)TK6_J&UYA7j*F)d>( zr*Lz3A9xFgpimJgeoU8n#Usqj%uI&GqetSg-HykD0|TCy49L~vvu}B-A!;Xm(6=qy z3W->Dcf>H{_t~%0UCUyP>4bz6h+y(sqn5Tnci4eSOD_PFzhI0L{?T-^^uK@ zaz1L&u(7zfxJOV>@N~mW7h}@3W%8Oq`U2JW3P#kq^yz=^hq)%SA&?{FLW;>dEw~US zwcC*%F_ZqoGks!HrYt5a>jn_i9mh0PKkGY4yS=^L{$%Df-$fB%jPHIsAH1Gh?K$6a zhD=lH!Z84pKvC1f@^&W$PI5rQMG)dBjHzNnKwWFC3};Y3IYjh7$S0tTgc!eK5kEgY z=?uWzhwQeSTUd;o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h$AvEFC37brM7J zdab$24g*IQ8PPJdV<(haDcS&_&(C0eJB5yzJN)lq;_2zBMN0p#zu?IIjWIOgIjE^+ z(fG&Sqr1V}a0tC>1B{Qf+N!n~0iHAk$TjYIe4gIk2W}P?_@5`+`1WTTE|o~h{E>SK zoVUoIym(XSdcp2{*S6tn;>uSr0NqknQj(ke{(atKGbL$(=UFhwpyx)_0Z(0BU1#h9=T2-P$qmJf1EC893JMB`A(vX4eB|j5hxckoYboiA zwzpJ#QNPCv=Ws|M0t_r<>+9+&!8qNPDZYC^ZSBq3_!wHpLhXD5U2T~z+o`R(&3~*# zHGvV4(}r(sY?Rv7xldt1Njj^^#dNx*6Rw5oilHLA5?;O9&x@+GS8Z45fpQj0L^WPkQe{^)z@YG6n z%uVLEPG0`T*4B&VvXZ=?HR0D+k_fb34x3!zVI38_$veMBPW;qV0b+(7lZkqK_4iD6 zFkS4zz|?f29@NhNEnXjrFjBQ`H{In?2|Cyh+?n=~VvZmBqqnx=3GekG9tJgzA&l}n zU5S^>7jKPOFnmq2Zt~x({}*(d+t}D#l!VD2-oJCHs;YVc?&!1=1QeclZFI+`3jNDe zll19QofOp8`?x8ByqkXO?=q@uZZa!F$nPFEH#c3CqdsW97Xr~LmaIGbUSF{KjW&8Y zMXpFFa%X#+gPV=*Y#&7T_D@c|i6o#bAjzK76V@bpIeFU`fnK&cM==jAy}MeB9I{Gc zUOvyEs*TT10z=FOEH+(bq~hOa%7SiQkdq$0__k^+<(NBxib~WKw4mmm$BdQ3~Zt$lRa9_&+UIlv``F{&{dG-JR literal 0 HcmV?d00001 diff --git a/public/img/sun.png b/public/img/sun.png new file mode 100644 index 0000000000000000000000000000000000000000..c1c9274619499e7c207b779d9478799dde2ed181 GIT binary patch literal 5644 zcmWky2RxMT1Aj@8d1MvYSzQtr{Tp>} z=x}lN{6F1&-g`gye%|-Jd*0{y&S-N}Jr>3bj1UB|80e!cz+M(?atvp{=Y_AfrIn`1|~Z6bEoOq zxTV-*+j<~~>x}_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y^tX@z}8KiDl3*dDwjCOEp~BIzB$uXj@3T^Zm`6H(o4sv?NeIT#1`k zavR7=Of`(O`yHcOICOmF3^a_0_3-jye(?Rn+nc4PPgWAj#>zG;_Kk`;)DI>Gr~TJ| z>KuULpfnP;;=oWch)c~%gg86(x~ZI@BYi^5_No0b7R##uGJgI z2NVg=^3-}y5Q!2BK0lO3iA0_sb-ptX+h%5dTXZ_g|!kNp|Ac5tG zrUND+dq3znr0AxH-(CWpCVo{05AIIT8u9{|E|;z)E$9}1hi(W;v{#(q{hzK zNMuUCD<1Vn%Mx+nlIw5V^56EAwd8(;iLCrYZ9fRWWnQ#W>E2h&b5U zZSrazh+IoG1eVRp5JWUaog3r1Z)O3j6%HljDn27-#Au;FVFyFzJK#h4Uwe_#qMUYH zH&XG35Y)OqhF2eUM`RHt`DEomV;5lm5=L8on+d3ktVuHPj|WFjmEx#x#mN(UW>+V@ VdAl2e_CQq&8R(dzDv*xP{tq718?*ob literal 0 HcmV?d00001 From 97630fe167d0a639984fc99c67257496c377cb3c Mon Sep 17 00:00:00 2001 From: reds Date: Sun, 7 May 2017 17:19:37 +0100 Subject: [PATCH 2/4] Added night toggle button --- public/css/style-night.css | 8 ++++++++ public/css/style.css | 17 ++++++++++++----- public/js/main.js | 26 ++++++++++++++++++++++++++ templates/index.html | 6 ++++-- 4 files changed, 50 insertions(+), 7 deletions(-) diff --git a/public/css/style-night.css b/public/css/style-night.css index 6a727ccf..9c3a6802 100644 --- a/public/css/style-night.css +++ b/public/css/style-night.css @@ -1,3 +1,10 @@ +/* Night mode image */ +#sunmoon { + position: fixed; + top: 10px; + height: 30px; + +} /* Torrent status colors */ .remake { background-color: #795c46; @@ -25,6 +32,7 @@ #container { padding-top: 1.25em; + background-color: #29363d; } #container.cont-home { diff --git a/public/css/style.css b/public/css/style.css index d1dcfda0..7dcc1a6e 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -1,3 +1,9 @@ +/* Night mode image */ +#sunmoon { + position: fixed; + top: 10px; + height: 30px; +} /* Torrent status colors */ .remake { background-color: rgb(240, 176, 128); @@ -10,27 +16,28 @@ } /* modified copy of NyaaTorrent theme */ -nav#mainmenu { +#mainmenu { background: #263238; position: fixed; color: white; width: 100%; z-index: 4; + border: 0px solid white; } -nav#mainmenu a { +#mainmenu a { color: white; } -div#container { +#container { padding-top: 1.25em; background: white; } -div#container.cont-home { +#container.cont-home { background: white url(/img/renchon.png) no-repeat; } -div#container.cont-view { +#container.cont-view { background: white url(/img/renchon.png) no-repeat; background-size: 61px; } diff --git a/public/js/main.js b/public/js/main.js index 0af21ace..7b0d6f1f 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,3 +1,29 @@ +// Night mode +// also sorry that this code is soo bad, literally nothing else worked.. ima remake it in a near future +var night = localStorage.getItem("night"); +if (night=="true") { + document.getElementById("style").href = "/css/style-night.css"; + document.getElementById("nightbutton").innerHTML = "Day!"; +} + +function toggleNightMode() { + var styleshieeet = document.getElementById("style").href; + var styleshieet = new RegExp("style.css"); + var stylesheet = styleshieet.test(styleshieeet); + if (stylesheet==true) { + document.getElementById("style").href = "/css/style-night.css"; + document.getElementById("nightbutton").innerHTML = "Day!"; + localStorage.setItem("night", "true"); + } + else { + document.getElementById("style").href = "/css/style.css"; + document.getElementById("nightbutton").innerHTML = "Night!"; + localStorage.setItem("night", "false"); + } +console.log(styleshieeet); +console.log(stylesheet); +} + // Used by spoiler tags function toggleLayer(elem) { if (elem.classList.contains("hide")) diff --git a/templates/index.html b/templates/index.html index 1d3b5153..bf00535a 100755 --- a/templates/index.html +++ b/templates/index.html @@ -26,7 +26,7 @@ - + From a0843e0f741da1c9dbcb9642d9c5a6ec319371fe Mon Sep 17 00:00:00 2001 From: reds Date: Sun, 7 May 2017 17:34:41 +0100 Subject: [PATCH 3/4] Removed things used for troubleshooting --- public/js/main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 7b0d6f1f..f34c0abe 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -20,8 +20,6 @@ function toggleNightMode() { document.getElementById("nightbutton").innerHTML = "Night!"; localStorage.setItem("night", "false"); } -console.log(styleshieeet); -console.log(stylesheet); } // Used by spoiler tags From 1c08fec4f0629a546eb1e64680ec42565a350828 Mon Sep 17 00:00:00 2001 From: reds Date: Sun, 7 May 2017 18:00:36 +0100 Subject: [PATCH 4/4] Fixed placement of the torrent list on the day mode --- public/css/style.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index 7dcc1a6e..8bd44725 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -39,7 +39,7 @@ } #container.cont-view { background: white url(/img/renchon.png) no-repeat; - background-size: 61px; + background-size: 75px, 100px; } body { @@ -49,9 +49,6 @@ body { margin: 0; padding: 0; } -.blockBody { - padding-bottom: 2rem; -} .torrentNav { text-align: center;