-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.html
More file actions
151 lines (125 loc) · 5.09 KB
/
page.html
File metadata and controls
151 lines (125 loc) · 5.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="https://kit.fontawesome.com/8d333124e2.js" crossorigin="anonymous"></script>
<script src="https://publisher.linkvertise.com/cdn/linkvertise.js"></script>
<script>
linkvertise(1093954, {whitelist: ["drive.google.com"], blacklist: []});
</script>
<style>
.header-page,
.header-page a {
color: ghostwhite;
font-size: 11pt;
margin: 0 5px 0 5px;
}
.header-page a:active {
text-color: #4063ff;
}
#details-post{
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
row-gap: 7px;
column-gap: 7px;
}
#details-post li{
border: 1px solid floralwhite;
padding: 8px 10px;
font-size: 12pt;
color: floralwhite;
border-radius: 5px
}
</style>
</head>
<body class="bg-dark">
<div class="container-fluid">
<div class="container d-flex justify-content-between align-items-center nav-top">
<a class="p-2" href="#">Home</a>
<a class="p-2" href="#">All Novels</a>
<a class="p-2" href="#">Support Us</a>
</div>
<div class="container input-group">
<input type="text" name="search" id="search" class="form-control" placeholder="Search Novel">
<button class="btn btn-success" type="submit"><i class="fa-solid fa-magnifying-glass"></i></button>
</div>
<div class="container mt-5 p-2 d-flex justify-content-start align-items-start header-page">
<a href="/">Home</a> / <a href="#" id="item-top-link"></a>
</div>
<div class="container p-0">
<div class="container p-3">
<h3 id="title-page" class="text-white"></h3>
<img class="rounded-1" id="cover-page" src="" alt="Cover" style="width: 100%; height: auto;" />
</div>
<div class="container p-3 pt-0 pb-0">
<ul id="details-post">
<li id="status"></li>
<li id="type"></li>
</ul>
<ul class="mt-1 list-group list-group-horizontal bg-dark" id="genres"></ul>
<p id="synopsis" class="text-white mt-3"></p>
<div class="row" id="volumes">
</div>
<div class="container p-0 mt-5">
<h3 class="text-white">Comments</h3>
<div class="container p-0" id="disqus_thread"></div>
</div>
</div>
</div>
<footer class="footer container-fluid p-3 mt-5">
<p class="text-light" style="font-size: 11pt">Disclaimer: NovelDL does not owned any files from it’s server. All contents are provided by non-affliated third party</p>
<ul class="list-group list-group-horizontal bg-dark" id="footer-media">
<li class="list-group-item p-0 border border-0 bg-dark text-white justify-content-center align-items-center"><i class="fa-brands fa-github"></i></li>
<li class="list-group-item p-0 border border-0 bg-dark text-white justify-content-center align-items-center"><i class="fa-brands fa-discord"></i></li>
<li class="list-group-item p-0 border border-0 bg-dark text-white justify-content-center align-items-center"><i class="fa-solid fa-shield-halved"></i></li>
<li class="list-group-item p-0 border border-0 bg-dark text-white justify-content-center align-items-center"><i class="fa-brands fa-facebook"></i></li>
</ul>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="page-script.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
function getQueryParam(key) {
const urlParams = new URLSearchParams(
window.location.search
);
return urlParams.get(key);
}
let novelId = getQueryParam("id");
let page = getQueryParam("page");
let pageParam = "../page/" + page + ".json";
fetch(pageParam)
.then(response => {
if (!response.ok) {
throw new Error('Failed to load data');
}
return response.json();
})
.then(data => {
const results = data;
results.forEach(items => {
const item = `
<div class="btn btn-dark p-3 border border-secondary rounded-1 m-1 d-flex justify-content-center align-items-center col">
<a class="text-light" style="font-size:12pt;text-decoration:none;" href="`+items.epub+`">`+items.title+`</a>
</div>
`;
$('#volumes').append(item)
});
})
.catch(error => {
console.log(error)
});
})
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<script src="search.js"></script>
</body>
</html>