-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (79 loc) · 1.92 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
<!doctype html>
<html>
<head>
<style>
.display {
display: inline-block;
width: 90px;
height: 30px;
background-color: lightgray;
border: 1px solid gray;
font-size: 30px;
margin-bottom: 20px;
}
#relay {
width: 45px;
}
#heat1, #heat2 {
color: black;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 20px;
margin: 4px 2px;
cursor: pointer;
}
.params {
margin-top: 20px;
}
.params input {
width: 50px;
margin: 5px;
}
.params label {
width: 25px;
display: inline-block;
}
.params button {
width: 40px;
}
</style>
<title>Line Chart</title>
<link rel="stylesheet" href="./chartist.min.css">
</head>
<body style="display: flex">
<div style="width: 80%;"">
<div id="tchart" class="ct-chart ct-golden-section"></div>
<div id="pchart" class="ct-chart ct-golden-section"></div>
</div>
<div>
Ports <select id="ports"></select><br><br>
<button id="start" >Start</button>
<button id="stop">Stop</button>
<br><br>
Temp1<br>
<span class="display" id="temp1"></span><br>
Temp2<br>
<span class="display" id="temp2"></span><br>
Temp3<br>
<span class="display" id="temp3"></span><br>
Pressure<br>
<span class="display" id="press"></span><br>
<button id="heat1">Heat1</button> <br>
<button id="heat2">Heat2</button>
<div class="params">
Relay <select id="relay">
<option value="0">0</option>
<option value="1">1</option>
</select><br><br>
<label>P</label><input id="p"><br>
<label>I</label><input id="i"><br>
<label>D</label><input id="d"><br>
<label>TT</label><input id="tt">
<button id="set_params">Set</button>
</div>
</div>
<script src="./simple-line-chart.js"></script>
</body>
</html>