Welcome Guest, you are in: Login

wiki.crowe.co.nz

RSS RSS

Navigation





Search the wiki
»

PoweredBy

Clothing Layers

RSS
Modified on Friday, 21 June 2013 21:57 by Administrator Categorized as Uncategorized

Clothing Layers


// Take the heatindex and windchill away (or added) to current temperature.
var windtempdif = temp - windchill; 
var heattempdif = heatindex - temp; 
var tempdiff = temp - windtempdif + heattempdif;

// Calculate recomended clothing layers based upon temperature difference found above.
var tempfeel = Math.round(tempdiff * 100) / 100; 

if (rainhour>0)
{var RainClothing=("A waterproof & ");}
else
{var RainClothing=("");}

if (windaverage>25)
{var WindClothing=("A windproof & ");}
else
{var WindClothing=("");}

if (temp<4)
{var Clothing=("Five or more clothing layers recommended");}
else if (temp<9)
{var Clothing=("Four clothing layers recommended");}
else if (temp<14)
{var Clothing=("Three clothing layers recommended");}
else if (temp<18)
{var Clothing=("Two clothing layers recommended");}
else
{var Clothing=("One clothing layer recommended");}

ScrewTurn Wiki version 3.0.4.560. Some of the icons created by FamFamFam.