-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (72 loc) · 2.79 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
<!DOCTYPE html>
<html>
<head>
<title>STHView</title>
<link rel="icon" href="data:;base64,iVBORwOKGO=" />
<link rel="stylesheet" href="index.css" />
<script src="https://d3js.org/d3.v4.js"></script>
</head>
<body>
<div class="wrapper">
<div class="container">
<legend>Selected space:</legend>
<select id="space" name="space" />
<option>202</option>
<option value="202s">Oppimistori Melu</option>
<option>205</option>
<option>225</option>
<option>226</option>
<option>227</option>
<option>228</option>
<option>229</option>
<option>230</option>
<option>231</option>
<option>232</option>
<option>233</option>
</select>
</div>
<div class="container">
<legend>Data type:</legend>
<select id="datatype" name="datatype" />
<option value="t">Temperature</option>
<option value="c">Air quality</option>
<option value="h">Humidity</option>
<option value="v">VOC</option>
<option value="eq">Sound Average</option>
<option value="peak">Sound Peak</option>
</select>
</div>
<div class="container">
<legend>Start and End times:</legend>
<input id="start_date" type="date" name="start_date" />
<input id="start_time" type="time" name="start_time" />
<br/>
<input id="end_date" type="date" name="end_date" />
<input id="end_time" type="time" name="time" />
</div>
<div class="container">
<legend>Compare with another day:</legend>
<div>
<input type="radio" id="yesterday"
name="compare" value="1"
onchange="updateCompare(this)" />
<label for="yesterday">Previous day</label>
</div>
<div>
<input type="radio" id="lastweek"
name="compare" value="7"
onchange="updateCompare(this)" />
<label for="lastweek">Previous Week</label>
</div>
</div>
<div class="container">
<br/><br/><br/><br/>
<button id="gettime">Get Data</button>
</div>
</div>
<p>
<script src="graph.js"></script>
<script src="index.js"></script>
</p>
</body>
</html>