-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
228 lines (209 loc) · 9.93 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Running Pace Calculator</title>
<meta name="description" content="Figure out the average pace for your most recent race, calculate how far you ran based on your estimated pace workout, or plan your training using this calculator to determine the pace for a given distance." />
<meta name="keywords" content="Running, pace, calculator" />
<meta name="author" content="Jorge Moreno aka moro, moro.es (@alterebro)" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="cleartype" content="on" />
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<meta name="robots" content="index, follow" />
<!-- Social Networks -->
<meta name="twitter:title" property="og:title" itemprop="title name" content="Running Pace Calculator" />
<meta name="twitter:description" property="og:description" itemprop="description" content="Figure out the average pace for your most recent race, calculate how far you ran based on your estimated pace workout, or plan your training using this calculator to determine the pace for a given distance." />
<meta name="twitter:image" property="og:image" itemprop="image" content="http://pacecalculator.moro.es/splash.png" />
<meta name="twitter:url" property="og:url" itemprop="url" content="http://pacecalculator.moro.es/" />
<!-- : FaceBook -->
<meta property="og:type" content="website" />
<meta property="fb:admins" content="636040175" />
<meta property="article:author" content="https://www.facebook.com/alterebro" />
<meta property="article:publisher" content="https://www.facebook.com/alterebro" />
<!-- : Google Plus -->
<link href="https://plus.google.com/104877504101033707627/posts" rel="author" />
<link href="https://plus.google.com/104877504101033707627" rel="publisher" />
<!-- : Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@alterebro" />
<meta name="twitter:creator" content="@alterebro" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="address=no" />
<meta name="google" content="notranslate" />
<!--[if IEMobile]><meta http-equiv="cleartype" content="on" /><![endif]-->
<meta name="mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#ae3a34" />
<meta name="msapplication-navbutton-color" content="#ae3a34" />
<meta name="msapplication-TileImage" content="icon.png" />
<meta name="msapplication-TileColor" content="#ae3a34" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Running Pace Calculator" />
<link rel="icon" href="favicon.ico" />
<link rel="icon" sizes="256x256" href="icon.png" />
<link rel="apple-touch-icon" href="icon.png" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" />
<link rel="stylesheet" href="css/pacecalculator.css" />
</head>
<body>
<header role="banner">
<h1>Running Pace Calculator</h1>
</header>
<section role="main">
<p class="intro">
Figure out the average pace for your most recent race, calculate how far you ran based on your estimated pace workout,
or plan your training using this calculator to determine the pace for a given distance.
<br />
Just enter any two of the three variable fields (pace, time, distance) and press the button of the other one to calculate the value.
</p>
<form id="pace-calculator-form">
<dl>
<dt><i class="fa fa-fw fa-clock-o"></i> <strong>Time</strong></dt>
<dd class="time-input">
<span>
<label for="time-hours">Hours</label>
<input type="number" name="time-hours" id="time-hours" maxlength="2" placeholder="hh" step="1" min="0" max="99" />
</span>
<span>
<label for="time-minutes">Mins</label>
<input type="number" name="time-minutes" id="time-minutes" maxlength="2" placeholder="mm" step="1" min="0" max="59" />
</span>
<span>
<label for="time-seconds">Secs</label>
<input type="number" name="time-seconds" id="time-seconds" maxlength="6" placeholder="ss" step="1" min="0" max="59" />
</span>
</dd>
<dd>
<p>To calculate your time, fill in your distance and pace then click here</p>
<button id="calculate-time">Time <i class="fa fa-chevron-right"></i></button>
</dd>
<dt><i class="fa fa-fw fa-road"></i> <strong>Distance</strong></dt>
<dd class="distance-input">
<div>
<span class="double-w">
<label for="distance-amount">Distance</label>
<input type="number" name="distance-amount" id="distance-amount" maxlength="8" step="any" min="0" />
</span>
<span>
<label for="distance-unit">Unit</label>
<select name="distance-unit" id="distance-unit">
<option value="Mile">Miles</option>
<option value="Kilometer" selected="selected">Kilometers</option>
<option value="Meter">Meters</option>
<option value="Yard">Yards</option>
</select>
</span>
</div>
<div class="separator-or"> — or — </div>
<div class="event-input">
<select name="event-select" id="event-select" class="triple-w">
<option value="false">Pick Event</option>
<option value="26.21875-M">Marathon</option>
<option value="13.109375-M">Half-Marathon</option>
<option value="5-K">5K</option>
<option value="5-M">5M</option>
<option value="8-K">8K</option>
<option value="10-K">10K</option>
<option value="15-K">15K</option>
<option value="10-M">10M</option>
<option value="20-K">20K</option>
<option value="15-M">15M</option>
<option value="25-K">25K</option>
<option value="30-K">30K</option>
<option value="20-M">20M</option>
</select>
</div>
</dd>
<dd>
<p>To calculate your distance, fill in your time and pace then click here</p>
<button id="calculate-distance">Distance <i class="fa fa-chevron-right"></i></button>
</dd>
<dt><i class="fa fa-fw fa-bolt"></i> <strong>Pace</strong></dt>
<dd class="pace-input">
<span>
<label for="pace-minutes">Mins</label>
<input type="number" name="pace-minutes" id="pace-minutes" maxlength="2" placeholder="mm" min="0" max="59" />
</span>
<span>
<label for="pace-seconds">Secs</label>
<input type="number" name="pace-seconds" id="pace-seconds" maxlength="6" placeholder="ss" min="0" max="60" />
</span>
<span>
<label for="pace-unit">/ Per</label>
<select name="pace-unit" id="pace-unit">
<option value="Mile">Mile</option>
<option value="Kilometer" selected="selected">Km.</option>
<option value="Half Mile">880 yrds</option>
<option value="Quarter Mile">440 yrds</option>
<option value="Eigth Mile">220 yrds</option>
<option value="1500M">1500 M</option>
<option value="800M">800 M</option>
<option value="400M">400 M</option>
<option value="200M">200 M</option>
<option value="Meter">Meter</option>
<option value="Yard">Yard</option>
</select>
</span>
</dd>
<dd>
<p>To calculate your pace, fill in your time and distance then click here</p>
<button id="calculate-pace">Pace <i class="fa fa-chevron-right"></i></button>
</dd>
</dl>
</form>
</section>
<div id="modal-window">
<div class="modal-notice">
<p id="modal-error"></p>
<dl id="modal-info">
<dt><dfn>Time</dfn></dt>
<dd id="modal-info-time">--</dd>
<dt><dfn>Distance</dfn></dt>
<dd id="modal-info-distance">--</dd>
<dt><dfn>Pace</dfn></dt>
<dd id="modal-info-pace">--</dd>
</dl>
<p><button id="modal-alright">Ok</button></p>
</div>
</div>
<footer role="contentinfo">
<hr />
<p>
<a href="https://github.com/alterebro/PaceCalculator" title="Pace Calculator GitHub Repository" target="_blank"><i class="fa fa-info-circle"></i></a>
<strong>Running Pace Calculator</strong> © 2013-2016. By: <a href="https://twitter.com/alterebro" target="_blank" title="Jorge Moreno. Front End Web Developer and UI Designer. Zaragoza, Spain">@alterebro</a></p>
<ul class="social-sharing">
<li>Share it! : </li>
<li><a href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fpacecalculator.moro.es&title=Running%20Pace%20Calculator"
onclick="window.open(this.href, this.className, 'width=550, height=440'); return false;"
target="_blank"
class="facebook"
title="Share on FaceBook"><i class="fa fa-facebook"></i><span>FaceBook</span></a></li>
<li><a href="https://twitter.com/intent/tweet?text=Running%20Pace%20Calculator&url=http%3A%2F%2Fpacecalculator.moro.es&hashtags=running&via=alterebro"
onclick="window.open(this.href, this.className, 'width=550, height=440'); return false;"
target="_blank"
class="twitter"
title="Share on Twitter"><i class="fa fa-twitter"></i><span>Twitter</span></a></li></li>
<li><a href="https://plus.google.com/share?url=http%3A%2F%2Fpacecalculator.moro.es"
onclick="window.open(this.href, this.className, 'width=550, height=440'); return false;"
target="_blank"
class="googleplus"
title="Share on GooglePlus"><i class="fa fa-google-plus"></i><span>Google+</span></a></li>
</ul>
</footer>
<script type="text/javascript" src="js/pacecalculator.min.js"></script>
<script>
paceCalculator.init();
// Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-63335-18', 'moro.es');
ga('send', 'pageview');
</script>
</body>
</html>