-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (132 loc) · 3.66 KB
/
index.html
File metadata and controls
135 lines (132 loc) · 3.66 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
<!doctype html>
<html lang="en-us">
<meta charset="utf-8">
<style>
@import url("https://jakeisnt.github.io/styles/box.css");
@import url("https://jakeisnt.github.io/styles/main.css");
* {
white-space: normal;
}
html {
font-size: 20px;
font-family: "Arial", "Helvetica", sans-serif;
}
body {
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
}
#clock {
user-select: none;
padding: 1em;
padding-top: 0;
}
#minutes {
font-size: 10em;
}
#seconds {
font-size: 10em;
}
.time-label {
display: none;
}
#root {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.buttons {
display: flex;
font-size: 1em;
padding-top: 1.25em;
flex-direction: column;
}
@media only screen and (min-width: 390px) {
.time-label {
display: inline;
font-size: 1.5em;
min-width: 125px;
}
}
@media only screen and (min-width: 450px) {
.time-label {
padding-left: 0.5em;
font-size: 2em;
min-width: 225px;
}
}
/* small vertical desktop */
@media screen and (min-width: 500px) {
html {
font-size: 30px;
}
#root {
flex-direction: row;
}
}
/* full screen desktop */
@media screen and (min-width: 1000px) {
.buttons {
padding-right: 3em;
}
body {
padding: 1em;
}
#clock {
padding-left: 3em;
}
}
.time-box {
display: flex;
flex-direction: row;
}
.time {
min-width: 1.2em;
}
.box {
font-size: 30px;
width: 5.5em;
margin-bottom: 0.5em;
min-height: 4em;
}
footer {
margin: 1em;
padding-left: 2em;
text-color: gray;
}
</style>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Timer</title>
<meta name="description" content="good timer for lab quizzes">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<base href="./">
</head>
<body>
<div id="root">
<div id="clock">
<div class="time-box">
<div class="time" id="minutes"/></div><p class="time-label" id="mins-label">minutes</p>
</div>
<div class="time-box">
<div class="time" id="seconds"/></div><p class="time-label" id="secs-label">seconds</p>
</div>
</div>
<div class="buttons">
<button id="start-button" class="box">start</button>
<button id="reset-button" class="box">reset</button>
<button id="flip-button" class="box">count up</button>
</div>
</div>
<script type="module" src="js-build/modules/main.rkt.js"></script>
</body>
<footer>
λx.xx | made in Racket! press space to start and stop timer. source <a href="https://github.com/jakeisnt/timer">here</a>. | λy.xx
</footer>
</html>