Customize Your Own Pace Calculator

The "Generated HTML" below, and the two javascript files, "pacecalc.js" and "pacecalc_example.js", are considered to be public domain, as defined in the Terms and Conditions.

This page provides an easy way for you to customize the Pace Calculator layout. As you make changes, and click "Update", the HTML will be displayed in the text box below.

The Customization
Border Color
      red
      green
      blue
Outer Border
Cell Border
Border Color :
Each value (Red, Green, Blue) can be a number from 0 to 255. These values will be converted into hexadecimal numbers below in the HTML. Note that if red, green, and blue are all 255, the result is white. If they are all 0, then the result is black.

Outer Border :
The size of the perimeter border.

Cell Border :
The size of the borders within the table. The Cell Border also includes the perimeter, so the perimeter is the Outer Border plus the Cell Border.

The Resulting Pace Calculator

Calculate for:  
Time (h:m:s) Distance Pace (h:m:s)
: : : :
  Miles
Meters
Yards
Kilometers
Mile
400m
Kilometer
MREDKJ.com

The Generated HTML

The HTML below is for the layout.


The JavaScript

For the Pace Calculator logic, include the dot-js files using the following HTML, which supplements the HTML generated above.
<script language="JavaScript" src="pacecalc.js"></script>
<script language="JavaScript" src="pacecalc_example.js"></script>

pacecalc.js has the core logic, and pacecalc_example.js implements it to match up with the field names in the above HTML.

Download the files here:
pacecalc.js
pacecalc_example.js

The JavaScript - Alternate Method

If you find it easier, copy the contents of the dot-js files from below. They will still need to be placed in separate files with the appropriate names. Or the code can be placed in the HTML file between <SCRIPT> tags. Refer to the MREDKJ JavaScript Intro for more information about using JavaScript.

pacecalc.js


pacecalc_example.js

MREDKJ Pace Calculators
JavaScript Table of Contents
MREDKJ.com
logo