-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (54 loc) · 2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>希望ヶ峰</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="./css/style.css" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.9.1/APlayer.min.css" type="text/css"
/>
</head>
<body>
<header class="main-header">
<div class="main-header-nav">
<a class="main-header-nav-btn" href="jp-study" target="_blank">
<span id="to_study">勉強する</span>
</a>
<a class="main-header-nav-btn" href="https://github.com/acgers" target="_blank">
<span id="to_github">いえ</span>
</a>
<a class="main-header-nav-btn" href="mailto:[email protected]" itemprop="email">
<span id="to_join">絶望の残党になる</span>
</a>
</div>
<div class="main-header-player">
<div class="main-header-player-container">
<div class="main-header-player-vertical">
<div class="main-header-player-content">
<div id="a-player" class="aplayer"></div>
</div>
</div>
</div>
</div>
</header>
<script src="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.9.1/APlayer.min.js"></script>
<script src="./js/player.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js', { scope: './' }).then(function () {
if (navigator.serviceWorker.controller) {
console.log('Assets cached by the controlling service worker.');
} else {
console.log('Please reload this page to allow the service worker to handle network operations.');
}
}).catch(function (error) {
console.log('ERROR: ' + error);
});
} else {
console.log('Service workers are not supported in the current browser.');
}
</script>
</body>
</html>