-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
197 lines (159 loc) · 7.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Flamebot</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles/jquery.mobile-1.4.5.css"/>
<link rel="stylesheet" href="styles/app.css"/>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/jquery.mobile-1.4.5.js"></script>
<script src="js/flamebot.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div data-role="page" id="home">
<div data-role="header" data-position="fixed">
<a href="#popupAbout" data-rel="dialog" data-role="button" data-inline="true">About</a>
<h1>Flamebot</h1>
<a href="#popupTeam" data-rel="dialog" data-role="button" data-inline="true">My Team</a>
</div>
<div data-role="content">
<div class="content-primary">
<div data-role="collapsibleset" data-content-theme="b" data-iconpos="right" id="set">
</div>
</div>
<div class="content-primary">
<ul data-role="listview" data-inset="true">
<li><a href="#" data-role="button" id="go-button">go</a>
<li><a href="#" data-role="button" id="stop-button">stop</a>
<li><a href="#" data-role="button" id="store-button">store</a>
<li><a href="#" data-role="button" id="reset-button">reset</a>
<li><a href="#" data-role="button" id="drive-button">drive</a>
<li><a href="#" data-role="button" id="shoot-button">take picture</a>
<li><a href="#" data-role="button" id="calibrate-button">calibrate compass</a>
<li><a href="#" data-role="button" id="compass-button">display compass</a>
</ul>
</div>
</div>
</div>
<div data-role="page" id="popupAbout" data-theme="a" class="ui-corner-all">
<div data-role="header" data-theme="d" data-position="fixed">
<h1>The Flamebot</h1>
</div>
<div>
<h3>A new robotics</h3>
<p>Flamebot... a hybrid of steam power and modern robotics... a robot you teach that exhibits a life of its
own.</p>
<h3>Privacy Policy</h3>
<p>
The application records data such as the location of your phone and the name of your team. In some network
activities this will be stored on a server and visible during activities to other players. You can prevent
this data from being shared with others if you do not engage in network-coordinated games and activities.
</p>
</div>
</div>
<div data-role="page" id="popupTeam" data-theme="a" class="ui-corner-all">
<div data-role="header" data-theme="d" data-position="fixed">
<h1>Name the team!</h1>
</div>
<div style="padding:10px 20px;">
<h3>Enter your team name</h3>
<label for="un" class="ui-hidden-accessible">Team name:</label>
<input type="text" name="user" id="un" value="" placeholder="name" data-theme="a"/>
<label for="pw" class="ui-hidden-accessible">Optional PIN:</label>
<input type="password" name="pass" id="pw" value="" placeholder="optional PIN" data-theme="a"/>
<button type="submit" data-theme="b">Save</button>
</div>
</div>
<div data-role="page" id="design">
<div data-role="header" data-position="fixed">
<a href="#home" data-rel="back" data-icon="arrow-l">back</a>
<h1>Behavior: Waiting</h1>
<a href="#editDesign" data-rel="dialog" data-role="button" data-inline="true">Rename</a>
</div>
<div data-role="content">
<p>Entering this state: <b>turn off engine</b></p>
<b>Listeners</b>
<a href="#addListener" data-rel="dialog" data-role="button" data-icon="plus" data-iconpos="notext" data-theme="a"
data-inline="true">+listener</a>
<ul data-role="listview" data-inset="true" data-theme="d">
<li><a href="#s2">
<h3>If: Battery drops below 50</h3>
<p>Then start: Returning</p>
</a></li>
<li><a href="#s3">
<h3>If: Destination came within 5</h3>
<p>Then start: Circling</p>
</a></li>
<li><a href="#s4">
<h3>If: No progress in 120 seconds</h3>
<p>Then start: Calling for help</p>
</a></li>
</ul>
<b>More specific behaviors</b>
<a href="#addActivity" data-role="button" data-icon="plus" data-iconpos="notext" data-theme="a"
data-inline="true">My button</a>
<ul data-role="listview" data-inset="true" data-theme="d">
<li><a href="#">Circling</a></li>
<li><a href="#">Returning</a></li>
<li><a href="#">Calling for help</a></li>
</ul>
</div>
</div>
<div data-role="page" id="editDesign" data-theme="a" class="ui-corner-all">
<div data-role="header" data-theme="d" data-position="fixed">
<h1>State Name</h1>
</div>
<div style="padding:10px 20px;">
<h3>Rename this state</h3>
<label for="un" class="ui-hidden-accessible">Name:</label>
<input type="text" name="user" id="un" value="" placeholder="name" data-theme="a"/>
<button type="submit" data-theme="b">Save</button>
</div>
</div>
<div data-role="page" id="addListener" data-theme="a" class="ui-corner-all">
<div data-role="header" data-theme="d">
<h1>New Listener</h1>
</div>
<div style="padding:10px 20px;">
if... then start...
<button type="submit" data-theme="b">Save</button>
</div>
</div>
<div data-role="page" id="practice">
<div data-role="header" data-position="fixed">
<a href="#home" data-rel="back" data-icon="arrow-l">back</a>
<a href="#refresh" data-icon="back">refresh</a>
<h1>Practice</h1>
</div>
<div data-role="content">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Team role:</legend>
<input type="radio" name="radio-view" id="radio-view-a" value="list" checked/>
<label for="radio-view-a">Robot</label>
<input type="radio" name="radio-view" id="radio-view-b" value="grid"/>
<label for="radio-view-b">Mission Control</label>
</fieldset>
</div>
Robot name: <a href="#popupRobotName" data-rel="dialog" data-role="button" data-inline="true">Robot 1</a>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Control Car:</legend>
<input type="radio" name="radio-choice-b" id="radio-choice-a" value="off" disabled="disabled"/>
<label for="radio-choice-a">Wifi Racer 2</label>
<input type="radio" name="radio-choice-b" id="radio-choice-b" value="on" disabled="disabled"/>
<label for="radio-choice-b">iRacer 3</label>
</fieldset>
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Announce message:</legend>
<input type="radio" name="radio-choice-b" id="radio-choice-f" value="on" disabled="disabled"/>
<label for="radio-choice-f">Start</label>
<input type="radio" name="radio-choice-b" id="radio-choice-e" value="off" disabled="disabled"/>
<label for="radio-choice-e">Battery low</label>
</fieldset>
</div>
</div>
</body>
</html>