-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathog_ui.html
More file actions
81 lines (68 loc) · 2.02 KB
/
og_ui.html
File metadata and controls
81 lines (68 loc) · 2.02 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
77
78
79
80
81
<!DOCTYPE html>
<html>
<!-- <script src="jquery.js"></script> -->
<head>
<link rel="stylesheet" type="text/css" href="ui_page.css">
<title>Our page</title>
</head>
<body>
<p class="top">Welcome to our page</p>
<!-- Table with interactive options -->
<table>
<!-- Headers -->
<thead>
<tr>
<!-- Light Interactions -->
<th>
Select Light
</th>
<!-- Temperature Interactions -->
<th>
Select Tempetature Type
</th>
<!-- Something else -->
<th>
Something else
</th>
</tr>
</thead>
<!-- Body for selction options -->
<tbody>
<tr>
<td>
<form method="post">
<input type="radio" name="red"> Red <br>
<input type="radio" name="blue"> Blue <br>
<input type="radio" name="green"> Green <br>
<input type="submit" name="submit">
</form>
</td>
</tr>
</tbody>
<!-- Single buttons -->
<tfoot>
<tr>
<td>
Enter standby
</td>
</tr>
</tfoot>
</table>
<p id="special">
<!-- working on displaying more and more text -->
<script>
var interval = setInterval(sayHello, 1000);
var text = document.getElementById("special");
// when press a key, will 'reset' the page
document.addEventListener('keydown', function() {
console.log('pressed')
text.innerHTML = '';
});
function sayHello() {
text.innerHTML += 'hello<br>';
console.log('hello');
}
</script>
</p>
</body>
</html>