-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_slider.html
45 lines (40 loc) · 1.19 KB
/
test_slider.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
<!DOCTYPE html>
<html>
<head>
<title>alpha swept</title>
<style>
body {
height: 100%;
margin: 0 auto;
}
canvas {
height: 800px;
width: 1400px;
/* border: 1px solid black; */
}
input[type="range"] {
width:450px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>
<h1>α sweep</h1>
<h2> Frequencies </h2>
<div style="width: 100%; float:left;">
<canvas id="canvas_freqs"></canvas>
<br>
<input style="width: 80%;" id="input_freqs" type="range" min="0" max="99" value="0" orient="horizontal" oninput="document.getElementById('output_freqs').value = this.value;" />
<div><output id="output_freqs">0</output></div>
</div>
<br>
<h2> Multifrequency </h2>
<div style="width: 100%; float:left;">
<canvas id="canvas_multi"></canvas>
<br>
<input style="width: 80%;" id="input_multi" type="range" min="0" max="99" value="0" orient="horizontal" oninput="document.getElementById('output_multi').value = this.value;" />
<div><output id="output_multi">0</output></div>
</div>
</body>
<script src="./slider.js"></script>
</html>