-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.html
More file actions
76 lines (36 loc) · 1.15 KB
/
Copy pathtest2.html
File metadata and controls
76 lines (36 loc) · 1.15 KB
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
!<!DOCTYPE html>!
<html>
<head>
<meta name = \"viewport\" content = \"width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable=0\">
<title>ESP8266</title>
<style>
\"body { background-color: #808080; font-family: Arial, Helvetica, Sans-Serif; Color: #000000; }\"
</style>
<script>
var websock;
function start() {
websock = new WebSocket('ws://10.0.0.67:81/');
console.log('unknown event');
}
};
}
function showValueB(newValue)
{
connection.send("z"+newValue);
}
</script>
</head>
<body onload="javascript:start();">
<h1>Aquaduino with OTA Updater</h1>
<div id="ledstatus"><b>LED</b></div>
<button id="led|1023" type="button" onclick="buttonclick(this);">On</button>
<button id="led|0" type="button" onclick="buttonclick(this);">Off</button>
<br>
<div data-role="fieldcontain" id="slider3">
<label for="slider3-range">Blue</label>
<input type="range" id="slider3-range" value="0" min="0" max="1023" onchange="showValueB(this.value)"
step="5" data-highlight="true" />
</div>
<br>
</body>
</html>