-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
85 lines (85 loc) · 3.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="image listener, img listener, image processing, img processing"/>
<meta name="description" property="og:description" content="Website to listen an image"/>
<meta name="og:image" content="icon.png"/>
<link rel="icon" type="image/x-icon" href="icon.png">
<link rel="stylesheet" href="https://angel-karasu.github.io/karoace-theme/styles.css">
<link rel="stylesheet" href="styles.css">
<script type="module" src="index.js"></script>
<noscript>JavaScript is required for this website. Please allow JavaScript and refresh the page.</noscript>
<title>Image listener</title>
</head>
<body>
<header><h1>Image listener</h1></header>
<main>
<div>
<h2>Image upload</h2>
<div id="img-uploaded" style="display: none;">
<img><br>
<span>Image size : <span id="width"></span>x<span id="height"></span>px</span><br>
</div>
<label>
Choose image here<br>
<input type="file" id="img-upload-file" accept="image/*">
</label>
</div>
<label id="more-options"><h3>Show more options <input type="checkbox" id="options-checkbox"></h3></label>
<div id="options" style="display: none;">
<label>
Time per pixel: <span></span>s<br>
<input type="range" id="time-pixel" value="0.2" min="0.01" max="2" step="0.01">
</label>
<label>
Frequency method :<br>
<select id="frequency-method"></select>
</label>
<label>
Red <span></span> freqency
<input type="number" id="red" class="frequency rgb-frequency">
Hz
</label>
<label>
Green <span></span> freqency
<input type="number" id="green" class="frequency rgb-frequency">
Hz
</label>
<label>
Blue <span></span> freqency
<input type="number" id="blue" class="frequency rgb-frequency">
Hz
</label>
<label>
Minimum sound frequency
<input type="number" id="min-sound-frequency" class="frequency" value="20" min="20" max="20000" placeholder="20">
Hz
</label>
<label>
Volume: <span></span>%<br>
<input type="range" id="volume" value="50" min="1" max="200" step="1">
</label>
<label>
Oscillator type :<br>
<select id="type">
<option value="sawtooth">Sawtooth</option>
<option value="sine" selected>Sinusoidal</option>
<option value="square">Square</option>
<option value="triangle">Triangle</option>
</select>
</label>
</div>
<div id="buttons">
<button id="listen-button" disabled>Listen</button>
<button id="stop-button" disabled>Stop</button>
</div>
<span>Time: <span id="time">0</span>ms / <span id="total-time">0</span>ms</span>
</main>
<footer>
<a href="https://github.com/Angel-Karasu/image-listener">Github page</a>
<a href="https://codeberg.org/Angel-Karasu/image-listener">Codeberg page</a>
</footer>
</body>
</html>