-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
150 lines (149 loc) · 6.39 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Polyriddim</title>
<link href="main.css" rel="stylesheet">
<meta content="#ffd21f" name="theme-color">
<link href="/manifest.json" rel="manifest">
</head>
<body>
<div class="main">
<h1>Polyriddim</h1>
<h2>Inspired by the <a target="_blank" href="https://www.youtube.com/watch?v=U9CgR2Y6XO4">7:11 Challenge</a></h2>
<div class="header">
<div class="signature-controls">
<button aria-label="increase pulse" id="inc-pulse">▲</button>
<button aria-label="decrease pulse" id="dec-pulse">▼</button>
</div>
<span aria-live="polite" id="label">11 versus 7</span>
<div class="signature-controls">
<button aria-label="increase counterpulse" id="inc-conterpulse">▲</button>
<button aria-label="decrease counterpulse" id="dec-conterpulse">▼</button>
</div>
</div>
<div id="grid"
style="grid-template-rows: repeat(11, minmax(5px, min(50px, 7vh))); grid-template-columns: repeat(7, minmax(5px, 50px));">
<div class="cell cell--primary cell--secondary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell cell--secondary">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--secondary cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--secondary cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell cell--secondary">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell cell--secondary">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--secondary cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
<div class="cell cell--primary">1</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">2</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">3</div>
<div class="cell cell--intermediate">&</div>
<div class="cell">4</div>
</div>
<div>
<button aria-label="Play" id="play"><span class="play--play">▶</span></button>
</div>
<div id="tempo-controls">
<label for="tempo-slider" id="tempo-label">Tempo: 70</label>
<input class="slider" id="tempo-slider" max="240" min="30" type="range" value="70">
</div>
<div class="separator"></div>
<div class="settings">
<span class="subheader">Settings</span>
<div>
<div class="hint">Count off</div>
<input checked id="countOff" type="checkbox"/>
<label for="countOff">Play four measures count off</label>
</div>
<div>
<div class="hint">Choose whether the beep should be played for<br>the pulse only or for every subdivision.
</div>
<div>
<input id="pulse" name="radio-notes" type="radio" value="pulse">
<label for="pulse">Play pulse only</label>
</div>
<div>
<input checked id="all" name="radio-notes" type="radio" value="all">
<label for="all">Play every subdivision</label>
</div>
</div>
<div>
<div class="hint">To count higher subdivisions it might be<br>convenient to group them.</div>
<input checked id="groupSubdivisions" type="checkbox"/>
<label for="groupSubdivisions">Group subdivisions</label>
</div>
</div>
</div>
<script src="main.js" type="module"></script>
<script>
window.addEventListener('load', () => {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js')
}
})
</script>
</body>
</html>