Difference between revisions of "Test"

From Fellrnr.com, Running tips
Jump to: navigation, search
User:Fellrnr (User talk:Fellrnr | contribs)
User:Fellrnr (User talk:Fellrnr | contribs)
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<html>
+
This is not the test page you're looking for. 2. Move along...
<script type="text/javascript">
 
function doCalc()
 
{
 
var trimps=new Array();
 
var total = 0;
 
for(i=1; i< 8; i++)
 
{
 
doTrimp('dur_'+i, 'cr10_'+i, 'trimp_'+i);
 
trimps[i-1] = Number(document.getElementById('trimp_'+i).innerHTML);
 
total += trimps[i-1];
 
}
 
var average = getAverageFromNumArr(trimps, 2);
 
var stddev = getStandardDeviation(trimps, 2);
 
var Monotony = 10.0;
 
if (average < (10 * stddev))
 
        {
 
Monotony = average / stddev;
 
Monotony = Math.round(Monotony*100)/100;
 
}
 
document.getElementById('Monotony').innerHTML = "Monotony: " + Monotony + "  ( " + average + " / " + stddev + " )";
 
document.getElementById('Total').innerHTML = "Total TRIMP: " + total;
 
document.getElementById('Stress').innerHTML = "Training Stress: " + Math.round(total * Monotony);
 
}
 
</script>
 
 
 
<form style="font-family: Helvetica,Arial,sans-serif;border: solid 2px #40a0c0" id="MonotonyForm">
 
  <table style="text-align: left;" border="1" cellpadding="1" cellspacing="1">
 
      <tr>
 
        <th>Question</th>
 
        <th>strongly disagree</th>
 
        <th>disagree</th>
 
        <th>neutral</th>
 
        <th>agree</th>
 
        <th>strongly agree</th>
 
      </tr>
 
      <tr>
 
      <td>I slept well last night</td>
 
        <td><input type="radio" name="slept" value="1" /></td>
 
        <td><input type="radio" name="slept" value="2" /></td>
 
        <td><input type="radio" name="slept" value="3" /></td>
 
        <td><input type="radio" name="slept" value="4" /></td>
 
        <td><input type="radio" name="slept" value="5" /></td>
 
      </tr>
 
  </table>
 
  <label id="Total">Total:</label><br/>
 
</form>
 
</html>
 

Latest revision as of 07:43, 28 March 2020

This is not the test page you're looking for. 2. Move along...