-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (42 loc) · 1.25 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Anime Search</title>
<link rel="stylesheet" href="./style.css">
<script>
window.addEventListener('load', () => {
if (!('serviceWorker' in navigator)) {
console.log("service workers not supported 😣");
return
}
navigator.serviceWorker.register('sw.js').then(
() => {
// registered! 👍🏼
},
err => {
console.error('SW registration failed! 😱', err)
}
)
})
</script>
</head>
<body>
<div id="container" class="hidden">
<div class="search-bar">
<div class="searchbar">
<input id="titleSearch" placeholder="Title" type="text" value="">
<input id="tagSearch" placeholder="Tags" type="text" value="">
<input id="tagNot" type="checkbox">
<div id="count"></div>
</div>
<div class="preview" id="tagPreview"></div>
</div>
<div class="search-results" id="searchResults"></div>
</div>
<div id="loading-screen">
<div class="spinner"></div>
<p>Downloading Anime data</p>
</div>
<script type="module" src="./script.js"></script>
</body>
</html>