-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
127 lines (95 loc) · 3.42 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
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Music Player</title>
<meta name="title" content="Surprise">
<link rel="manifest" href="manifest.json">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,-25" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="cat.css">
</head>
<body>
<div class="top-bar wrapper">
<div class="logo wrapper">
<span class="material-symbols-rounded">graphic_eq</span>
<h1 class="title-lg">SURPRISE</h1>
</div>
<div class="top-bar-actions">
<button class="btn-icon" data-playlist-toggler>
<span class="material-symbols-rounded">queue_music</span>
</button>
</div>
</div>
<main>
<article>
<div class="player">
<div class="container">
<div id="marco" data-player-banner>
<div id="cielo"></div>
<div id="luna"></div>
<div id="gato"></div>
<div id="muro"></div>
<div id="edificios"></div>
</div>
<div class="music-content">
<h2 class="headline-sm" data-title>Wonders In Moment</h2>
<p class="label-md artist" data-artist>LimitLess</p>
<div class="seek-control">
<div class="volume">
<button class="btn-icon" data-volume-btn>
<span class="material-symbols-rounded">volume_up</span>
</button>
<div class="range-wrapper">
<input type="range" step="0.05" max="1" value="1" class="range" data-range data-volume>
<div class="range-fill" data-range-fill></div>
</div>
</div>
</div>
<div class="player-control wrapper">
<button class="btn-icon" data-skip-prev>
<span class="material-symbols-rounded">skip_previous</span>
</button>
<button class="btn-icon play" data-play-btn>
<span class="material-symbols-rounded default-icon">play_arrow</span>
<span class="material-symbols-rounded active-icon">pause</span>
</button>
<button class="btn-icon" data-skip-next>
<span class="material-symbols-rounded">skip_next</span>
</button>
</div>
</div>
</div>
</div>
<div class="playlist" data-playlist>
<ul class="music-list" data-music-list></ul>
</div>
<div class="overlay" data-playlist-toggler data-overlay></div>
</article>
</main>
<script src="script.js"></script>
<script>
window.addEventListener('load', () => {
registerSW();
});
// Register the Service Worker
async function registerSW() {
if ('serviceWorker' in navigator) {
try {
await navigator
.serviceWorker
.register('serviceworker.js');
}
catch (e) {
console.log('SW registration failed');
}
}
}
</script>
</body>
</html>