-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (108 loc) · 3.63 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
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
<!DOCTYPE html>
<html lang="jp" dir="ltr">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3ELL43VVWZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-3ELL43VVWZ');
</script>
<meta name="robots" content="noindex">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>ありふれた日々の残し方</title>
<link rel="stylesheet" href="./css/index.css">
<link rel="icon" href="./img/favicon.ico" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');
</style>
<script src="https://kit.fontawesome.com/a75100396c.js" crossorigin="anonymous"></script>
<link rel="manifest" href="manifest.json">
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('sw.js').then(function(registration) {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed: ', err);
});
});
}
</script>
</head>
<body>
<main>
<div class="audio-player">
<div class="main-p">
<div class="jacket-lyric">
<div id="jacket">
<img src="./img/image.webp" alt="">
</div>
<div id="lyrics">
<div class="title">
<h1>ありふれた日々の残し方</h1>
<p class="artist">作詞・作曲 : 有彩, ぺんぺん</p>
</div>
<div class="lyric">
<center>
<p id="lyric_b"></p>
<p id="lyric"></p>
<p id="lyric_a"></p>
</center>
</div>
</div>
</div>
<div class="switch_btn">
<button id="switch_btn"><i class="fa-solid fa-bars"></i></button>
</div>
</div>
<div class="player">
<div class="title-mob">
<h1>ありふれた日々の残し方</h1>
<p class="artist-mob">作詞・作曲 : 有彩, ぺんぺん</p>
</div>
<audio id="music" src="./audio-data/ありふれた日々の残し方.flac" preload="metadata"></audio>
<div class="seek_bar">
<input type="range" id="seek_bar" value="0">
</div>
<div class="play-pause">
<div class="backward">
<button id="backward"><i class="fa-solid fa-backward"></i></button>
</div>
<div class="play_pause">
<button id="play"><i class="fa-solid fa-play"></i></button>
<button id="pause"><i class="fa-solid fa-pause"></i></button>
</div>
<div class="forward">
<button id="forward"><i class="fa-solid fa-forward"></i></button>
</div>
</div>
</div>
</div>
</main>
</body>
<script src="./js/lyrics.js"></script>
<script type="text/javascript">
main();
// window.addEventListener("orientationchange", function() {
// location.reload();
window.addEventListener("resize", function() {
console.log('a');
const jacket = document.getElementById('jacket');
const lyrics = document.getElementById('lyrics');
if (window.innerHeight > window.innerWidth) {
jacket.style.display = 'block';
lyrics.style.display = 'none';
} else {
console.log('a');
jacket.style.display = 'flex';
lyrics.style.display = 'flex';
};
}, false);
//});
</script>
</html>