-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
309 lines (297 loc) · 12.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>ACM Scoreboard</title>
<script src="dependencies/pace-min.js" type="text/javascript"></script>
<link href="dependencies/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="dependencies/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
<link href="dependencies/toast.css" rel="stylesheet" type="text/css" />
<link href="dependencies/pace.css" rel="stylesheet" type="text/css" />
<link href="dependencies/jquery.simplecolorpicker.css" rel="stylesheet" type="text/css" />
<link href="styles/index.css" rel="stylesheet" type="text/css" />
<link href="styles/contest.css" rel="stylesheet" type="text/css" />
<link href="styles/tools.css" rel="stylesheet" type="text/css" />
<link href="styles/lights-on.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="fav_icon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="fav_icon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function() {
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "var(--secondary-background-l)",
"text": "var(--tertiary-foreground-l)"
},
"button": {
"background": "transparent",
"text": "var(--tertiary-foreground-l)",
"border": "var(--secondary-inactive)"
}
}
})});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript"> <!--Font Awesome-->
(function() {
var css = document.createElement('link');
css.href = 'http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
css.rel = 'stylesheet';
css.type = 'text/css';
document.getElementsByTagName('head')[0].appendChild(css);
})();
</script>
<script src="dependencies/moment-with-locales.js"></script>
<script src="dependencies/bootstrap/js/bootstrap.min.js"></script>
<script src="dependencies/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="dependencies/lz-string.js" type="text/javascript"></script>
<script src="dependencies/jquery.simplecolorpicker.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
<script src="js/index.js" type="text/javascript"></script>
<script src="js/setup.js" type="text/javascript"></script>
<script src="js/contest.js" type="text/javascript"></script>
<script src="js/tools.js" type="text/javascript"></script>
</head>
<body>
<div class="loading-page"></div>
<div id="headerDiv">
<br>
<br><h1 align="center">ACM <span class="title-second-part">SCOREBOARD</span><span class="version-label">v1.5.0</span></h1>
<div class="subtitle">
<span ialign="center">developed for </span>
<a href="http://codeforces.com/" class="codeforces-logo"><img src="img/codeforceslogo-w.png" width="7.5%" align="center" alt="Codeforces" title="Codeforces.com"></a>
</div>
<br><br>
</div>
<hr style="margin-top: 10px;">
<br>
<div align="center" id="bodyContainer" >
<div align="center" id="tableDiv" style="position: relative; transition: none;">
<!-- data imported here -->
</div>
<br><br>
<div align="center" id="setupDiv" style="position: relative;">
<div class="pre-contest-progress">
<div class="pre-contest-loader-wrapper">
<svg class="pre-contest-loader" viewBox="25 25 50 50">
<circle class="pre-contest-loader-path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle>
</svg>
</div>
<label class="pre-contest-loader-text"></label>
</div>
<div class="setup-div">
<div align="center" style="width: 650">
<form name = "setup">
<table width="500" border="0">
<tbody>
<tr>
<td colspan="2">
<div class="input-wrapper">
<input type="text" class="form-control" name="userHandle" size="55" placeholder="User Handle" id="userHandle" maxlength="24"/>
<button class="setup-add-btn" type="button" title="Add User" id="addUserBtn"><i class="fa fa-plus"></i></button>
</div>
</td>
<td><button class="setup-file-btn" type="button" title="Add Users File" id="addUserFileBtn" style="font-size: 10px;">Choose a file <i class="fa fa-upload" style="padding-left: 5px;"></i></button>
<div class="hide-file"><input type="file" id="fileInput" /></div> </td>
</tr>
<tr>
<td colspan="4"> <div class="form-inline" style="margin-top: -15px"><label id="addedHandlesNumber" class="setup-lbl"></label> <label class="setup-lbl" id="addedHandlesLbl"></label>
</div>
<ul style="list-style:disc; margin-top: -1.5px" id="handlesUl">
<!-- added handles li here-->
</ul><br></td>
</tr>
<tr>
<td><input type="text" class="form-control" name="problemId" size="23.5" placeholder="Problem ID (eg: 4A)" id="problemId" maxlength="5" /></td>
<td> </td>
<td>
<div class="input-wrapper">
<input type="text" class="form-control" name="problemColor" size="28" placeholder="Problem Color" id="problemColor" readonly />
<select name="colorpicker">
<option value="#27ae60">Green</option>
<option value="#16a085">Turquoise</option>
<option value="#3498db">Blue</option>
<option value="#34495e">Dark Blue</option>
<option value="#8e44ad">Purple</option>
<option value="#c0392b">Red</option>
<option value="#e67e22">Orange</option>
<option value="#f1c40f">Yellow</option>
<option value="#95a5a6">Gray</option>
<option value="#ecf0f1">White</option>
</select>
<button class="setup-add-btn" type="button" title="Add Problem" id="addProblemBtn"><i class="fa fa-plus"></i></button>
</div>
</tr>
<tr>
<td colspan="4"> <div class="form-inline" style="margin-top: -15px"> <label id="addedProblemsNumber" class="setup-lbl"></label> <label class="setup-lbl" id="addedProblemsLbl"></label>
</div>
<ul style="list-style:disc; margin-top: -1.5px" id="problemsUl">
<!-- added problems li here -->
</ul><br></td>
</tr>
<br><br>
<tr>
<td width="45%">
<input type="text" onkeydown="return false" class="form-control" id="startTime" placeholder="From (GMT time)">
</td>
<td width="1%"> </td>
<td width="45%">
<input type="text" onkeydown="return false" class="form-control" id="endTime" placeholder="To (GMT time)">
</td>
</tr>
</tbody>
</table>
<br><br>
</form>
</div>
<div>
<input class="setup-submission-btn" type="button" name="submit" value="START CONTEST" title="Start Contest" align="center" id="submitBtn" />
<input class="setup-submission-btn" type="button" name="verify" value="VERIFY" title="Verify" align="center" id="verifyBtn" />
</div>
<br><br>
</fieldset>
</div>
<br><br><br><br>
</div>
<div align="center" id="footerDiv">
<hr style="margin-bottom: 15px; margin-top: 0px;">
<label id="copyrightLbl" class="copyright-lbl" > </label>
<br><br>
</div>
<!-- FLOATING ACTION BUTTON -->
<div class="fab-wrapper">
<div class="action-button">
<span class="fa fa-cog"></span>
</div>
<div class="panel">
<div class="panel-element">
<button class="panel-button" id="documentationBtn" title="Documentation">
<i class="fa fa-question" style="font-size: 15px; margin-top: 4px;"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Documentation</span>
<div class="panel-element-data">
</div>
</div>
</div>
<div class="panel-element last-in-group">
<button class="panel-button" id="lightsBtn" title="Lights Off">
<i class="fa fa-lightbulb-o" style="font-size: 15px; margin-top: 4px;"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Lights Off</span>
<div class="panel-element-data">
</div>
</div>
</div>
<hr>
<div class="panel-element">
<button class="panel-button disabled" id="logDetailedReportBtn" title="Log Detailed Report">
<i class="fa fa-users"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Log Detailed Report</span>
<div class="panel-element-data">
</div>
</div>
</div>
<div class="panel-element last-in-group">
<button class="panel-button disabled" id="logLastSubmissionBtn" title="Log Last Submissoin">
<i class="fa fa-file-text"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Log Last Submission</span>
<div class="panel-element-data">
</div>
</div>
</div>
<hr>
<div class="panel-element">
<button class="panel-button disabled" id="copyContestBtn" title="Copy Contest">
<i class="fa fa-clone"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Copy Contest</span>
<div class="panel-element-data">
</div>
</div>
</div>
<div class="panel-element last-in-group selectable">
<button class="panel-button" id="loadContestBtn" title="Load Contest">
<i class="fa fa-clipboard"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Load Contest</span>
<div class="panel-element-data">
<input type="text" class="form-control" name="loadContestInput" size="55" placeholder="Setup String" id="loadContestInput"/>
</div>
</div>
</div>
<hr>
<div class="panel-element selectable">
<button class="panel-button disabled" id="addSubtractTimeBtn" title="Modify Contest Duration">
<i class="fa fa-clock-o"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Modify Contest Duration</span>
<div class="panel-element-data">
<input type="text" class="form-control" name="modifyContestDuration" size="55" placeholder="± seconds" id="modifyContestDurationInput"/>
</div>
</div>
</div>
<div class="panel-element selectable">
<button class="panel-button disabled" id="cancelSubmissionBtn" title="Cancel Submission">
<i class="fa fa-ban"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Cancel Submission</span>
<div class="panel-element-data">
<input type="text" class="form-control" name="cancelledSubmissionId" size="55" placeholder="Submission ID" id="cancelledSubmissionIdInput"/>
</div>
</div>
</div>
<div class="panel-element">
<button class="panel-button disabled" id="toggleBlindModeBtn" title="Toggle Blind Mode">
<i class="fa fa-eye-slash"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Toggle Blind Mode</span>
<div class="panel-element-data">
</div>
</div>
</div>
<div class="panel-element last-in-group">
<button class="panel-button disabled" id="updateScoresBtn" title="Update Scores">
<i class="fa fa-refresh"></i>
</button>
<div class="panel-element-body">
<span class="panel-element-title">Update Scores</span>
<div class="panel-element-data">
</div>
</div>
</div>
</div>
</div>
<div class="hotkeys-panel">
<div class="hotkey-element" id="fullscreenHotkeyElement" title="Toggle fullscreen">
<div class="hotkey-key">F</div><div class="hotkey-description">Fullscreen Off</div>
</div>
<div class="hotkey-element" id="toolsHotkeyElement" title="Show/hide the tools menu">
<div class="hotkey-key">T</div><div class="hotkey-description">Tools Visible</div>
</div>
<div class="hotkey-element disabled" id="draggingHotkeyElement">
<div class="hotkey-key">D</div><div class="hotkey-description" title="Toggle contest table dragging">Contest Table Dragging On</div>
</div>
<div class="hotkey-element" id="soundHotkeyElement">
<div class="hotkey-key">M</div><div class="hotkey-description" title="Mute/unmute sounds">Sound Unmuted</div>
</div>
</div>
<audio controls hidden="hidden" id="finishSoundAudio">
<source src="sounds/finishSound.mp3", type="audio/mpeg">
</audio>
</body>
</html>