-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
151 lines (137 loc) · 6.29 KB
/
index.html
File metadata and controls
151 lines (137 loc) · 6.29 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 "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Books</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@40,500,1,0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,700,1,200" />
<link href="css/styles.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<script src="apiLoader.js"></script>
</head>
<body>
<!-- ENTER CODE FOR NAVIGATION BAR HERE -->
<nav class="navbar navbar-expand-lg navbar-nav">
<div class="mynavbar">
<a class="nav-icon" ><span class="material-symbols-outlined nav-icon-image" >local_library</span></a>
<button class="navbar-toggler mytogglebtn" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<!-- <div class="nav-div-keyword">
<input type="text" placeholder="Enter your search here" class="nav-keyword" id="nav-keyword-id" required>
<span class="material-symbols-outlined nav-search-icon" onclick="loadSearchTopic()" style="cursor: pointer;">search</span>
</div> -->
</div>
</div>
</nav>
<div class="firstView">
<img src="images/back2.jpg" class="firstView-back">
<h1 style="margin:auto">FREE BOOKS</h1>
<input type="text" placeholder="Enter your search here" class="nav-keyword" id="nav-keyword-id" required>
<span class="material-symbols-outlined nav-search-icon" onclick="loadSearchTopic()" style="cursor: pointer;">search</span>
</div>
<div class="manga-list">
<u><h2 style="text-align: center;">Top Mangas</h2></u>
<div class="row" id="myMangas">
<!-- <div class="col-lg-2 col-md-4">
<div class="card">
<img src="" class="card-img-top card-images" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
</ul>
</div>
</div> -->
</div>
<button id="pageManga" target="Manga.html" style="margin-top: 20px;margin-bottom: 20px;background-color: rgb(255, 255, 255);"><span class="material-symbols-outlined">arrow_forward</span></button>
</div>
</div>
</div>
<div class="books-list">
<div class="row" id="mybooks">
<div class="col-lg-4 col-md-6">
<!-- <div class="card">
<img src="" class="card-img-top card-images" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-body">
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div> -->
</div>
</div>
</div>
<!-- <p id="forPreview" hidden></p> -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
<script src="loadManga.js"></script>
<script>
var load = (function() {
// Function which returns a function: https://davidwalsh.name/javascript-functions
function _load(tag) {
return function(url) {
// This promise will be used by Promise.all to determine success or failure
return new Promise(function(resolve, reject) {
var element = document.createElement(tag);
var parent = 'body';
var attr = 'src';
// Important success and error for the promise
element.onload = function() {
resolve(url);
};
element.onerror = function() {
reject(url);
};
// Need to set different attributes depending on tag type
switch(tag) {
case 'script':
element.async = true;
break;
case 'link':
element.type = 'text/css';
element.rel = 'stylesheet';
attr = 'href';
parent = 'head';
}
// Inject into document to kick off loading
element[attr] = url;
document[parent].appendChild(element);
});
};
}
return {
css: _load('link'),
js: _load('script'),
img: _load('img')
}
})();
// Usage: Load different file types with one callback
Promise.all([
load.js('apiLoader.js'),
load.css('css/styles.css')
]).then(function() {
console.log('Everything has loaded!');
}).catch(function() {
console.log('Oh no, epic failure!');
});
</script>
<script type="text/javascript">
document.getElementById("pageManga").onclick = function () {
location.href = "Manga.html";
};
</script>
</body>
</html>