diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index d8c98720..171b9164 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -100,6 +100,15 @@ $(document).ready(function () { if (seconds > 0) { setTimeout(countDown, 100); } + if (!testCookies() && $("#cookieInfo").length) { + $("#cookieInfo").show(); + } + + var checkbox_theme = $("#checkbox_theme").text(); + $('input').icheck({ + checkboxClass: 'icheckbox_' + checkbox_theme, + radioClass: 'iradio_' + checkbox_theme + }); }); // Handle Enable/Disable diff --git a/scripts/pi-hole/php/header.php b/scripts/pi-hole/php/header.php index 0b5fead5..bf72c7d4 100644 --- a/scripts/pi-hole/php/header.php +++ b/scripts/pi-hole/php/header.php @@ -13,6 +13,12 @@ //$theme = "default-light"; $theme = "default-dark"; + //$checkbox_theme_name = "flat"; + //$checkbox_theme_variant = "blue"; + $checkbox_theme_name = "polaris"; + $checkbox_theme_variant = "polaris"; + //$checkbox_theme_name = "futurico"; + //$checkbox_theme_variant = "futurico"; check_cors(); @@ -206,8 +212,6 @@ - - @@ -227,6 +231,10 @@ + + + +