-
Notifications
You must be signed in to change notification settings - Fork 1
/
ESP_SLIDER.html
executable file
·64 lines (50 loc) · 1.85 KB
/
ESP_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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8"/>
<title>ESP Slider</title>
<script type="text/javascript">
function getEl(id) {
return document.getElementById(id);
}
function postVal() {
updateVal();
getEl('form').submit();
}
function updateVal() {
getEl('value1').innerHTML = getEl('slider1').value;
getEl('value2').innerHTML = getEl('slider2').value;
getEl('value3').innerHTML = getEl('slider3').value;
}
window.onload = updateVal;
</script>
</head>
<body>
<form action="" target="tif" id=form method="POST">
<div style="text-align:center; line-height:1em;">
<font size="12">
<p>
<label for="slider1">Vol1:</label>
<div id="value1"></div>
</p>
<input type="range" id="slider1" style="width:400px; height: 100px" min="0" max="1023" value="512"
onchange="postVal()" name="slider1"/>
<p>
<label for="slider2">Vol2:</label>
<div id="value2"></div>
</p>
<input type=range id=slider2 style="width:400px; height: 100px" min="0" max="1023" value="512"
onchange="postVal()" name="slider2"/>
<p>
<label for="slider3">Vol3:</label>
<div id="value3"></div>
</p>
<input type="range" id="slider3" style="width:400px; height: 100px" min="0" max="1023" value="512"
onchange="postVal()" name="slider3"/>
</font>
<input type="hidden" name="hoge" value="fuga"/>
</div>
<iframe src="javascript: false" style="display: none" name="tif" id="tif"></iframe>
</form>
</body>
</html>