-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
189 lines (142 loc) · 8.14 KB
/
index.html
File metadata and controls
189 lines (142 loc) · 8.14 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Chess Clock - thureindev</title>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Import Google Symbols -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,700,0,0" />
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Navbar --------------------------------------------------------------------------------- -->
<nav>
<div class="nav-wrapper">
<a href="https://thureindev.github.io" target="_blank" class="brand-logo left">thureindev</a>
<!-- <ul id="nav-mobile" class="right">
<li><a href="#">Themes</a></li>
<li><a href="#">About</a></li>
</ul> -->
</div>
</nav>
<!-- CLOCK FULLSCREEN --------------------------------------------------------------------------------- -->
<div class="fullscreen">
<div class="row">
<div class="col s12 control-bar">
<button class="btn-floating btn-large waves-effect waves-light teal volume-button"><i class="material-icons">volume_up</i></button>
<button class="btn-floating btn-large waves-effect waves-light teal play-pause-button"><i class="material-icons">pause</i></button>
<button class="btn-floating btn-large waves-effect waves-light teal settings-button"><i class="material-icons">timer</i></button>
</div>
<button id="clock-1" class="col s6 waves-effect waves-light btn clock-button">00:00<span>.0</span></button>
<button id="clock-2" class="col s6 waves-effect waves-light btn clock-button">00:00<span>.0</span></button>
</div>
</div>
<!-- POP UP INTERFACE --------------------------------------------------------------------------------- -->
<div class="pop-up-interface hide">
<div class="interface-container gamestart-info hide">
<p class="info-text">
When both players are ready, black hits their button prior to white's first move,
thus starting the clock on white's end.
</p>
<div class="btn-panel">
<button class="btn-close-pop-up btn-floating btn-large waves-effect waves-light teal pop-up-continue-button"><i class="material-icons">arrow_back</i></button>
</div>
</div>
<div class="interface-container clock-settings hide">
<p class="info-text">
Clock Settings
</p>
<div>
<label for="">Different Clock Times</label>
<div class="switch">
<label>
<input type="checkbox" class="different-timers-toggle">
<span class="lever"></span>
</label>
</div>
</div>
<div class="timer-container">
<div class="timer-interface primary">
<div>
<label for="c-1-minutes">Minutes:</label>
<input type="number" id="c-1-minutes" class="time-input" min="0" step="1" max="90" value="5" required />
</div>
<div>
<label for="c-1-seconds">Seconds:</label>
<input type="number" id="c-1-seconds" class="time-input" min="0" step="1" max="59" value="0" required />
</div>
<!-- <div>
<label for="c-1-seconds">Increment:</label>
<input type="number" id="c-1-increment" min="0" step="1" max="15" required />
</div> -->
</div>
<div class="timer-interface secondary hide">
<div>
<label for="c-2-minutes">Minutes:</label>
<input type="number" id="c-2-minutes" class="time-input" min="0" step="1" max="90" value="5" required />
</div>
<div>
<label for="c-2-seconds">Seconds:</label>
<input type="number" id="c-2-seconds" class="time-input" min="0" step="1" max="59" value="0" required />
</div>
<!-- <div>
<label for="c-2-seconds">Increment:</label>
<input type="number" id="c-2-increment" min="0" step="1" max="15" required />
</div> -->
</div>
</div>
<!-- <div>
<label>Timing Method</label>
<p>
<label>
<input name="group1" type="radio" checked />
<span>Fischer</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" />
<span>Bronstein</span>
</label>
</p>
</div> -->
<div class="btn-panel">
<button class="btn-close-pop-up btn-floating btn-large waves-effect waves-light teal pop-up-continue-button"><i class="material-icons">arrow_back</i></button>
<button class="btn-reset-default btn-floating btn-large waves-effect waves-light teal pop-up-continue-button"><i class="material-icons">replay</i></button>
<button class="btn-update-timers btn-floating btn-large waves-effect waves-light teal pop-up-continue-button"><i class="material-icons">thumb_up_off_alt</i></button>
</div>
</div>
</div>
<div class="cover-backdrop hide"></div>
<!-- SCRIPTS INCLUDE --------------------------------------------------------------------------------- -->
<!-- Materialize -- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.6.4.slim.min.js" integrity="sha256-a2yjHM4jnF9f54xUQakjZGaqYs/V1CYvWpoqZzC2/Bw=" crossorigin="anonymous"></script>
<!-- custom js files -->
<script>
function include(file) {
var script = document.createElement('script');
script.src = file;
script.type = 'text/javascript';
script.defer = true;
//!IMPORTANT NEED ASYNC AWAIT HERE!
document.getElementsByTagName('head').item(0).appendChild(script);
}
/* Include Many js files */ // include order is important
include('1_dom_selectors.js');
include('2_event_listeners.js');
include('helper_funcs.js');
include('View.js');
include('Clock.js');
include('Controller.js');
include('app.js');
</script>
</body>
</html>