Repository navigation
Expand file tree
/
Copy pathpopup.html
More file actions
44 lines (41 loc) · 1.53 KB
/
Copy pathpopup.html
File metadata and controls
44 lines (41 loc) · 1.53 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>AudioFilter</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container" style="position:relative;">
<div id="status" class="status" style="position:absolute;top:4px;right:4px;font-size:11px;"></div>
<h1>AudioFilter</h1>
<!-- Live waveform -->
<div class="wave-box" id="waveBox">
<canvas id="waveCanvas" width="296" height="60"></canvas>
<div class="wave-label" id="waveLabel">Inactive</div>
<div class="wave-detected" id="waveDetected"></div>
</div>
<label class="label">Blocked words (one per line)</label>
<textarea id="blockedWords" rows="6" placeholder="one\nword\nanother"></textarea>
<div class="row-pair">
<div class="field">
<label class="label">Mute duration (ms)</label>
<input id="muteDuration" type="number" min="100" step="100" />
</div>
<div class="field">
<label class="label">Pre-mute lead (ms)</label>
<input id="preMuteLead" type="number" min="0" step="50" />
</div>
</div>
<div class="toggle-row">
<span class="toggle-label-text" id="filterLabel">Filtering Off</span>
<label class="switch">
<input type="checkbox" id="enableFilter">
<span class="switch-slider"></span>
</label>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>