This commit is contained in:
Hell13Cat
2022-04-23 21:28:03 +03:00
parent 1738f647ce
commit cd717bfa75
11 changed files with 37 additions and 17 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<div class="body-trans"> <div class="body-trans">
<div id="maindiv"> <div id="maindiv">
<progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h> <progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h>
<div id="bodydiv"> <div id="bodydiv" style="visibility: hidden;">
<div id="title_ch" class="titlediv"> <div id="title_ch" class="titlediv">
<h2 id="namech"></h2> <h2 id="namech"></h2>
</div> </div>
+6 -3
View File
@@ -51,15 +51,18 @@ summary {
} }
a { a {
color: deeppink; color: Pink;
} }
a:visited { a:visited {
color: purple; color: HotPink;
} }
a:active { a:active {
color: pink; color: PaleVioletRed;
}
.title-index-nyaa {
color: Orchid;
} }
#card { #card {
+7 -3
View File
@@ -51,15 +51,19 @@ summary {
} }
a { a {
color: deeppink; color: Pink;
} }
a:visited { a:visited {
color: purple; color: HotPink;
} }
a:active { a:active {
color: pink; color: PaleVioletRed;
}
.title-index-nyaa {
color: Orchid;
} }
#card { #card {
+6 -2
View File
@@ -51,11 +51,15 @@ a {
} }
a:visited { a:visited {
color: purple; color: FireBrick;
} }
a:active { a:active {
color: darkblue; color: Red;
}
.title-index-nyaa {
color: Indigo;
} }
#card { #card {
+3
View File
@@ -40,6 +40,9 @@
padding-top: 15px; padding-top: 15px;
padding-bottom: 15px; padding-bottom: 15px;
} }
.carda {
display: flex;
}
} }
@media only screen and (max-width : 800px) { @media only screen and (max-width : 800px) {
+4 -3
View File
@@ -3,7 +3,7 @@
<head> <head>
<title>Loading...</title> <title>Loading...</title>
<link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/index.css"> <link rel="stylesheet" href="css/index.css?v=1">
<script type="text/javascript" src="js/index.js"></script> <script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/theming.js"></script> <script type="text/javascript" src="js/theming.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Global site tag (gtag.js) - Google Analytics -->
@@ -14,6 +14,7 @@
gtag('js', new Date()); gtag('js', new Date());
gtag('config', 'G-WBB07CK3DY'); gtag('config', 'G-WBB07CK3DY');
</script> </script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Главная"> <meta property="og:title" content="Главная">
@@ -31,11 +32,11 @@
<div class="body-trans"> <div class="body-trans">
<div id="maindiv"> <div id="maindiv">
<progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h> <progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h>
<div id="bodydiv"> <div id="bodydiv" style="visibility: hidden;">
<!—noindex—> <!—noindex—>
<img id="cover" class="cover"> <img id="cover" class="cover">
<div id="title" class="titlediv"> <div id="title" class="titlediv">
<h1>Manga.nyaa.ninja</h1> <h1>Manga.<span class="title-index-nyaa">nyaa</span>.ninja</h1>
</div> </div>
<a class="aace" href="https://discord.gg/WGktEbWTEV" target="_blank">[Discord] Новости на Silver Town</a> <a class="aace" href="https://discord.gg/WGktEbWTEV" target="_blank">[Discord] Новости на Silver Town</a>
<br><button id="lastchbutton" class="card-button last-ch" onclick="last_ch_go()"></button> <br><button id="lastchbutton" class="card-button last-ch" onclick="last_ch_go()"></button>
-1
View File
@@ -1,5 +1,4 @@
function load_page_first() { function load_page_first() {
document.getElementById('bodydiv').style.visibility = "hidden";
var id_chapt = window.location.hash.replace("#", ""); var id_chapt = window.location.hash.replace("#", "");
chapt_ref = id_chapt.split("_"); chapt_ref = id_chapt.split("_");
document.cookie = "idchaptlast="+id_chapt+"; max-age=2592000; secure"; document.cookie = "idchaptlast="+id_chapt+"; max-age=2592000; secure";
-1
View File
@@ -3,7 +3,6 @@ function getRandomInt(min, max) {
} }
function start() { function start() {
document.getElementById('bodydiv').style.visibility = "hidden";
var last_ch_id = document.cookie.replace(/(?:(?:^|.*;\s*)idchaptlast\s*\=\s*([^;]*).*$)|^.*$/, "$1"); var last_ch_id = document.cookie.replace(/(?:(?:^|.*;\s*)idchaptlast\s*\=\s*([^;]*).*$)|^.*$/, "$1");
if(last_ch_id == "") { if(last_ch_id == "") {
document.getElementById('lastchbutton').textContent = "Последней главы нет"; document.getElementById('lastchbutton').textContent = "Последней главы нет";
+1 -1
View File
@@ -1,5 +1,4 @@
function start() { function start() {
document.getElementById("cardinfo").style.visibility = "hidden";
var id_chapt = window.location.hash.replace("#", ""); var id_chapt = window.location.hash.replace("#", "");
var requestURL = "json/" + id_chapt + ".json"; var requestURL = "json/" + id_chapt + ".json";
var request = new XMLHttpRequest(); var request = new XMLHttpRequest();
@@ -30,6 +29,7 @@ function start() {
ch_p_one.append(ch_one); ch_p_one.append(ch_one);
document.getElementById('helper1').before(ch_p_one); document.getElementById('helper1').before(ch_p_one);
} }
document.getElementById('bodydiv').style.visibility = "visible";
document.getElementById('progress').style.visibility = "hidden"; document.getElementById('progress').style.visibility = "hidden";
} }
} }
+8 -1
View File
@@ -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) { function addstylesheet(name_short) {
var head = document.head; var head = document.head;
var link = document.createElement("link"); var link = document.createElement("link");
link.type = "text/css"; link.type = "text/css";
link.rel = "stylesheet"; 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.href = name_style;
link.id = "currentstylesheet"; link.id = "currentstylesheet";
head.appendChild(link); head.appendChild(link);
+1 -1
View File
@@ -28,7 +28,7 @@
<div class="body-trans"> <div class="body-trans">
<div id="maindiv"> <div id="maindiv">
<progress class="progress-page" id="progress"></progress><br> <progress class="progress-page" id="progress"></progress><br>
<div id="bodydiv"> <div id="bodydiv" style="visibility: hidden;">
<img id="cover" class="cover"> <img id="cover" class="cover">
<div id="title" class="titlediv"> <div id="title" class="titlediv">
<h1></h1> <h1></h1>