Commit Graph

62 Commits

Author SHA1 Message Date
XhmikosR
0303fb6f5f footer.js: remove dead code.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-06-08 07:50:08 +03:00
DL6ER
4bf018b52c Add missing radix information in parseInt().
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-04 16:57:55 +02:00
Adam Warner
b75ebb1cab xo
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2020-06-02 16:40:12 +01:00
DL6ER
a4a678b584 Revert "Add per-browser boxed layout setting"
This reverts commit c2683fb87bc50369753b279e179e7b5d0d1e60a9.

Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:51 +01:00
DL6ER
2e0a261c47 No not use per-browser settings for the theme to avoid flashing pages on navigation.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:51 +01:00
DL6ER
e6ca9a213b xo adjustments
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:20:27 +01:00
DL6ER
16d313582d Further tweaks and optimization
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:19:24 +01:00
DL6ER
6ed0f056c6 Simplify code
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:19:00 +01:00
DL6ER
3c793581b7 Add per-browser temp unit selection
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:19:00 +01:00
DL6ER
6e52ee4307 Add per-browser theme selection
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:18:36 +01:00
DL6ER
7ff5764f95 Add per-browser boxed layout setting
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:17:28 +01:00
DL6ER
0e4d1e4e7f Implement per-browser checkbox and radio button styling using icheck-material.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-06-02 16:17:28 +01:00
Chris Coffin
4cca206810 Change "Permanently" toggle to "Indefinitely" (#1416)
* Changing "Permanently" toggle to "Indefinitely"

Signed-off-by: Chris Coffin <me@chriscoffin.org>

* Updating ID name in footer.js

Signed-off-by: Chris Coffin <me@chriscoffin.org>

Co-authored-by: Adam Warner <me@adamwarner.co.uk>
2020-06-01 21:47:33 +03:00
XhmikosR
cecb5aa88c Use $(fn)
This is the recommended way in jQuery 3.x.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-30 10:24:55 +03:00
XhmikosR
c7e3be4b07 footer.js: remove duplicate function.
There's already a function checking for cookies in the previous document.ready function.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-25 09:41:21 +03:00
XhmikosR
e70e108cce Use .hidden/.show for showing/hiding the reset buttons
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 13:04:13 +03:00
XhmikosR
0fa7de82b0 JS: Enforce camelcase.
It's a common convention to use camelcase for variable names.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-23 10:29:44 +03:00
DL6ER
f591280d58 Review comments
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:22 +03:00
DL6ER
0d834b9b1c Fix domain management JS error.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:21 +03:00
DL6ER
b0f54f5451 Add new Pi-hole diagnostics page.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-17 16:07:21 +03:00
DL6ER
b7d74ff772 Reinstall loading overlay on long-term graphs page (shown only if data has been requested).
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-12 22:50:29 +02:00
DL6ER
05d5f02a36 Add theme chooser to Setting -> Web interface.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-12 22:50:29 +02:00
DL6ER
064a0aae9c Use the iCheck library for input box styling.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2020-05-12 22:50:29 +02:00
XhmikosR
0e35b415ea JS: test for length explicitly. (#1240)
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-05-04 10:50:13 +03:00
XhmikosR
ae13014565 Adapt to the new rules.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-04-10 18:34:47 +00:00
XhmikosR
b74f0f3969 Fix the remaining lint issues
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:19 +02:00
XhmikosR
704c352277 Format JS code
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2020-01-02 19:42:18 +02:00
DL6ER
f084fa1991 Merge pull request #1091 from pi-hole/text
Use `text()` for the token
2019-12-17 15:49:05 +01:00
XhmikosR
f486935eb8 Use text() for the token
We don't need any HTML.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-17 15:57:50 +02:00
XhmikosR
9c1846885a Clean up JS
* 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>
2019-12-16 20:36:40 +02:00
XhmikosR
d65b5be5e2 A few CSS tweaks.
Add utilities classes and fix a few CSS issues.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 21:36:58 +02:00
XhmikosR
5275faacb1 Lowercase hex colors.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
2019-12-09 16:53:21 +02:00
Rob Gill
32cd50b718 Changes to formatting only (no functional changes)
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>
2018-08-11 08:29:03 +10:00
DL6ER
58f6406f48 Merge pull request #515 from Th3M3/improve_dropdown-menu
Improve dropdown-menu
2017-06-03 18:57:43 +02:00
DL6ER
2f218ba9eb Major overhaul of update checker - checks only every 30 minutes to reduce number of GitHub API requests 2017-06-03 16:40:25 +02:00
TheME
059600f10c remove function to open user menu
AdminLTE has already an implemented function to toggle the user menu.
So there is no need to use an own script in footer.js

Benefit: The dropdown-menu closes if you click on a blank Place
2017-05-31 21:18:44 +02:00
DL6ER
30b7b0d63a Show FTL version and update notification (if available) in footer 2017-03-26 13:42:29 +02:00
DL6ER
7729eea48d Start count down only if there is something to count down 2017-03-01 14:12:13 +01:00
DL6ER
c99f23c995 Codacy 2017-02-22 17:35:31 +01:00
DL6ER
e422e820d1 Show disable timer across all devices 2017-02-22 15:44:07 +01:00
Adam Warner
80ad3bac4d Merge pull request #406 from pi-hole/customDisable
Custom disable time
2017-02-19 02:02:31 +00:00
DL6ER
4f70973cbc EUPL license (#402)
* Move whole project to EUPL, copy MIT license to scripts/vendor/ and style/vendor/

* Added header to main PHP files

* Modified scripts in scripts/pi-hole/php

* Added header to scripts/pi-hole/js files

* Added license header to our custom style script

* Slight reformulation
2017-02-18 14:20:51 +01:00
Promofaux
a6439d8165 Address more codacy complaints 2017-02-18 01:04:10 +00:00
Promofaux
b38808b76a Address codacy complaints 2017-02-18 01:00:32 +00:00
Promofaux
23e7708ee4 add back in 10 second functionality 2017-02-18 00:49:59 +00:00
Promofaux
2039fec556 clear localstorage item on manual enable 2017-02-18 00:45:05 +00:00
Promofaux
d55a75366b Add a countdown timer next to the enable button. Works across page reloads 2017-02-18 00:38:31 +00:00
Promofaux
3037ef7710 timeout to be the same as whatever is set 2017-02-17 22:11:39 +00:00
Promofaux
e54ad166cb Codacy loves a complain 2017-02-17 21:15:10 +00:00
Promofaux
5076de084b javascript 2017-02-17 20:46:43 +00:00