-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path47-Date-time.html
More file actions
72 lines (67 loc) Β· 1.81 KB
/
47-Date-time.html
File metadata and controls
72 lines (67 loc) Β· 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>47-Date-time</title>
<style>
.stopwatch-wrapper {
display: block;
box-sizing: border-box;
margin-right: auto;
margin-left: auto;
max-width: 500px;
}
.timer {
margin-left: auto;
margin-right: auto;
text-align: center;
color: #212121;
border-radius: 2px;
}
.clockface {
margin-bottom: 15px;
font-family: 'Roboto Mono', monospace;
font-size: 80px;
margin-top: 0;
margin-bottom: 24px;
}
.timer-btn {
display: inline-flex;
margin-left: 4px;
margin-right: 4px;
text-transform: uppercase;
border: 0;
background-color: #3f51b5;
color: #ffffff;
padding: 10px 20px;
cursor: pointer;
font-size: 24px;
border-radius: 3px;
}
.timer-btn.is-active {
background-color: #2196f3;
}
</style>
</head>
<body>
<!-- simple timer -->
<span class="simple-timer"></span>
<!-- stopwatch -->
<div class="stopwatch-wrapper">
<button type="button" class="stop js-stop">Stop</button>
<button type="button" class="start js-start">Start</button>
<span class="stopwatch"></span>
</div>
<!-- timer -->
<div class="timer">
<p class="clockface js-clockface"></p>
<div class="actions">
<button class="timer-btn" data-action-start>Start</button>
<button class="timer-btn" data-action-stop>Stop</button>
</div>
</div>
<script src="./app/47-Date-time.js" type="module"></script>
</body>
</html>