Last active
August 29, 2015 14:05
-
-
Save tzengerink/fe5114b0178e63786c19 to your computer and use it in GitHub Desktop.
Pace Calculator - http://pace.zengerink.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy: | |
git checkout master | |
aws s3 sync . s3://pace.zengerink.com --cache-control "public, max-age=604800" --exclude ".git/*" --exclude "Makefile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-us"> | |
<head> | |
<meta name="description" content="Calculate your running pace, distance and time using this open source calculator, written by Teun Zengerink."> | |
<title>Pace Calculator</title> | |
<style type="text/css"> | |
html { | |
background: url(pace-calculator.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} | |
body { | |
margin: 0; | |
font-family: Arial, sans-serif; | |
font-size: 16px; | |
color: rgba(0, 0, 0, .5); | |
} | |
h1 { | |
color: #333; | |
font-size: 24px; | |
margin-top: 5px; | |
margin-bottom: 5px; | |
text-align: center; | |
} | |
label { | |
display: inline-block; | |
width: 80px; | |
margin-right: 2px; | |
text-align: right; | |
} | |
select { | |
width: 70px; | |
} | |
button { | |
width: 70px; | |
margin-right: 9px; | |
} | |
div.row { | |
padding-top: 6px; | |
padding-bottom: 6px; | |
} | |
div.row.highlight { | |
background-color: #d9edf7; | |
font-weight: bold; | |
color: #333; | |
} | |
div.row:nth-of-type(odd):not(.highlight) { | |
background-color: #f4f4f4; | |
} | |
div.padding { | |
display: inline-block; | |
width: 79px; | |
} | |
div#pace-calculator { | |
width: 420px; | |
margin-top: 24px; | |
margin-right: auto; | |
margin-bottom: 0; | |
margin-left: auto; | |
background-color: #fff; | |
border: 2px solid #f4f4f4; | |
box-shadow: 0 2px 6px 4px rgba(0,0,0,.2); | |
-webkit-box-shadow: 0 2px 6px 4px rgba(0,0,0,.2); | |
} | |
</style> | |
</head> | |
<body> | |
<div id="pace-calculator"> | |
<h1>Pace Calculator</h1> | |
<div id="time" class="row"> | |
<label>Time</label> | |
<select id="time-hh" class="ten"></select> | |
<span>:</span> | |
<select id="time-mm" class="sixty"></select> | |
<span>:</span> | |
<select id="time-ss" class="sixty"></select> | |
<span>hh:mm:ss</span> | |
</div> | |
<div id="pace" class="row"> | |
<label>Pace</label> | |
<div class="padding"></div> | |
<select id="pace-mm" class="sixty"></select> | |
<span>:</span> | |
<select id="pace-ss" class="sixty"></select> | |
<span>min/km</span> | |
</div> | |
<div id="distance" class="row"> | |
<label>Distance</label> | |
<div class="padding"></div> | |
<select id="distance-km" class="hundred"></select> | |
<span>.</span> | |
<select id="distance-dm" class="hundred"></select> | |
<span>km</span> | |
</div> | |
<div class="row"> | |
<label>Calculate</label> | |
<button id="calculate-time">Time</button> | |
<button id="calculate-pace">Pace</button> | |
<button id="calculate-distance">Distance</button> | |
</div> | |
</div> | |
<script type="text/javascript" src="pace-calculator.js"></script> | |
</body> | |
</html> |
View raw
(Sorry about that, but we can’t show files that are this big right now.)
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment