-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (103 loc) · 4.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<link rel="shortcut icon" type="image/ico" href="zycuber.ico"/>
<link rel='stylesheet' href='bootstrap/bootstrap.min.css'>
<link rel='stylesheet' href='bootstrap/bootstrap-theme.min.css'>
<title>Score sheet generator</title>
</head>
<body>
<div class="container">
<div class="blog-header" id="title">
<h1 class = "blog-title"> WCA Competition Scoresheet Generator</h1>
</div>
<div id="beforeSelect">
<a class="btn btn-success" id='wca' href="https://www.worldcubeassociation.org/oauth/authorize?client_id=b84924b3351804e16c2ec25f8d5db240c95af64275f5f5cb920e8354efa58e78&redirect_uri=https%3A%2F%2Fzhouyichen.github.io%2Fscoresheet%2F&response_type=token&scope=public+manage_competitions+dob+email">Login with WCA</a>
<!-- <a class="btn btn-success" id='wca' href="https://www.worldcubeassociation.org/oauth/authorize?client_id=b84924b3351804e16c2ec25f8d5db240c95af64275f5f5cb920e8354efa58e78&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2F&response_type=token&scope=public+manage_competitions+dob+email">Login with WCA</a> -->
<div class='row'>
<div class='col-sm-9 col-xs-12'>
<select class="form-control" id='competitions'>
<option selected="selected">Please login with WCA first</option>
</select>
<p id="selectButton"></p>
</div>
</div>
</div>
<div id="afterSelect" hidden>
<h3 id="compTitle">Generate Scoresheets by rounds</h3>
<div class='row'><div class='col-sm-9 col-xs-12'>
<p>
<form class="input-group" id="grouping">
<label class="radio-inline">
<input type="radio" name="grouping" value="groupByEvent" checked> Order by Groups
</label>
<label class="radio-inline">
<input type="radio" name="grouping" value="groupByPlayer"> Order by Names
</label>
<label class="radio-inline">
<input type="radio" name="grouping" value="groupByIds"> Order by registration IDs
</label>
</form>
</p>
</div></div>
<button type="button" class="btn btn-default" id='generateFirstRounds'> Generate First Rounds</button>
<button type="button" class="btn btn-default" id='reg_csv'>Download Registration CSV</button>
<br><br>
<div class='row'><div class='col-sm-12 col-xs-12'>
<p>Generate scoresheets for other rounds:</p>
<div id="otherRounds"></div>
</div></div>
</div>
<hr>
<div>
<h3>Generate Empty Scoresheets</h3>
<div class='row'>
<div class='col-sm-4 col-xs-12'>
<select class="form-control" id='selectEvent'></select>
</div>
<div class='col-sm-4 col-xs-12'>
<select class="form-control" id='selectRound'></select>
</div>
<div class='col-sm-4 col-xs-12'>
<select class="form-control" id='selectAttempts'></select>
</div>
</div>
<br>
<div class='row'>
<div class='col-sm-5 col-xs-12'>
<input type="text" class="form-control" placeholder="Competition Name" id='compName'>
</div>
<div class='col-sm-2 col-xs-12'>
<input type="text" class="form-control" placeholder="Number of copies" id='copies'>
</div>
<div class='col-sm-2 col-xs-12'>
<input type="number" class="form-control" placeholder="Number of groups" id='groups' value="">
</div>
<div class='col-sm-3 col-xs-12'>
<input type="checkbox" id='fillRank' class="form-control" name='fillRank' value="fillRank">
<label for="fillRank">Fill Rank</label>
</div>
</div>
<br>
<button type="button" class="btn btn-default" id='generateEmpty'>Generate</button>
</div>
</div>
<script src="js/libraries/jquery-1.11.3.min.js"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<script src="bootstrap/bootstrap-filestyle.min.js"></script>
<script src="js/libraries/html2canvas.min.js"></script>
<script src="js/libraries/jspdf.min.js"></script>
<script src="js/libraries/jspdf.debug.js"></script>
<script src="js/libraries/jspdf.plugin.autotable.js"></script>
<script src="js/libraries/csvToArray.v2.1.min.js"></script>
<script src="js/libraries/xlsx.core.min.js"></script>
<script src="js/libraries/underscore.js"></script>
<script src="js/eventNames.js"></script>
<script src="js/formats.js"></script>
<script src="js/eventDefaults.js"></script>
<script src="js/scoresheetGenerator_v2.js"></script>
<script src="js/main.js"></script>
<!-- <script src="js/process_csv.js"></script> -->
</body>
</html>