Created
September 27, 2018 17:30
-
-
Save jgravois/7fd8f03c07efb6c4ed8289996b812832 to your computer and use it in GitHub Desktop.
total ripoff
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
<html> | |
<head> | |
<title>Minutes Per Mile</title> | |
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> | |
<meta name="Microsoft Theme" content="hw 010, default"> | |
<meta name="Microsoft Border" content="t"> | |
</head> | |
<body bgcolor="#FFFFFF" text="#000000" link="#000080" vlink="#000080" alink="#FF0000"><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><!--mstheme--><font face="Arial"> | |
<div align="center"> | |
<center><!--mstheme--></font><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="940"> | |
<tr> | |
<td width="430"><!--mstheme--><font face="Arial"><b><a href="../index.htm"> | |
<font size="1"> | |
<img border="0" src="../images/ar_run_logo_new2foredit.jpg" width="401" height="102"></font></a></b><!--mstheme--></font></td> | |
<td width="170"><!--mstheme--><font face="Arial"> <!--mstheme--></font></td> | |
<td width="170"><!--mstheme--><font face="Arial"> <!--mstheme--></font></td> | |
<td width="170"><!--mstheme--><font face="Arial"> | |
<p align="right"> | |
<b> | |
<a target="_blank" href="http://image1one.com/wearables/runhq"> | |
<font size="1"> | |
<img border="0" src="../images/logos_banners/RunHQAd151x98.gif" width="151" height="98"></font></a></b><!--mstheme--></font></td> | |
</tr> | |
<tr> | |
<td width="940" colspan="4"><!--mstheme--><font face="Arial"> | |
<p align="center"><font size="2"> | |
<nobr>[<A HREF="marathon.htm" TARGET="" STYLE="{text-decoration: none;}">Marathon Pace</A>]</nobr> <nobr>[Minutes Per Mile]</nobr> <nobr>[<A HREF="mileperhr.htm" TARGET="" STYLE="{text-decoration: none;}">Miles Per Hour</A>]</nobr> <nobr>[<A HREF="heartrate.htm" TARGET="" STYLE="{text-decoration: none;}">Heart Rate</A>]</nobr> <nobr>[<A HREF="calorie.htm" TARGET="" STYLE="{text-decoration: none;}">Calorie</A>]</nobr> <nobr>[<A HREF="distance.htm" TARGET="" STYLE="{text-decoration: none;}">Travel Distance</A>]</nobr> <nobr>[<A HREF="unitconv.htm" TARGET="" STYLE="{text-decoration: none;}">Unit Conversion</A>]</nobr> <nobr>[<A HREF="tempconv.htm" TARGET="" STYLE="{text-decoration: none;}">Temp Conversion</A>]</nobr> <nobr>[<A HREF="factroot.htm" TARGET="" STYLE="{text-decoration: none;}">Factor & Root</A>]</nobr> <nobr>[<A HREF="loanpay.htm" TARGET="" STYLE="{text-decoration: none;}">Loan Payment</A>]</nobr> <nobr>[<A HREF="futureval.htm" TARGET="" STYLE="{text-decoration: none;}">Future Value</A>]</nobr></font><!--mstheme--></font></td> | |
</tr> | |
</table><!--mstheme--><font face="Arial"></center> | |
</div> | |
<!--mstheme--></font></td></tr><!--msnavigation--></table><!--msnavigation--><table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top"><!--mstheme--><font face="Arial"> | |
<p><script LANGUAGE="JavaScript"> | |
<!--Kludgy start to hide this script from browsers (looks like comments) | |
function compute(form) | |
{ | |
// Compute the minutes per mile. | |
// First thing to do is set everything that might have been correctly | |
// left off by the invoker of this script. | |
// Sure ... they could leave off the hour. We'll fix it for them. | |
if (form.hour.value==null || form.hour.value.length==0) | |
{ | |
form.hour.value=0; | |
} | |
// Sure ... they could leave off the minute. We'll fix it for them. | |
if (form.minute.value==null || form.minute.value.length==0) | |
{ | |
form.minute.value=0; | |
} | |
// Sure ... they could leave off the second. We'll fix it for them. | |
if (form.second.value==null || form.second.value.length==0) | |
{ | |
form.second.value=0; | |
} | |
// Next, put these various measurements of time into the least common | |
// denominator ... seconds ... for our calculations. | |
// It's an easy computation based upon an earthling's point of view. | |
var tot_time = (form.hour.value*3600) + (form.minute.value*60) + (form.second.value*1); | |
// Finally, check on the integrity of the data. When things are not | |
// nice, make note of it. Otherwise, we can figure out the mpm. | |
if (tot_time==0) | |
{ | |
console.warn("Recheck your distance value."); | |
alert("Recheck your hour/minute/second values.") | |
} | |
else | |
{ | |
if (form.distance.value.length==0) | |
{ | |
console.log("Recheck your distance value."); | |
// alert("Recheck your distance value.") | |
} | |
else | |
{ | |
var secs_mile = tot_time/form.distance.value; | |
var sec_part = secs_mile%60; | |
var whole_part = secs_mile - sec_part; | |
var min_part = whole_part/60; | |
if (sec_part==0) | |
{ | |
form.results.value= min_part + ":00." + sec_part; | |
} | |
else | |
{ | |
if (sec_part < 1) | |
{ | |
form.results.value= min_part + ":00" + sec_part; | |
} | |
else | |
{ | |
if (sec_part < 10) | |
{ | |
form.results.value= min_part + ":0" + sec_part; | |
} | |
else | |
{ | |
form.results.value= min_part + ":" + sec_part; | |
} | |
} | |
} | |
} | |
} | |
return; | |
} | |
function clear(form) | |
{ | |
// | |
// Clear the values for the minutes per mile form. | |
// | |
form.distance.value = ""; | |
form.hour.value = ""; | |
form.minute.value = ""; | |
form.second.value = ""; | |
form.results.value = ""; | |
} | |
// Kludgy end to hide the scripts from browsers (looks like comments) --> | |
</script> </p> | |
<form method="POST"> | |
<div align="center"> | |
<center> | |
<!--mstheme--></font><table BORDER="1" bgcolor="#E9E9E9" width="550" cellspacing="0" style="border-collapse: collapse" cellpadding="0" bordercolordark="#000000" bordercolorlight="#999999"> | |
<tr> | |
<td colspan="4" bgcolor="#C0C0C0"><!--mstheme--><font face="Arial"><font face="Arial" size="2" color="#000000"><strong><div align="center"><p> | |
<img border="0" src="../images/calculators/min_mile.gif" width="457" height="35"><br> | |
</strong> | |
Enter your distance in miles and your time, then click | |
the compute button<br> | |
and your pace will appear in the Minutes/Mile field.</font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
<tr align="center"> | |
<td><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong>Distance | |
in miles </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong>Hours </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong>Minutes </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong>Seconds </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
<tr align="center"> | |
<td><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="TEXT" NAME="distance" SIZE="9"> </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="TEXT" NAME="hour" SIZE="9"> </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="TEXT" NAME="minute" SIZE="9"> </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="TEXT" NAME="second" SIZE="9"> </strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
<tr align="center"> | |
<td><!--mstheme--><font face="Arial"><div align="right"><p><font face="Arial" size="2" color="#000000"><strong>Minutes/mile | |
</strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td><!--mstheme--><font face="Arial"><font face="Arial" size="2" color="#000000"><strong><input TYPE="TEXT" NAME="results" SIZE="5"></strong></font><!--mstheme--></font></td> | |
<td><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="button" VALUE="jude" OnClick="compute(this.form)"></strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
<td align="center"><!--mstheme--><font face="Arial"><div align="center"><p><font face="Arial" size="2" color="#000000"><strong><input TYPE="reset" VALUE="Reset" OnClick="clear(this.form)"></strong></font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
<tr align="center"> | |
<td colspan="4"><!--mstheme--><font face="Arial"><font face="Arial" size="2" color="#000000"><strong><div align="center"><p></strong>For | |
your convenience:</font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
<tr align="center"> | |
<td colspan="2"><!--mstheme--><font face="Arial"><font face="Arial" size="2" color="#000000"><div align="center"><p>5K | |
= 3.106856M<br> | |
7K = 4.3495984M<br> | |
8K = 4.9709696M<br> | |
10K = 6.213712M</font> | |
</div> | |
<!--mstheme--></font></td> | |
<td colspan="2" align="center"><!--mstheme--><font face="Arial"><font face="Arial" size="2" color="#000000"><div align="center"><p>12K = 7.4564544M<br> | |
15K = 9.320568M<br> | |
20K = 12.427424M<br> | |
Marathon = 26.21875M</font> | |
</div> | |
<!--mstheme--></font></td> | |
</tr> | |
</table><!--mstheme--><font face="Arial"></center> | |
</div> | |
</form> | |
<script language="Javascript1.2"> | |
<!-- | |
// please keep these lines on when you copy the source | |
// made by: Nicolas - http://www.javascript-page.com | |
var mymessage = "Sorry, but you can't view the source of this page."; | |
if (document.layers){ | |
document.captureEvents(Event.MOUSEDOWN); | |
} | |
function rtclickcheck(keyp){ | |
if (document.layers && keyp.which != 1) { | |
alert(mymessage); | |
return false; | |
} | |
if (document.all && event.button != 1) { | |
alert(mymessage); | |
return false; | |
} | |
} | |
document.onmousedown = rtclickcheck | |
//--> | |
</script> | |
<!--mstheme--></font><!--msnavigation--></td></tr><!--msnavigation--></table></body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment