-
Notifications
You must be signed in to change notification settings - Fork 35
/
popup.html
50 lines (48 loc) · 1.64 KB
/
popup.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
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="popup.css">
<div id="elements-pane">
<header>
<h1>SoundFixer</h1>
<a href="https://patreon.com/valpackett" class="info-opener" target="_blank"><img src="patreon.svg" alt="" title="Support on Patreon"></a>
<a href="https://github.com/valpackett/soundfixer" class="info-opener" target="_blank"><img src="github.svg" alt="" title="View on GitHub"></a>
</header>
<template id="elements-tpl">
<div class="header-row">
<div class="element-label"></div>
<button class="element-reset">Reset</button>
</div>
<label>
<span>Gain</span>
<input type="range" class="element-gain" min="0" max="5" step="0.05" />
<input type="number" class="element-gain-num" value="1" min="0" max="69" step="0.05">
</label>
<label>
<span>Pan</span>
<input type="range" class="element-pan" min="-1" max="1" step="0.05" />
<input type="number" class="element-pan-num" value="0" min="-1" max="1" step="0.05">
</label>
<div class="checkboxes">
<label>
<span>Mono</span>
<input type="checkbox" class="element-mono" />
</label>
<label>
<span>Flip L/R</span>
<input type="checkbox" class="element-flip" />
</label>
</div>
</template>
<div id="all-elements">
</div>
<details id="individual-elements">
<summary>Control individual media elements</summary>
<ul id="elements-list">
</ul>
</details>
<p class="info">
Note: if you get silence after touching a control, that means this extension can't do anything on this site
because the site uses cross-domain media. Because Security™ :(
</p>
</div>
<script src="popup.js"></script>