Function name |
Purpose |
checkIsAccidents() |
Checks whether there are any accidents or not and displays a message if there are not accidents |
onSubmit() |
Transfers and stores the inputted data into the local storage |
showTableData() |
Makes a table from the local storage data |
clearData() |
Clears the data from the local storage and the table |
navbarResponsive() |
Shows the mobile navbar |
navbarExit() |
Exits from the mobile navbar |
validateOffice(id) |
Checks if office input is empty |
validateTeam(id) |
Checks if team input is empty |
validateTruck(id) |
Checks if truck input is empty |
validateLocation(id) |
Checks if location input is empty |
validateAddress(id) |
Checks if address input is empty |
validateDate(id) |
Checks if date input is empty |