Changes

From Fellrnr.com, Running tips
Jump to: navigation, search

Test

395 bytes removed, 01:03, 7 March 2012
no edit summary
var trimps=new Array();
var total = 0;
for(i=1; i< 8=5; i++)
{
doTrimpif(document.getElementById('dur_'+i, 'cr10_'+i, 'trimp_0'+i);.checked) trimps[i-1] { total += Number(document.getElementById('trimp_0'+i).innerHTML)value; 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>
<tr>
<td>I slept well last night</td>
<td><input type="radio" name="slept" value="1" id="1" /></td> <td><input type="radio" name="slept" value="2" id="2" /></td> <td><input type="radio" name="slept" value="3" id="3" /></td> <td><input type="radio" name="slept" value="4" id="4" /></td> <td><input type="radio" name="slept" value="5" id="5" /></td>
</tr>
</table>
<label id="Total">Total:</label><br/>
<input type="button" value="Calculate" onclick="doCalc()"/>
</form>
</html>

Navigation menu