0.1.1
@@ -1,3 +1,9 @@
|
||||
# Data site
|
||||
img/*/*.jpeg
|
||||
img/*/*.jpg
|
||||
img/*/*.png
|
||||
!img/covers/*
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
404
|
||||
|
After Width: | Height: | Size: 88 KiB |
|
After Width: | Height: | Size: 515 KiB |
|
After Width: | Height: | Size: 78 KiB |
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Страница главы</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/manga.css">
|
||||
<script type="text/javascript" src="js/manga.js"></script>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta property="og:title" content="Глава">
|
||||
<meta property="og:site_name" content="manga.nyaa.ninja">
|
||||
<meta property="og:description" content="Страница главы">
|
||||
</head>
|
||||
<body>
|
||||
<div class="body-trans">
|
||||
<div id="maindiv">
|
||||
<progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h>
|
||||
<div id="bodydiv">
|
||||
<div id="title_ch" class="titlediv">
|
||||
<h2 id="namech"></h2>
|
||||
</div>
|
||||
<div class="contentdiv">
|
||||
<progress class="progress-page" id="progressimage"></progress><br>
|
||||
<img src="" id="mangapage"><br>
|
||||
<progress class="progress-page" id="progressimage2"></progress><br>
|
||||
<div id="pc_elem">
|
||||
<button id="prevbutton" class="card-button-ch nav-button" onclick="page_flip(-1)">Назад</button><button class="card-button-ch nav-button-fullscreen" onclick="toggleFullScreen()">Экран</button><button class="card-button-ch nav-button-home" onclick="manga_page()">Главы</button><button id="nextbutton" class="card-button-ch nav-button" onclick="page_flip(1)">Вперед</button>
|
||||
</div>
|
||||
<div id="mobile_elem">
|
||||
<button id="prevbutton" class="card-button-ch nav-button" onclick="page_flip(-1)">Назад</button><button id="nextbutton" class="card-button-ch nav-button" onclick="page_flip(1)">Вперед</button></br>
|
||||
<button class="card-button-ch nav-button-fullscreen" onclick="toggleFullScreen()">Экран</button><button class="card-button-ch nav-button-home" onclick="manga_page()">Главы</button>
|
||||
</div>
|
||||
<div id="copyright" class="copyright">
|
||||
<a class="aace" href="mailto:dcma@nyaa.ninja?subject=Manga-DCMA" target="_blank">/DCMA</a> | <a class="aace" href=".">/Главная</a> | <a class="aace" href="https://t.me/Manga_nyaa_ninja" target="_blank">/Telegram</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p id="infostart" class="invis2"></p><p id="infoend" class="invis2"></p><p id="infohead" class="invis2"></p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
load_page_first();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,29 @@
|
||||
.progress-page {
|
||||
width: 100%;
|
||||
}
|
||||
.cover {
|
||||
width: 25%;
|
||||
}
|
||||
.invis {
|
||||
display: none;
|
||||
}
|
||||
.card {
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px rgb(255, 255, 255, 1);
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
border: 2px solid white;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
}
|
||||
.cardch {
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px rgb(255, 255, 255, 1);
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
border: 2px solid white;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
.progress-page {
|
||||
width: 100%;
|
||||
}
|
||||
.cover {
|
||||
width: 15%;
|
||||
margin: 7px 7px 7px 0;
|
||||
}
|
||||
.invis {
|
||||
display: none;
|
||||
}
|
||||
.card {
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px rgb(255, 255, 255, 1);
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
border: 2px solid white;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
}
|
||||
.carda {
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px rgb(255, 255, 255, 1);
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
border: 1px solid white;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 100%;
|
||||
}
|
||||
.cardch {
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px rgb(255, 255, 255, 1);
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
border: 2px solid white;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
.invis {
|
||||
visibility: hidden;
|
||||
}
|
||||
.invis2 {
|
||||
display: none;
|
||||
}
|
||||
.progress-page {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-button-ch {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border: 1px solid rgb(255, 255, 255);
|
||||
color: #ffffff;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
}
|
||||
.card-button-ch:hover {
|
||||
opacity:0.8;
|
||||
}
|
||||
|
||||
@media only screen and (min-width : 801px) {
|
||||
.nav-button {
|
||||
width: 35%;
|
||||
height: 15%;
|
||||
}
|
||||
.nav-button-home {
|
||||
width: 20%;
|
||||
height: 15%;
|
||||
}
|
||||
.nav-button-fullscreen {
|
||||
width: 10%;
|
||||
height: 15%;
|
||||
}
|
||||
.card-button-ch {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width : 800px) {
|
||||
.nav-button {
|
||||
width: 50%;
|
||||
height: 30%;
|
||||
}
|
||||
.nav-button-home {
|
||||
width: 50%;
|
||||
height: 30%;
|
||||
}
|
||||
.nav-button-fullscreen {
|
||||
width: 50%;
|
||||
height: 30%;
|
||||
}
|
||||
.card-button-ch {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
@font-face {
|
||||
font-family: "Anime Ace v05";
|
||||
src: local("Anime Ace v05"), url("/fonts/AnimeAce.ttf") format("ttf");
|
||||
}
|
||||
|
||||
body {
|
||||
text-align: center;
|
||||
color: white;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
background: #000000;
|
||||
}
|
||||
|
||||
|
||||
.body-index {
|
||||
/* NULL */
|
||||
}
|
||||
|
||||
.body-project {
|
||||
/* NULL */
|
||||
}
|
||||
|
||||
.body-firefox {
|
||||
/* NULL */
|
||||
}
|
||||
|
||||
.body-trans {
|
||||
background: rgb(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
summary {
|
||||
color: deeppink;
|
||||
}
|
||||
|
||||
.hr-v {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.hr-i {
|
||||
color: rgb(255, 255, 255, 0);
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
a {
|
||||
color: deeppink;
|
||||
}
|
||||
a:visited {
|
||||
color: purple;
|
||||
}
|
||||
a:active {
|
||||
color: pink;
|
||||
}
|
||||
|
||||
#lista {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#bodydiv {
|
||||
margin-left: 2%;
|
||||
margin-right: 2%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.titlediv {
|
||||
font-family: "Anime Ace v05";
|
||||
}
|
||||
|
||||
.contentdiv {
|
||||
/* NULL */
|
||||
}
|
||||
|
||||
#card {
|
||||
box-shadow: 4px 4px 4px 0 rgb(255, 255, 255, 1);
|
||||
transition: 0.3s;
|
||||
padding-left: 2px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
#card2 {
|
||||
border: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
padding: 1px 0px 1px 10px;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
.card-text {
|
||||
padding: 1px 0px 1px 5px;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
}
|
||||
|
||||
.card-button {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border: 1px solid rgb(255, 255, 255);
|
||||
padding: 5px;
|
||||
color: #ffffff;
|
||||
font-family: "Anime Ace v05";
|
||||
font-size: 70%;
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
}
|
||||
.card-button:hover {
|
||||
opacity:0.8;
|
||||
}
|
||||
.card-button-block {
|
||||
padding: 5px 0px 5px 5px;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
padding: 10px;
|
||||
right: 1em;
|
||||
text-align: center;
|
||||
bottom: 1em;
|
||||
}
|
||||
|
||||
.aace {
|
||||
font-family: "Anime Ace v05";
|
||||
}
|
||||
|
||||
#maindiv {
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
|
||||
table {
|
||||
border-bottom: 0px solid rgba(0, 0, 0, 0);
|
||||
background: rgba(0, 0, 0, 0);
|
||||
margin: 0 auto 0 auto;
|
||||
}
|
||||
th {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
color: rgba(0, 0, 0, 0);
|
||||
text-align: center;
|
||||
}
|
||||
td, th {
|
||||
padding: 2px;
|
||||
}
|
||||
.sitebuttons {
|
||||
opacity:0.6;
|
||||
}
|
||||
.sitebuttons:hover {
|
||||
opacity:1;
|
||||
}
|
||||
|
||||
.homebuttons {
|
||||
opacity:0.6;
|
||||
}
|
||||
.homebuttons:hover {
|
||||
opacity:1;
|
||||
}
|
||||
@media only screen and (min-width : 801px) {
|
||||
#maindiv {
|
||||
width: 60%;
|
||||
margin-left: 20%;
|
||||
margin-right: 20%;
|
||||
}
|
||||
.sitebuttons {
|
||||
width: 100%;
|
||||
}
|
||||
.homebuttons {
|
||||
width: 8%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
table {
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width : 800px) {
|
||||
#maindiv {
|
||||
width: 100%;
|
||||
margin-left: 0%;
|
||||
margin-right: 0%;
|
||||
}
|
||||
.sitebuttons {
|
||||
width: 100%;
|
||||
}
|
||||
.homebuttons {
|
||||
width: 8%;
|
||||
padding-top: 5px;
|
||||
}
|
||||
table {
|
||||
width: 130px;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 926 B |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name":"Я перевоплотился в 7-го принца, так что я буду совершенствовать свою магию, как захочу",
|
||||
"name_ch":"Том 1 Глава 1 - Я реинкарнировал в 7-го принца",
|
||||
"head":"7son",
|
||||
"start":0,
|
||||
"end":56,
|
||||
"ext":"jpeg"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name":"Я перевоплотился в 7-го принца, так что я буду совершенствовать свою магию, как захочу",
|
||||
"name_ch":"Том 1 Глава 2 - Старший брат что-то замышляет",
|
||||
"head":"7son",
|
||||
"start":0,
|
||||
"end":33,
|
||||
"ext":"jpeg"
|
||||
}
|
||||
|
After Width: | Height: | Size: 137 KiB |
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Loading...</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/index.css">
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta property="og:title" content="Главная">
|
||||
<meta property="og:site_name" content="manga.nyaa.ninja">
|
||||
<meta property="og:description" content="Главная страница">
|
||||
<!--
|
||||
<meta name="viewport" content="height=device-height">
|
||||
<meta name="viewport" content="user-scalable=yes">
|
||||
-->
|
||||
</head>
|
||||
<body>
|
||||
<div class="body-trans">
|
||||
<div id="maindiv">
|
||||
<progress class="progress-page" id="progresspage"></progress><br><h id="titlesys"></h>
|
||||
<div id="bodydiv">
|
||||
<img id="cover" class="cover">
|
||||
<div id="title" class="titlediv">
|
||||
<h1>Manga.nyaa.ninja</h1>
|
||||
</div>
|
||||
<p id="helper1" class="invis"></p>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
<a class="aace" href="mailto:dcma@nyaa.ninja?subject=Manga-DCMA" target="_blank">/DCMA</a> | <a class="aace" href="https://t.me/Manga_nyaa_ninja" target="_blank">/Telegram</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
start();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"splash":[
|
||||
"Nyaaaaa!",
|
||||
"UwU"
|
||||
],
|
||||
"manga":[
|
||||
{
|
||||
"name":"Я перевоплотился в 7-го принца, так что я буду совершенствовать свою магию, как захочу",
|
||||
"cover":"img/covers/7son.jpg",
|
||||
"id":"7son"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
}
|
||||
|
||||
function mainbg() {
|
||||
let bg_list_pc = ["bg/1.jpg", "bg/2.jpg", "bg/3.jpg"];
|
||||
let bg_list_m = ["bg/11m.jpg", "bg/12m.jpg", "bg/13m.jpg", "bg/21m.jpg", "bg/31m.jpg", "bg/32m.jpg", "bg/33m.jpg"];
|
||||
const pageWidth = document.documentElement.scrollWidth;
|
||||
const pageHeight = document.documentElement.scrollHeight
|
||||
if (pageWidth > pageHeight) {
|
||||
num_bg = getRandomInt(0, 2);
|
||||
bg_select = bg_list_pc[num_bg]
|
||||
} else {
|
||||
num_bg = getRandomInt(0, 6);
|
||||
bg_select = bg_list_m[num_bg]
|
||||
}
|
||||
document.getElementById('page').style.background = '#000000 url('+bg_select+') repeat';
|
||||
document.getElementById('page').style.backgroundSize = '120%';
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
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();
|
||||
request.open('GET', requestURL);
|
||||
request.responseType = 'json';
|
||||
request.send();
|
||||
request.onload = function() {
|
||||
if (request.status != 200) {
|
||||
document.getElementById('title').textContent = "Ошибка " + request.status + ":" + request.statusText;
|
||||
document.getElementById('progress').style.visibility = "hidden";
|
||||
} else {
|
||||
var json_ready = request.response;
|
||||
document.getElementById("cardinfo").style.visibility = "visible";
|
||||
document.getElementById('title').textContent = json_ready["name"];
|
||||
document.getElementById('cover').src = json_ready["cover"];
|
||||
document.getElementById('cardinfo1').textContent = "Автор: " + json_ready["author"];
|
||||
document.getElementById('cardinfo2').textContent = "Статус тайтла: " + json_ready["status_ti"];
|
||||
document.getElementById('cardinfo3').textContent = "Статус перевода: " + json_ready["status_tl"];
|
||||
var list_ch = json_ready["ch"];
|
||||
var index;
|
||||
for (index = 0; index < list_ch.length; ++index) {
|
||||
let ch_p_one = document.createElement('p');
|
||||
let ch_one = document.createElement('a');
|
||||
ch_one.href = "ch.html#" + list_ch[index]["id"];
|
||||
ch_one.textContent = list_ch[index]["name"]
|
||||
ch_p_one.append(ch_one);
|
||||
document.getElementById('helper1').before(ch_p_one);
|
||||
}
|
||||
document.getElementById('progress').style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
request.onerror = function() {
|
||||
document.getElementById('title').textContent = "Ошибка запроса!";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
}
|
||||
|
||||
function start() {
|
||||
document.getElementById('bodydiv').style.visibility = "hidden";
|
||||
var requestURL = "index.json";
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', requestURL);
|
||||
request.responseType = 'json';
|
||||
request.send();
|
||||
request.onload = function() {
|
||||
if (request.status != 200) {
|
||||
document.getElementById('titlesys').textContent = "Ошибка " + request.status + ":" + request.statusText;
|
||||
document.getElementById('progresspage').style.visibility = "hidden";
|
||||
} else {
|
||||
var json_ready = request.response;
|
||||
list_splash = json_ready["splash"];
|
||||
var splash_num = getRandomInt(0, list_splash.length);
|
||||
document.title = list_splash[splash_num];
|
||||
var list_ch = json_ready["manga"];
|
||||
var index;
|
||||
for (index = 0; index < list_ch.length; ++index) {
|
||||
manga_info = list_ch[index]
|
||||
let manga_one = document.createElement('div');
|
||||
manga_one.className = "carda";
|
||||
let manga_one_ref = document.createElement('a');
|
||||
manga_one_ref.href = "manga.html#" + manga_info["id"];
|
||||
manga_one_ref.textContent = manga_info["name"];
|
||||
let manga_one_cover = document.createElement('img');
|
||||
manga_one_cover.src = manga_info["cover"];
|
||||
manga_one_cover.className = "cover";
|
||||
manga_one.append(manga_one_cover);
|
||||
manga_one.append(manga_one_ref);
|
||||
document.getElementById('helper1').before(manga_one);
|
||||
}
|
||||
document.getElementById('bodydiv').style.visibility = "visible";
|
||||
document.getElementById('progresspage').style.visibility = "hidden";
|
||||
}
|
||||
};
|
||||
request.onerror = function() {
|
||||
document.getElementById('titlesys').textContent = "Ошибка запроса!";
|
||||
document.getElementById('progresspage').style.visibility = "hidden";
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
function load_page_first() {
|
||||
document.getElementById('bodydiv').style.visibility = "hidden";
|
||||
var id_chapt = window.location.hash.replace("#", "");
|
||||
var requestURL = "img/" + id_chapt + "/info.json";
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', requestURL);
|
||||
request.responseType = 'json';
|
||||
request.send();
|
||||
request.onload = function(){
|
||||
if (request.status != 200) {
|
||||
document.getElementById('titlesys').textContent = "Ошибка " + request.status + ":" + request.statusText;
|
||||
document.getElementById('progresspage').style.visibility = "hidden";
|
||||
} else {
|
||||
width_page = document.documentElement.scrollWidth;
|
||||
if(width_page <= 800){
|
||||
document.getElementById('pc_elem').remove()
|
||||
} else {
|
||||
document.getElementById('mobile_elem').remove()
|
||||
}
|
||||
var json_ready = request.response;
|
||||
document.getElementById('prevbutton').style.visibility = "hidden";
|
||||
document.getElementById('namech').textContent = json_ready["name_ch"];
|
||||
document.getElementById('infostart').textContent = json_ready["start"];
|
||||
document.getElementById('infoend').textContent = json_ready["end"];
|
||||
document.getElementById('infohead').textContent = json_ready["head"];
|
||||
crs_start = "img/" + id_chapt + "/" + json_ready["start"] + "." + json_ready["ext"];
|
||||
document.getElementById('mangapage').src = crs_start;
|
||||
document.getElementById('progresspage').style.visibility = "hidden";
|
||||
var manga_page = document.getElementById('mangapage');
|
||||
document.getElementById('bodydiv').style.visibility = "visible";
|
||||
manga_page.onload = function(){
|
||||
document.getElementById('progressimage').style.visibility = "hidden";
|
||||
document.getElementById('progressimage2').style.visibility = "hidden";
|
||||
};
|
||||
}
|
||||
}
|
||||
request.onerror = function() {
|
||||
document.getElementById('titlesys').textContent = "Ошибка запроса!";
|
||||
};
|
||||
}
|
||||
|
||||
function toggleFullScreen() {
|
||||
if (!document.fullscreenElement) {
|
||||
document.getElementById('title_ch').style.visibility = "collapse";
|
||||
document.getElementById('copyright').style.visibility = "collapse";
|
||||
document.documentElement.requestFullscreen();
|
||||
} else {
|
||||
if (document.exitFullscreen) {
|
||||
document.getElementById('title_ch').style.visibility = "visible";
|
||||
document.getElementById('copyright').style.visibility = "visible";
|
||||
document.exitFullscreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function manga_page(count) {
|
||||
var head_info = document.getElementById('infohead').textContent;
|
||||
document.location.href = "manga.html#" + head_info;
|
||||
}
|
||||
|
||||
function page_flip(count) {
|
||||
document.getElementById('progressimage').style.visibility = "visible";
|
||||
document.getElementById('progressimage2').style.visibility = "visible";
|
||||
window.scrollTo(0, 0);
|
||||
var min = parseInt(document.getElementById('infostart').textContent);
|
||||
var max = parseInt(document.getElementById('infoend').textContent);
|
||||
var root = "img/";
|
||||
var current_link = document.getElementById('mangapage').src;
|
||||
let ref_cute1 = current_link.split('/').reverse();
|
||||
let ref_cute2 = ref_cute1[0].split('.');
|
||||
current_num = parseInt(ref_cute2[0]);
|
||||
if(current_num + count <= max){
|
||||
if(current_num + count >= min){
|
||||
var next_num = current_num + count;
|
||||
var next_link = root + ref_cute1[1] + "/" + next_num + "." + ref_cute2[1];
|
||||
document.getElementById('mangapage').src = next_link;
|
||||
if(next_num == min) {
|
||||
document.getElementById('prevbutton').style.visibility = "hidden";
|
||||
} else if (next_num == max) {
|
||||
document.getElementById('nextbutton').style.visibility = "hidden";
|
||||
} else {
|
||||
document.getElementById('prevbutton').style.visibility = "visible";
|
||||
document.getElementById('nextbutton').style.visibility = "visible";
|
||||
}
|
||||
} else {
|
||||
document.getElementById('progressimage').style.visibility = "hidden";
|
||||
document.getElementById('progressimage2').style.visibility = "hidden";
|
||||
}
|
||||
|
||||
} else {
|
||||
document.getElementById('progressimage').style.visibility = "hidden";
|
||||
document.getElementById('progressimage2').style.visibility = "hidden";
|
||||
}
|
||||
var manga_page = document.getElementById('mangapage');
|
||||
manga_page.onload = function (){
|
||||
document.getElementById('progressimage').style.visibility = "hidden";
|
||||
document.getElementById('progressimage2').style.visibility = "hidden";
|
||||
};
|
||||
}
|
||||
document.onkeydown = function(e) {
|
||||
if (e.key == "ArrowLeft"){
|
||||
page_flip(-1)
|
||||
} else if (e.key == "ArrowRight") {
|
||||
page_flip(1)
|
||||
} else {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
function adapt() {
|
||||
if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){
|
||||
var ytvid = document.querySelector('#ytvid');
|
||||
var widthScreen = document.documentElement.clientWidth
|
||||
var widthVid = Math.round(widthScreen / 100 * 80) + "px";
|
||||
var heightVid = Math.round((widthScreen / 100 * 80) / 1280 * 720) + "px";
|
||||
ytvid.width = widthVid;
|
||||
ytvid.height = heightVid;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name":"Я перевоплотился в 7-го принца, так что я буду совершенствовать свою магию, как захочу",
|
||||
"name_orig":" Tensei Shitara dai Nana Ouji dattanode, Kimamani Majutsu o Kiwamemasu",
|
||||
"author":"Kenkyo na Circle",
|
||||
"status_tl":"Продолжается",
|
||||
"status_ti":"Выпускается",
|
||||
"cover":"img/covers/7son.jpg",
|
||||
"ch":[
|
||||
{
|
||||
"name":"Том 1 Глава 1 - Я реинкарнировал в 7-го принца",
|
||||
"id":"7son_1"
|
||||
},
|
||||
{
|
||||
"name":"Том 1 Глава 2 - Старший брат что-то замышляет",
|
||||
"id":"7son_2"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Страница манги</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/chapter.css">
|
||||
<script type="text/javascript" src="js/chapters.js"></script>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta property="og:title" content="Манги">
|
||||
<meta property="og:site_name" content="manga.nyaa.ninja">
|
||||
<meta property="og:description" content="Страница манги">
|
||||
</head>
|
||||
<body>
|
||||
<div class="body-trans">
|
||||
<div id="maindiv">
|
||||
<progress class="progress-page" id="progress"></progress><br>
|
||||
<div id="bodydiv">
|
||||
<img id="cover" class="cover">
|
||||
<div id="title" class="titlediv">
|
||||
<h1></h1>
|
||||
</div>
|
||||
<div id="cardinfo" class="card">
|
||||
<p id="cardinfo1"></p>
|
||||
<p id="cardinfo2"></p>
|
||||
<p id="cardinfo3"></p>
|
||||
</div>
|
||||
<div id="cardinfoch" class="cardch">
|
||||
<p>Главы:</p>
|
||||
<p id="helper1" class="invis"></p>
|
||||
</div>
|
||||
<div class="copyright">
|
||||
<a class="aace" href="mailto:dcma@nyaa.ninja?subject=Manga-DCMA" target="_blank">/DCMA</a> | <a class="aace" href=".">/Главная</a> | <a class="aace" href="https://t.me/Manga_nyaa_ninja" target="_blank">/Telegram</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
start();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
||||
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m12.0867962 18-6.0867962 3.8042476v-3.8042476h-2c-1.1045695 0-2-.8954305-2-2v-12c0-1.1045695.8954305-2 2-2h16c1.1045695 0 2 .8954305 2 2v12c0 1.1045695-.8954305 2-2 2zm-4.0867962.1957524 3.5132038-2.1957524h8.4867962v-12h-16v12h4zm0-7.1957524v-2h8v2z" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 363 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m20.222 0c1.406 0 2.54 1.137 2.607 2.475v21.525l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205h-14.038c-1.402 0-2.54-1.065-2.54-2.476v-16.24c0-1.338 1.14-2.477 2.545-2.477h16.5zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4a8.18 8.18 0 0 0 1.8.536c.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34s-1.27-.6-1.27-1.334c.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34s-1.27-.6-1.27-1.334c0-.74.57-1.338 1.27-1.338z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.385-1.335-1.755-1.335-1.755-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57 4.801-1.574 8.236-6.074 8.236-11.369 0-6.627-5.373-12-12-12"/></svg>
|
||||
|
After Width: | Height: | Size: 808 B |
@@ -0,0 +1 @@
|
||||
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m17.8913288 10-6.0013285-6.00132843-6.00132838 6.00132843h.00134273v10h11.99999995v-10zm1.9986858 1.9986859v8.0013141c0 1.1045695-.8954305 2-2 2h-11.99999995c-1.1045695 0-2-.8954305-2-2v-8.0013427l-1.47681648 1.4768164-1.41319817-1.4131981 9.4769858-9.4769858c.7803864-.7803864 2.0456427-.7803864 2.8260291 0l9.4769858 9.4769858-1.4131982 1.4131981z" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 485 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m23.91 3.79-3.61 17.05c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95l-1.9-6.19-5.45-1.7c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z"/></svg>
|
||||
|
After Width: | Height: | Size: 283 B |
@@ -0,0 +1 @@
|
||||
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="m23.495 6.205a3.007 3.007 0 0 0 -2.088-2.088c-1.87-.501-9.396-.501-9.396-.501s-7.507-.01-9.396.501a3.007 3.007 0 0 0 -2.088 2.088 31.247 31.247 0 0 0 -.522 5.805 31.247 31.247 0 0 0 .522 5.783 3.007 3.007 0 0 0 2.088 2.088c1.868.502 9.396.502 9.396.502s7.506 0 9.396-.502a3.007 3.007 0 0 0 2.088-2.088 31.247 31.247 0 0 0 .5-5.783 31.247 31.247 0 0 0 -.5-5.805zm-13.886 9.396v-7.193l6.264 3.602z"/></svg>
|
||||
|
After Width: | Height: | Size: 488 B |