HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

Now we have also an icon for our wheater app.


Finally, we want to display the temperature in Celsius degrees not


Kelvin.


Let’s replace the value of variablevar currentTemp with a function


calledvar currentTemp = toCelsius(wd.main.temp); that we will define globally. That


will return the temp data -273.15. I also added the “C” letter from Celsius.

Free download pdf