Members
admins :array
This is array of admin objects.
It represents every admin in the system
- Source:
(readonly) ROLES :number
Enum for roles of users
Properties:
Name | Type | Description |
---|---|---|
USER |
number | |
FIREFIGHTER |
number | |
DISPATCHER |
number | |
ADMIN |
number |
- Source:
Methods
chengeParentDivDisplay(parentDiv, id)
Hide/Unhide element
Parameters:
Name | Type | Description |
---|---|---|
parentDiv |
DOM | The element |
id |
string |
forEachCar(selectElement)
Loads cars in the selected elemend
Parameters:
Name | Type | Description |
---|---|---|
selectElement |
DOMElement |
forEachOption(optionSelect, func, firstOption)
Loads what function gives
in the selected elemend
Parameters:
Name | Type | Description |
---|---|---|
optionSelect |
DOMElement | |
func |
func | |
firstOption |
string | First option in the select element |
getInput(input, form)
Process the input from forms and send it to the backend
Parameters:
Name | Type | Default | Description |
---|---|---|---|
input |
number | ||
form |
number | null |
getInputLogin()
Function that gets the input
and send it to the backend.
- Source:
getInputRegister()
Function that gets the input
and send it to the backend.
- Source:
getInputSignal()
Function that gets the input
and send it to the backend.
- Source:
getNames()
Function to get the names
of the user, which is entered
getNames()
Function to get the names
of the user, which is entered
- Source:
getNumbers()
Function that get stast
for stast page
- Source:
initFirefighter()
Function that initalise firefighter systems
initMap(coordinatesX, coordinatesY, id)
Intialise a map into div element
Parameters:
Name | Type | Description |
---|---|---|
coordinatesX |
string | Longitude |
coordinatesY |
string | Latitude |
id |
string | Id of the element |
initMap(coordinatesXs, coordinatesYs, id)
Function that initialise map
based on openLayer API.
Parameters:
Name | Type | Description |
---|---|---|
coordinatesXs |
string | The longitude coordinate |
coordinatesYs |
string | The latitude coordinate |
id |
number | Id of the html div element |
- Source:
initMapForSignal()
initalise a map for the signal form
reloadSel()
reload select elements
reloadSigSel()
reload select elements
updateCarSel()
Place firefighter to chose from
updateCounter(counterId, target)
Function that create animation
for countiong word
Parameters:
Name | Type | Description |
---|---|---|
counterId |
number | The id of the html p element |
target |
number | The target number |
- Source: