+
diff --git a/css/color-black.css b/css/color-black.css
index 879c5d4..93d6fef 100644
--- a/css/color-black.css
+++ b/css/color-black.css
@@ -51,15 +51,18 @@ summary {
}
a {
- color: deeppink;
+ color: Pink;
}
a:visited {
- color: purple;
+ color: HotPink;
}
a:active {
- color: pink;
+ color: PaleVioletRed;
+}
+.title-index-nyaa {
+ color: Orchid;
}
#card {
diff --git a/css/color-dark.css b/css/color-dark.css
index 3b0e49b..65bf2d3 100644
--- a/css/color-dark.css
+++ b/css/color-dark.css
@@ -51,15 +51,19 @@ summary {
}
a {
- color: deeppink;
+ color: Pink;
}
a:visited {
- color: purple;
+ color: HotPink;
}
a:active {
- color: pink;
+ color: PaleVioletRed;
+}
+
+.title-index-nyaa {
+ color: Orchid;
}
#card {
diff --git a/css/color-light.css b/css/color-light.css
index ab131a3..38faa3b 100644
--- a/css/color-light.css
+++ b/css/color-light.css
@@ -51,11 +51,15 @@ a {
}
a:visited {
- color: purple;
+ color: FireBrick;
}
a:active {
- color: darkblue;
+ color: Red;
+}
+
+.title-index-nyaa {
+ color: Indigo;
}
#card {
diff --git a/css/index.css b/css/index.css
index 81f8115..0eacf3c 100644
--- a/css/index.css
+++ b/css/index.css
@@ -40,6 +40,9 @@
padding-top: 15px;
padding-bottom: 15px;
}
+ .carda {
+ display: flex;
+ }
}
@media only screen and (max-width : 800px) {
diff --git a/index.html b/index.html
index bce67ba..75a1af6 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
Loading...
-
+
@@ -14,6 +14,7 @@
gtag('js', new Date());
gtag('config', 'G-WBB07CK3DY');
+
@@ -31,11 +32,11 @@
-
+
diff --git a/js/ch.js b/js/ch.js index d902e0c..52d69ea 100644 --- a/js/ch.js +++ b/js/ch.js @@ -1,5 +1,4 @@ function load_page_first() { - document.getElementById('bodydiv').style.visibility = "hidden"; var id_chapt = window.location.hash.replace("#", ""); chapt_ref = id_chapt.split("_"); document.cookie = "idchaptlast="+id_chapt+"; max-age=2592000; secure"; diff --git a/js/index.js b/js/index.js index 7a5de9b..85d574b 100644 --- a/js/index.js +++ b/js/index.js @@ -3,7 +3,6 @@ function getRandomInt(min, max) { } function start() { - document.getElementById('bodydiv').style.visibility = "hidden"; var last_ch_id = document.cookie.replace(/(?:(?:^|.*;\s*)idchaptlast\s*\=\s*([^;]*).*$)|^.*$/, "$1"); if(last_ch_id == "") { document.getElementById('lastchbutton').textContent = "Последней главы нет"; diff --git a/js/manga.js b/js/manga.js index 85cf3e1..444b158 100644 --- a/js/manga.js +++ b/js/manga.js @@ -1,5 +1,4 @@ function start() { - document.getElementById("cardinfo").style.visibility = "hidden"; var id_chapt = window.location.hash.replace("#", ""); var requestURL = "json/" + id_chapt + ".json"; var request = new XMLHttpRequest(); @@ -30,6 +29,7 @@ function start() { ch_p_one.append(ch_one); document.getElementById('helper1').before(ch_p_one); } + document.getElementById('bodydiv').style.visibility = "visible"; document.getElementById('progress').style.visibility = "hidden"; } } diff --git a/js/theming.js b/js/theming.js index 3113467..d5f6a0d 100644 --- a/js/theming.js +++ b/js/theming.js @@ -1,9 +1,16 @@ +function getRandomInt(min, max) { + min = Math.ceil(min); + max = Math.floor(max); + return Math.floor(Math.random() * (max - min)) + min; +} + function addstylesheet(name_short) { var head = document.head; var link = document.createElement("link"); link.type = "text/css"; link.rel = "stylesheet"; - name_style = "css/color-"+name_short+".css" + version = 2 + name_style = "css/color-"+name_short+".css?v=" + version; link.href = name_style; link.id = "currentstylesheet"; head.appendChild(link); diff --git a/manga.html b/manga.html index c490d69..24c5905 100644 --- a/manga.html +++ b/manga.html @@ -28,7 +28,7 @@
-
-
[Discord] Новости на Silver Town
Manga.nyaa.ninja
+Manga.nyaa.ninja
diff --git a/js/ch.js b/js/ch.js index d902e0c..52d69ea 100644 --- a/js/ch.js +++ b/js/ch.js @@ -1,5 +1,4 @@ function load_page_first() { - document.getElementById('bodydiv').style.visibility = "hidden"; var id_chapt = window.location.hash.replace("#", ""); chapt_ref = id_chapt.split("_"); document.cookie = "idchaptlast="+id_chapt+"; max-age=2592000; secure"; diff --git a/js/index.js b/js/index.js index 7a5de9b..85d574b 100644 --- a/js/index.js +++ b/js/index.js @@ -3,7 +3,6 @@ function getRandomInt(min, max) { } function start() { - document.getElementById('bodydiv').style.visibility = "hidden"; var last_ch_id = document.cookie.replace(/(?:(?:^|.*;\s*)idchaptlast\s*\=\s*([^;]*).*$)|^.*$/, "$1"); if(last_ch_id == "") { document.getElementById('lastchbutton').textContent = "Последней главы нет"; diff --git a/js/manga.js b/js/manga.js index 85cf3e1..444b158 100644 --- a/js/manga.js +++ b/js/manga.js @@ -1,5 +1,4 @@ function start() { - document.getElementById("cardinfo").style.visibility = "hidden"; var id_chapt = window.location.hash.replace("#", ""); var requestURL = "json/" + id_chapt + ".json"; var request = new XMLHttpRequest(); @@ -30,6 +29,7 @@ function start() { ch_p_one.append(ch_one); document.getElementById('helper1').before(ch_p_one); } + document.getElementById('bodydiv').style.visibility = "visible"; document.getElementById('progress').style.visibility = "hidden"; } } diff --git a/js/theming.js b/js/theming.js index 3113467..d5f6a0d 100644 --- a/js/theming.js +++ b/js/theming.js @@ -1,9 +1,16 @@ +function getRandomInt(min, max) { + min = Math.ceil(min); + max = Math.floor(max); + return Math.floor(Math.random() * (max - min)) + min; +} + function addstylesheet(name_short) { var head = document.head; var link = document.createElement("link"); link.type = "text/css"; link.rel = "stylesheet"; - name_style = "css/color-"+name_short+".css" + version = 2 + name_style = "css/color-"+name_short+".css?v=" + version; link.href = name_style; link.id = "currentstylesheet"; head.appendChild(link); diff --git a/manga.html b/manga.html index c490d69..24c5905 100644 --- a/manga.html +++ b/manga.html @@ -28,7 +28,7 @@
-
+