-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
258 lines (255 loc) · 11.9 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Run Submitter</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="display:flex; justify-content: flex-start; align-items: flex-start;">
<div style=" display: flex; flex-direction: column; width: 35%">
<div style="display:flex;">
<h1 style="width:100%; height: 50%; flex: 1">Run Submitter<sub><a style="margin: auto;" href="https://github.com/Bluestonex63/Run-submitter">(Github)</a></sub></h1>
</div>
<div style="display: flex; width: 100%; height: 50%; flex: 1; align-self: flex-end;">
<div style="width:75%; margin-right:2%">
<form>
<label>Api key:</label><br>
<input type="text" id="key" class="disableme">
<p></p>
<label>Game:</label><br>
<input type="text" id="game" class="disableme">
</form>
<p></p>
<div style="display: flex;">
<button id="addarun" style="margin-right: 20px; height:20%" disabled>Add a run!</button>
<button id="gameBtn" style="height:20%">Get the levels and categories!</button>
<button id="submit" style="margin-left:20px; height:20%" disabled>Submit runs!</button>
</div>
</div>
</div>
</div>
<div style="border: 1px solid black; padding: 5px; width:calc(100%-210px); flex: 1">
<form>
<div style="display:flex; position: relative;">
<div class="defaultdiv">
<div id="setlevel">
<label><strong>Set default category: (Use CTRL for multiple)</strong></label><br>
<select style="width:100%; height: 100px" id="defaultcat" multiple></select>
</div>
<p></p>
<div id="setlvl">
<label><strong>Set the levels: (Use CTRL for multiple)</strong></label> <br>
<select style="width:100%; height: 100px" id="defaultlvl" multiple></select>
</div>
<p></p>
<div id="setvid">
<label><strong>Set default video:</strong></label><br>
<input type="url" id="defaultvid" placeholder="https://www.youtube.com/"></input>
</div>
</div>
<div class="defaultdiv">
<div id="choices">
<label><strong>Generate runs:</strong></label><br>
<input value="1" type="radio" name="runsgen" checked>Categories cycle through levels<br>
<input value="2" type="radio" name="runsgen">Levels cycle through categories
</div>
<p></p>
<div id="default_platform">
<label><strong>Set platform:</strong></label>
<select id="defplatform"></select>
</div><p></p>
<div id="comment_splits">
<strong>Set split.io link:</strong><br>
<input type="url" id="defsplits" pattern="https://splits.io/.*" placeholder="https://splits.io/"> <p></p>
<strong>Set comment:</strong><br>
<textarea id="defcomment" placeholder="Optional"></textarea>
</div>
</div>
<div class="defaultdiv">
<strong>Set variables:</strong> <p></p>
<div id="defvariables"></div>
</div>
<div class="defaultdiv">
<div>
<strong>Time:</strong> <p></p>
<div id="deftime">
<div id="defrealtimemdiv" class="invisible">
<label>Real time (RTA):</label><br>
<div id="defrealtime">
<input onchange="hours_ms(event)" type="text" id="defrealtimehours" class="runtime">
<label class="timelbl">h</label>
<input onchange="mins_secs(event)" type="text" id="defrealtimemins" class="runtime">
<label class="timelbl">m</label>
<input onchange="mins_secs(event)" type="text" id="defrealtimesecs" class="runtime">
<label class="timelbl">s</label>
<input onchange="hours_ms(event)" type="text" id="defrealtimems" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
<div id="defrealtime_noloadsmdiv" class="invisible">
<label>Real time without loads (LRT):</label><br>
<div id="defrealtime_noloads">
<input onchange="hours_ms(event)" type="text" id="defrealtime_noloadshours" class="runtime">
<label class="timelbl">h </label>
<input onchange="mins_secs(event)" type="text" id="defrealtime_noloadsmins" class="runtime">
<label class="timelbl">m </label>
<input onchange="mins_secs(event)" type="text" id="defrealtime_noloadssecs" class="runtime">
<label class="timelbl">s </label>
<input onchange="hours_ms(event)" type="text" id="defrealtime_noloadsms" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
<div id="defingamemdiv" class="invisible">
<label>In-game time (IGT):</label>
<br>
<div id="defingame">
<input onchange="hours_ms(event)" type="text" id="defingamehours" class="runtime">
<label class="timelbl">h </label>
<input onchange="mins_secs(event)" type="text" id="defingamemins" class="runtime">
<label class="timelbl">m </label>
<input onchange="mins_secs(event)" type="text" id="defingamesecs" class="runtime">
<label class="timelbl">s </label>
<input onchange="hours_ms(event)" type="text" id="defingamems" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
</div> <p></p>
<div id="defdatediv">
<label><strong>Date:</strong></label> <br>
<input type="date" id="defdate">
</div><p></p>
<div id="defregiondiv" class="invisible">
<label><strong>Region:</strong></label> <br>
<select id="defregionsel"></select>
</div>
</div>
</div>
<button id="generate" style="width:25%; bottom: 0; right: 0; position: absolute;">Generate runs!</button>
</div>
</form>
</div>
</div>
<div id="runsdisplayer">
<fieldset class="masterdiv" style="border: 1.5px black solid">
<legend style="display: flex; width:95%">
<div id="retractdiv" style="display:flex; align-items: center; width: 85px">
<h2>Run 1</h2>
<button id="retract" onclick="retract(event)" style="background-color: white; border: none; margin: 0;">-</button>
</div>
<div style="width: 90%; height:100%; margin-top: auto; margin-bottom: auto; border:0.75px black solid;"></div>
<div id="delete" style="float:right; height:100%; margin:auto; ">
<img src="x.png" alt="x" id="delete" style="width: 20px"/>
</div>
</legend>
<div id="runinfo" class="invisible">
<span style="display:flex;">
<div id="catinfodiv" style="margin-right:30px;">
<strong>Category:</strong>
<span id="catinfo"></span>
<span id="varinfo"></span>
</div>
<div id="lvlinfodiv">
<strong>Level:</strong>
<span id="lvlinfo"></span>
</div>
</span>
</div>
<div class="runwrapdiv">
<div id="catlvl">
<div id="submission"></div>
<p></p>
<div id="video" class="invisible">
<form>
<h3 id="videoh3">Video:</h3>
<p></p>
<label>Insert here your video link:</label><br>
<input type="url" id="videolink" placeholder="https://www.youtube.com/">
</form>
</div>
</div>
<div class="invisible" id="variables">
<h3 id="varh3">Variables:</h3>
<form id="varform"></form>
</div>
<div id="platcom">
<div class="invisible" id="platforms">
<h3 id="plath3">Platforms:</h3>
<form id="pform"></form>
</div>
<div id="comment" class="invisible">
<form id="cform">
<h3>Comment & splits:</h3>
<p></p>
<label>Input your splits i/o <strong>link</strong> here: (Optional)</label> <br>
<input type="url" id="splits" pattern="https://splits.io/.*" placeholder="https://splits.io/">
<p></p>
<label>Type your comment here:</label> <br>
<textarea id="commentarea" placeholder="Optional"></textarea>
</form>
</div>
</div>
<div id="time" class="invisible">
<div id="timediv">
<h3 id="timeh3">Time:</h3>
<div id="realtimemdiv" class="invisible">
<label>Real time (RTA):</label><br>
<div id="realtime">
<input onchange="hours_ms(event)" type="text" id="realtimehours" class="runtime">
<label class="timelbl">h</label>
<input onchange="mins_secs(event)" type="text" id="realtimemins" class="runtime">
<label class="timelbl">m</label>
<input onchange="mins_secs(event)" type="text" id="realtimesecs" class="runtime">
<label class="timelbl">s</label>
<input onchange="hours_ms(event)" type="text" id="realtimems" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
<div id="realtime_noloadsmdiv" class="invisible">
<label>Real time without loads (LRT):</label><br>
<div id="realtime_noloads">
<input onchange="hours_ms(event)" type="text" id="realtime_noloadshours" class="runtime">
<label class="timelbl">h </label>
<input onchange="mins_secs(event)" type="text" id="realtime_noloadsmins" class="runtime">
<label class="timelbl">m </label>
<input onchange="mins_secs(event)" type="text" id="realtime_noloadssecs" class="runtime">
<label class="timelbl">s </label>
<input onchange="hours_ms(event)" type="text" id="realtime_noloadsms" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
<div id="ingamemdiv" class="invisible">
<label>In-game time (IGT):</label><br>
<div id="ingame">
<input onchange="hours_ms(event)" type="text" id="ingamehours" class="runtime">
<label class="timelbl">h </label>
<input onchange="mins_secs(event)" type="text" id="ingamemins" class="runtime">
<label class="timelbl">m </label>
<input onchange="mins_secs(event)" type="text" id="ingamesecs" class="runtime">
<label class="timelbl">s </label>
<input onchange="hours_ms(event)" type="text" id="ingamems" class="runtime">
<label class="timelbl">ms</label>
</div>
</div>
<p></p>
<form id="timeform">
<div id="datediv">
<h3>Date:</h3>
<label>Input the date of your run here:</label> <br>
<input type="date" id="date">
</div>
<p></p>
<div id="regiondiv" class="invisible">
<h3>Region:</h3>
<label>Input the region here:</label> <br>
<select id="regionsel"></select>
</div>
</form>
</div>
</div>
</fieldset>
</div>
<script src="script.js"></script>
</body>
</html>