-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (55 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0a72dd">
<link rel="manifest" href="manifest.json">
<title>Random Music Note Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="flex-center">
<span id="presetNameLabel"></span>
<div class="flex-center">
<span id="noteLabel"></span>
</div>
<div class="flex-center">
<span id="direction-icon-label"></span>
<div id="solution-label" class="flex-center hidden"></div>
</div>
</main>
<div id="menu_overlay">
<div id="menu">
<div id="menu_toggler">
<svg id="menu_icon">
<rect width="30" height="6" y="0"></rect>
<rect width="30" height="6" y="10"></rect>
<rect width="30" height="6" y="20"></rect>
</svg>
<div id="menu_body">
<div>
Options
<ul>
<li>no options yet</li>
</ul>
Set Interval
<ul id="preset_list"></ul>
</div>
</div>
</div>
</div>
</div>
<script src="presets.js"></script>
<script src="random_note.js"></script>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register('sw.js').then(function(registration) {
console.log('ServiceWorker registration successful:', registration.scope);
}, function(err) {
console.log('ServiceWorker registration failed:', err);
});
}
</script>
</body>
</html>