Members
(inner) data
Saves the content of the data.json file.
- Source:
(inner, constant) dataPath
Holds the path to the data.json file.
- Source:
Methods
(inner) addClickEventToTab(tabId)
Adds the onclick event to a given tab. We can not execute inline script code, so we are not
able to set the onclick event directly in the html file.
Parameters:
Name | Type | Description |
---|---|---|
tabId |
string | The id of the tab to which we want to add an onclick event. |
- Source:
(inner) createInfoAlert(divId, text)
Creates an info alert inside a given div. The alert disappears after some time.
Parameters:
Name | Type | Description |
---|---|---|
divId |
string | The id of the div to which we append the alert. |
text |
string | The text which should be displayed inside of the alert. |
- Source:
(inner) loadSettings()
Loads the content of the settings tab.
- Source: