Feels Like: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
 
= Web implementation =
Ever thought that you want to display a 'Feels Like' temperature?
 
#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?
# Do you understand how to call JavaScript code from HTML?
 
== 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:
<pre><script src="temperature.js"></script>
5,838

edits

Navigation menu