-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
167 lines (151 loc) · 8.33 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
<!doctype html>
<html ng-app="app">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="libs/bootstrap-3.2.0-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<title>Debating Timer</title>
</head>
<body ng-controller="MainController as main">
<div id="fullscreen-container">
<div class="container">
<div id="motion">{{ main.motion }}</div>
<div ng-class="{ negative: main.timer.now <= 0 }" id="timer">
<span id="minutes" class="digits">{{ main.timer.now | minutes }}</span><span class="unit">m</span><span id="seconds" class="digits">{{ main.timer.now | seconds }}</span><span class="unit">s</span>
</div>
<div class="progress">
<div id="finished-progress-striped" class="progress-bar progress-bar-danger progress-bar-striped active"></div>
<div id="finished-progress" class="progress-bar progress-bar-danger"></div>
<div id="first-protected-progress" class="progress-bar progress-bar-warning"></div>
<div id="main-progress" class="progress-bar progress-bar-success"></div>
<div id="last-protected-progress" class="progress-bar progress-bar-warning"></div>
</div>
<div ng-controller="ButtonsController as buttons" class="row">
<div class="col-xs-6">
<div class="btn-group">
<button ng-click="buttons.play(main)" id="play-pause" class="btn btn-default" title="Play"><span class="glyphicon glyphicon-play"></span><span class="glyphicon glyphicon-pause" style="display:none;"></span></button>
<button ng-click="buttons.reset(main)" id="reset" class="btn btn-default" title="Reset"><span class="glyphicon glyphicon-refresh"></span></button>
</div>
</div>
<div class="col-xs-6">
<div class="btn-group pull-right">
<button ng-click="buttons.bell()" id="test-bell" class="btn btn-default" title="Test Bell"><span class="glyphicon glyphicon-bell"></span></button>
<button ng-click="buttons.mute()" id="mute" class="btn btn-default" title="Mute"><span class="glyphicon glyphicon-volume-off"></span></button>
<button id="debaters" class="btn btn-default" title="Debaters" data-toggle="modal" data-target="#debaters-modal"><span class="glyphicon glyphicon-user"></span></button>
<button id="settings" class="btn btn-default" title="Settings" data-toggle="modal" data-target="#settings-modal"><span class="glyphicon glyphicon-cog"></span></button>
<button ng-click="buttons.fullscreen()" id="fullscreen" class="btn btn-default" title="Fullscreen"><span class="glyphicon glyphicon-fullscreen"></span></button>
</div>
</div>
</div>
</div>
<div ng-controller="SettingsController as settings" class="modal fade" id="settings-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Settings</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="motion-input" class="col-sm-2 control-label">Motion</label>
<div class="col-sm-10">
<input ng-model="main.motion" ng-change="main.centre()" type="text" class="form-control" id="motion-input" placeholder="Motion">
</div>
</div>
<div class="form-group">
<label for="timer-minutes-input" class="col-sm-2 control-label">Timer</label>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Minutes</span>
<input type="number" min="0" step="1" class="form-control" id="timer-minutes-input" value="05">
</div>
</div>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Seconds</span>
<input type="number" min="0" max="59" step="1" class="form-control" id="timer-seconds-input" value="00">
</div>
</div>
</div>
<div class="form-group">
<label for="protected-minutes-input" class="col-sm-2 control-label">Protected</label>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Minutes</span>
<input type="number" min="0" step="1" class="form-control" id="protected-minutes-input" value="01">
</div>
</div>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Seconds</span>
<input type="number" min="0" max="59" step="1" class="form-control" id="protected-seconds-input" value="00">
</div>
</div>
</div>
<div class="form-group">
<label for="grace-minutes-input" class="col-sm-2 control-label">Grace</label>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Minutes</span>
<input type="number" min="0" step="1" class="form-control" id="grace-minutes-input" value="00">
</div>
</div>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Seconds</span>
<input type="number" min="0" max="59" step="1" class="form-control" id="grace-seconds-input" value="15">
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button ng-click="settings.set(main)" type="button" class="btn btn-primary" data-dismiss="modal">Done</button>
</div>
</div>
</div>
</div>
<div ng-controller="DebatersController as debaters" class="modal fade" id="debaters-modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Debaters</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<div ng-repeat="debater in debaters.debaters" class="form-group">
<label for="name-input" class="col-sm-2 control-label">{{ debater.team }}</label>
<div class="col-sm-5">
<input ng-model="debater.name" type="text" class="form-control" id="name-input" placeholder="Name">
</div>
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">Weight</span>
<input ng-model="debater.weight" type="number" min="1" max="4" step="1" class="form-control" value="1">
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button ng-click="debaters.add()" type="button" class="btn btn-secondary">Add Debater</button>
<button ng-click="debaters.remove()" type="button" class="btn btn-secondary">Remove Debater</button>
<button ng-click="debaters.assign()" type="button" class="btn btn-primary">Assign Teams</button>
</div>
</div>
</div>
</div>
</div>
<audio preload="auto">
<source src="audio/ding.ogg">
<source src="audio/ding.mp3">
<source src="audio/ding.wav">
</audio>
<script src="libs/angular-1.2.26/angular.min.js"></script>
<script src="libs/jquery-1.11.1.min.js"></script>
<script src="libs/bootstrap-3.2.0-dist/js/bootstrap.min.js"></script>
<!--<script src="socket.io/socket.io.js"></script>-->
<script src="script.js"></script>
</body>
</html>