File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -314,9 +314,18 @@ code {
314
314
margin-top : 30px ;
315
315
}
316
316
317
- # hourglass-form {
318
- margin-top : 10px ;
319
- margin-bottom : 10px ;
317
+ .page-content .hourglass {
318
+ align-content : center
319
+ }
320
+
321
+ # hourglass-form {
322
+ width : fit-content;
323
+ margin : 10px auto;
324
+ }
325
+
326
+ # hourglass-display {
327
+ width : 500px ;
328
+ margin : 0 auto;
320
329
}
321
330
322
331
# hourglass-display .table-column {
@@ -327,6 +336,7 @@ code {
327
336
.timedisplay {
328
337
min-width : 200px ;
329
338
font-size : 100px ;
339
+ margin-bottom : -20px ;
330
340
}
331
341
332
342
.hourglass-btn {
Original file line number Diff line number Diff line change 3
3
{% endwith %}
4
4
< audio id ="hourglass-beep " src ="{{ static_url }}/sounds/timer-beep.mp3 " preload ="auto "> </ audio >
5
5
< audio id ="hourglass-end " src ="{{ static_url }}/sounds/timer-end.mp3 " preload ="auto "> </ audio >
6
- < div class ="page-content ">
7
- Type number of seconds needed, hit enter to start. Hit space to flip the hourglass. < a id ="hg-appmode " href ="javascript:enterAppMode(); "> Enter/exit app mode.</ a >
8
- < form id ="hourglass-form ">
9
- < input inputmode ="numeric " id ="hourglass-timerequested "> seconds
10
- </ form >
6
+ < div class ="page-content hourglass ">
11
7
< div id ="hourglass-display " class ="table no-borders ">
12
8
< div class ="table-row non-alternating ">
13
9
< div class ="table-column timedisplay " id ="hourglass-timeleft "> </ div >
26
22
< div class ="table-column btn hourglass-btn " id ="hg-flip "> Flip</ div >
27
23
</ div >
28
24
</ div >
25
+ < form id ="hourglass-form ">
26
+ < input inputmode ="numeric " id ="hourglass-timerequested "> seconds
27
+ </ form >
29
28
</ div >
30
29
{% include './footer.html' %}
31
30
108
107
e . preventDefault ( ) ;
109
108
primaryAction ( ) ;
110
109
}
110
+ document . getElementsByClassName ( "page-content" ) [ 0 ] . ondblclick = function ( e ) {
111
+ e . preventDefault ( ) ;
112
+ enterAppMode ( ) ;
113
+ }
111
114
document . getElementById ( "hourglass-form" ) . onsubmit = function ( e ) {
112
115
e . preventDefault ( ) ;
113
116
initiateTimer ( ) ;
You can’t perform that action at this time.
0 commit comments