5,838
edits
Line 81: | Line 81: | ||
= Web implementation = | = Web implementation = | ||
#Want to display a 'Feels Like' temperature (and you are using a version of Cumulus that does not give you it) with a figure that is useful at all possible temperatures)? | |||
# Would you like to display [[Wind chill]] when it is cold and windy, [[Heat index]] when it is hot and humid, and [[Apparent temperature]] at other times? | # Would you like to display [[Wind chill]] when it is cold and windy, [[Heat index]] when it is hot and humid, and [[Apparent temperature]] at other times? | ||
# Do you understand how to call JavaScript code from HTML? | # Do you understand how to call JavaScript code from HTML? | ||
Line 113: | Line 113: | ||
== HTML amendment to call new script == | == HTML amendment to call new script == | ||
Supposing you stored the new script below in a file called "temperature.js" in the same directory as the calling html, then the HTML needs a call to the new script (insert just before the end of the HTML body) like this: | Supposing you stored the new script below in a file called "temperature.js" in the same directory as the calling html, then the HTML needs a call to the new script (insert just before the end of the HTML body) like this: | ||
<pre><script src="temperature.js"></script> | <pre><script src="temperature.js"></script> |
edits