-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (75 loc) · 3.61 KB
/
index.html
File metadata and controls
96 lines (75 loc) · 3.61 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mobile Swinging</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://cdn.pubnub.com/pubnub-3.7.18.min.js"></script>
<script src = "GordonM.js"></script>
</head>
<body>
<div id="container" style="height:100%;width:100%; visibility: hidden">
<div>
<table>
<tr>
<!--this is here for debugging purpses only-->
<td style="visibility:hidden">Event Supported</td>
<td id="doEvent" style="visibility:hidden"></td>
</tr>
<tr>
<td>Direction [alpha]</td>
<td id="doDirection"></td>
</tr>
</table>
</div>
<div>
<form>
<div class="form-group">
<label for="control-colour">Screen Colour</label>
<select name="control-colour" id="control-colour" class="form-control">
<option value="#ff1a75">RED</option>
<option value="#99ccff">BLUE</option>
<option value="#ff33ff">PURPLE</option>
</select>
</div>
<div class="form-group">
<label for="control-action">Speed Of Flash</label>
<select name="control-action" id="control-action" class="form-control">
<option value="10000">Slow</option>
<option value="5000">Medium</option>
<option value="1500">Fast</option>
</select>
</div>
<div class="form-group">
<label for="control-compass">Colour Based On Direction?</label>
<select name="control-compass" id="control-compass" class="form-control">
<option value="false">False</option>
<option value="true">True</option>
</select>
</div>
<div class="form-group">
<button id ="submitbutton" type="button" class="btn btn-primary" onclick="publish()">Submit</button>
<button id ="refreshbutton" type="button" class="btn btn-primary" onclick="reload()" style ="visibility: hidden">Refresh</button>
</div>
</form>
</div>
</div>
<div class="form-group">
<button id ="readybutton" type="button" class="btn btn-primary btn-lg btn-block" onclick="ready()">Press for audio preload</button>
</div>
<div id="passcode">
<div class="form-group">
<label for="pwd">    Password For Control Board:</label>
<input type="password" class="form-control" id="pwd" placeholder="Password">
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default" onclick="showControls()">Sign in</button>
</div>
</div>
</div>
</body>
</html>