* remove unused variables/functions
* use the dot notation
* use explicit coercion
* remove unneeded else
* use `textContent` instead of `innerHTML`
* cache a few `getElementById` calls
* fix a couple of undefined variables
* various assorted lint tweaks
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
Issues identified by codacy
*Multiple spaces removed
*piholeChanged defined before use
*curly brackets after if conditions
*lonely if converted to else if
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
* Add api_db.php?getGraphData
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Add new DB Graph page
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Adjust x-axis format
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Tweaks to long term stats (#543)
* add maxDate to Datepicker
* remove `GO` Button from datepicker input, instead hook into the apply event to update the graphs/charts when the date range is selected
* :codacy:
Signed-off-by: DL6ER <dl6er@dl6er.de>
* Fix comment + another :codacy:
* Remove duplicated code
* Add click callback to DB graph that sends the user to the DB query log page. This required some re-write of the DB queries page.
* Remove uneeded global variable
* Remove minDate and MaxDate as it is causing issues on fresh installs
* Oh :codacy: ...