Global

Members

fahrenheit

Boolean variable, which define if fahrenheits as selected as showin temperature format.
Default Value:
  • false
Source:

selectedDay

Currently selected day, 0 (right now), 1 (tomorrow), 2 (day after tomorrow)...
Default Value:
  • 0
Source:

weather

Weather object
Source:

weekdays

Array of week days for forecast titles.
Source:

weekdaysShort

Array of week days in short notation for widget forecast day selection.
Source:

Methods

callJSONP(uri, scriptId)

Calls JSONP request
Parameters:
Name Type Description
uri string Url of api or script you want to request
scriptId string Id of the html script element which you want to create or reload
Source:

changeDay()

Change day of which is weather shown.
Source:

changeFormat()

Actions performed when switch format button clicked.
Source:

dayFocus()

Set focus color on day item if mouse over.
Source:

dayUnFocus()

Remove focus color from day item.
Source:

onLoad()

Function called when page loads.
Source:

setData(data)

Sets data to Weather object
Parameters:
Name Type Description
data Object Data which will be set to Weather object data memeber
Source:

switchFormatFocus()

Set focus color on switch button if mouse over.
Source:

switchFormatUnFocus()

Remove focus color from switch button.
Source:

updateTemperature()

Updates temperature aftwer format is switched.
Source:

weatherLoaded()

Function send to Weather and which is called after weather data is loaded.
Source: