-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_slider.html
45 lines (40 loc) · 1.35 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>Delta sweep no morozov</title>
<style>
body {
height: 100%;
margin: 0 auto;
}
canvas {
height: 400px;
width: 700px;
/* 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 with morozov criterion, δ goes from 10 to 1E-8</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 = 'δ = '+String(10**(1+this.value/99*(-8-1)));" />
<div><output id="output_freqs">δ = 10</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 = 'δ = '+String(10**(1+this.value/99*(-8-1)));" />
<div><output id="output_multi">δ = 10</output></div>
</div>
</body>
<script src="./slider.js"></script>
</html>