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) addClickEventToTable(tableId)
Adds the onclick event to a given table, so the table is sortable. 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 |
---|---|---|
tableId |
string | The id of the table we want to make sortable. |
- Source:
(inner) appendTable(tabId, urlFrom, urlTo, action, type)
Appends a new row to the status table. This row contains the following entries:
Parameters:
Name | Type | Description |
---|---|---|
tabId |
number | The id of the tab in which the event occured. |
urlFrom |
string | The url on which an event has happened. |
urlTo |
string | The url to which we got directed (if we got directed at all). |
action |
string | The description of the event. |
type |
string | The type of the event. |
- Source:
(inner) formatDate(date)
Formats a given date for printing (we are interested in the time only).
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | The date object we want to print. |
- Source:
(inner) sortTable(n, tableId)
Sorts a table by a specified column.
Source: https://www.w3schools.com/howto/howto_js_sort_table.asp
Parameters:
Name | Type | Description |
---|---|---|
n |
number | The index of the column to sort by. |
tableId |
string | The id of the table we want to sort. |
- Source: