-
Notifications
You must be signed in to change notification settings - Fork 6
/
timer-selector.html
165 lines (138 loc) · 5.55 KB
/
timer-selector.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="SCP Wiki Timer Selector">
<meta name="keywords" content="scp,wiki,timer,selector,generator">
<link rel="stylesheet" href="/timer/timer-selector.css">
<script src="/timer/timer-selector.js"></script>
<title>Timer Selector</title>
</head>
<body>
<noscript>This application requires Javascript to function.</noscript>
<h1 id="error" class="hidden"></h1>
<div id="form">
<fieldset id="timer-type">
<legend id="timer-type-label"></legend>
<!-- Generic -->
<span>
<input id="timer-type-generic" type="radio" name="timer-type" value="generic" checked>
<label id="timer-type-generic-label" for="timer-type"></label>
</span>
<!-- Deletion -->
<span>
<input id="timer-type-deletion" type="radio" name="timer-type" value="deletion">
<label id="timer-type-deletion-label" for="timer-type"></label>
</span>
<!-- Ban -->
<span>
<input id="timer-type-ban" type="radio" name="timer-type" value="ban">
<label id="timer-type-ban-label" for="timer-type"></label>
</span>
</fieldset>
<fieldset id="deletion-options" class="hidden">
<legend id="deletion-options-label"></legend>
<div class="text text-tiny">
<label id="deletion-score-label"></label>
<input id="deletion-score-value" type="number"></input>
<label id="summary-deletion-label"></label>
<select id="summary-deletion-reason">
<option id="summary-deletion-reason-none" value=""></option>
</select>
</div>
</fieldset>
<fieldset id="start">
<legend id="start-label"></legend>
<!-- now -->
<span>
<input id="start-now" type="radio" name="start" value="now" checked>
<label id="start-now-label" for="now"></label>
</span>
<!-- later / other time -->
<span>
<input id="start-later" type="radio" name="start" value="later">
<label id="start-later-label" for="later"></label>
<input id="start-later-date" class="radio-text" type="date"></input>
<input id="start-later-time" class="radio-text" type="time"></input>
</span>
</fieldset>
<fieldset id="duration">
<legend id="duration-label"></legend>
<!-- 1 day -->
<span>
<input id="duration-1d" type="radio" name="duration" value="86400000" checked>
<label id="duration-1d-label" for="86400000"></label> <!-- in ms -->
</span>
<!-- 1 week -->
<span>
<input id="duration-1w" type="radio" name="duration" value="604800000">
<label id="duration-1w-label" for="604800000"></label>
</span>
<!-- 2 weeks -->
<span>
<input id="duration-2w" type="radio" name="duration" value="1209600000">
<label id="duration-2w-label" for="1209600000"></label>
</span>
<!-- 1 year -->
<span>
<input id="duration-1y" type="radio" name="duration" value="31536000000">
<label id="duration-1y-label" for="31536000000"></label>
</span>
<!-- custom -->
<span>
<input id="duration-custom" type="radio" name="duration" value="custom">
<label id="duration-custom-label" for="custom"></label>
<input id="duration-custom-value" class="radio-text" type="number" size="6"></input>
<select id="duration-custom-unit">
<option id="unit-minute" value="60000"></option>
<option id="unit-hour" value="3600000"></option>
<option id="unit-day" value="86400000"></option>
<option id="unit-week" value="604800000"></option>
<option id="unit-month" value="2592000000"></option>
<option id="unit-year" value="31536000000"></option>
</select>
</span>
</fieldset>
<fieldset id="messages">
<legend id="messages-label"></legend>
<div class="text">
<label id="message-progress-label"></label>
<input id="message-progress" type="text"></input>
</div>
<div class="text">
<label id="message-finished-label"></label>
<input id="message-finished" type="text"></input>
</div>
</fieldset>
<fieldset id="advanced">
<legend id="advanced-label"></legend>
<div class="text text-short">
<label id="height-label"></label>
<input id="height" type="text" value="200px"></input>
</div>
<div class="text text-short">
<label id="width-label"></label>
<input id="width" type="text" value="750px"></input>
</div>
<div class="text">
<label id="custom-css-label"></label><br>
<textarea id="custom-css" cols="60" rows="4"></textarea>
</div>
<div class="text">
<label id="template-label"></label><br>
<textarea id="template" cols="60" rows="4">%%iframe%%</textarea>
</div>
</fieldset>
<div>
<button id="build"></button>
<button id="copy"></button>
<span class="info">
[<a id="info-help" href="https://scpwiki.github.io/timer" target="_blank"></a>]
[<a id="info-source" href="https://github.com/scpwiki/timer" target="_blank"></a>]
</span>
</div>
</div>
<!-- output -->
<div><textarea id="output" class="hidden" cols="60" rows="4" readonly></textarea></div>
</body>
</html>