-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (80 loc) · 3.71 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Just a Running Pace Calculator</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="description" content="A simple, easy to use ad-free online and mobile friendly Running Pace Calculator to calculate Pace/Speed, Distance or Time in either Metric or Imperial units."/>
<link rel="stylesheet" href="style.css"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QTDVGKLBCH"></script>
<!-- prettier-ignore -->
<script>
if(window.location.hostname !== 'localhost') {
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-QTDVGKLBCH');
}
</script>
</head>
<body>
<div class="heading">
<p class="lead">Just a</p>
<h1>Running Pace Calculator</h1>
</div>
<div class="app">
<div class="container">
<div class="input-row">
<label class="col-1" for="distance">Distance</label>
<input class="col-2 input-field" type="text" inputmode="numeric" pattern="[0-9.]*" id="distance"/>
<select class="col-3 input-field" id="distance_unit">
<option value="km">kilometers</option>
<option value="mile">miles</option>
<option value="meter">meters</option>
<option value="yard">yards</option>
<option value="foot">feet</option>
<option value="marathon">marathon</option>
</select>
</div>
<div class="input-row">
<label id="pacelabel" class="col-1">Pace</label>
<div class="col-2 input-field time-field" id="pace_time">
<input class="digits zeropad" type="text" inputmode="numeric" pattern=[0-9]* id="pace_minutes" maxLength="3" placeholder="mm"/>
<span>:</span>
<input class="digits zeropad" type="text" inputmode="numeric" pattern=[0-9]* id="pace_seconds" maxLength="3" placeholder="ss"/>
</div>
<input class="col-2 input-field hidden" type="text" inputmode="numeric" pattern="[0-9.]*" id="speed"/>
<select class="col-3 input-field" id="pace_unit">
<option value="km">per km</option>
<option value="mile">per mile</option>
<option value="km/h">km/h</option>
<option value="mile/h">mph</option>
</select>
</div>
<div class="input-row">
<label class="col-1">Time</label>
<div class="col-2 input-field time-field" id="race_time">
<input class="digits" type="text" inputmode="numeric" pattern=[0-9]* id="time_hours" maxLength="3" placeholder="HH"/>
<span>:</span>
<input class="digits zeropad" type="text" inputmode="numeric" pattern=[0-9]* id="time_minutes" maxLength="3" placeholder="mm"/>
<span>:</span>
<input class="digits zeropad" type="text" inputmode="numeric" pattern=[0-9]* id="time_seconds" maxLength="3" placeholder="ss"/>
</div>
<div class="col-3"></div>
</div>
<input type="text" id="invisibleFocusCatcher"/>
<p class="note">Long-press or <kbd>Esc</kbd> to clear/derive a field</p>
</div>
</div>
<footer>
<a href="https://github.com/bertbaron/runningpace" target="_blank">
Sources
</a> |
<a href="https://github.com/bertbaron/runningpace/issues" target="_blank">
Issue Tracker
</a>
</footer>
<script src="runningpace.js" type="text/javascript"></script>
</body>
</html>