-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (68 loc) · 3.13 KB
/
index.html
File metadata and controls
80 lines (68 loc) · 3.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Stopwatch</title>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<script src="jquery-3.1.1.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="script.js"></script>
<style>
#wait {
position:absolute;
top:0;
bottom:0;
left: 0;
right: 0;
background-color:white;
z-index: 999;
display:flex;
justify-content:center;
align-items:center;
display:none;
}
</style>
</head>
<body>
<!--form action="https://docs.google.com/a/starship.co/forms/d/e/1FAIpQLSd45fatauSzdGu33ZWZiDOMIU0wFFv9ia3r5YpVjQPrEx_XGA/formResponse" method="post">
<input type="radio" name="entry.364832717" value="static">Static<br>
<input type="radio" name="entry.364832717" value="flashing">Flashing<br>
<button type="submit">Submit</button>
</form-->
<div class="container">
<p>
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group btn-group-lg flashing" role="group">
<button type="button" class="btn btn-default concept active" onclick="change('concept',0)" id="concept0">Static</button>
</div>
<div class="btn-group btn-group-lg flashing" role="group">
<button type="button" class="btn btn-default concept" onclick="change('concept',1)" id="concept1">Flashing</button>
</div>
</div>
</p>
<p>
<button class="btn btn-primary btn-lg btn-block reaction" onclick="react(0)">Unchanged speed</button>
<button class="btn btn-primary btn-lg btn-block reaction" onclick="react(1)">Slowing down</button>
<button class="btn btn-primary btn-lg btn-block reaction" onclick="react(2)">Full stop</button>
</p>
<div id="stop" style="display:none;">
<div class="btn-group btn-group-justified" role="group">
<div class="btn-group btn-group-lg flashing" role="group">
<button type="button" class="btn btn-default backoff active" onclick="change('backoff',0)" id="backoff0">Standing</button>
</div>
<div class="btn-group btn-group-lg flashing" role="group">
<button type="button" class="btn btn-default backoff" onclick="change('backoff', 1)" id="backoff1">Backoff</button>
</div>
</div>
<button class="btn btn-primary btn-lg btn-block" onclick="stop()">Car starts moving (<span id="watch">0</span> s)</button>
</div>
<a target="_blank" href="https://docs.google.com/a/starship.co/forms/d/e/1FAIpQLSd45fatauSzdGu33ZWZiDOMIU0wFFv9ia3r5YpVjQPrEx_XGA/viewanalytics?usp=form_confirm">See previous responses</a>
<div id="wait">
<div><i class="fa fa-cog fa-spin fa-3x fa-fw"></i></div>
</div>
</div>
</body>
</html>