From 63de725ebd21f77112a84d3aa95ac808b589b0da Mon Sep 17 00:00:00 2001 From: ostertun Date: Wed, 14 Oct 2020 11:05:39 +0200 Subject: [PATCH] Disable dark mode --- client/scripts/custom.js.php | 7 +++++-- server/page/menus.php | 6 ++++-- server/page/wrapper.php | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/client/scripts/custom.js.php b/client/scripts/custom.js.php index cff0517..c7744af 100644 --- a/client/scripts/custom.js.php +++ b/client/scripts/custom.js.php @@ -202,7 +202,7 @@ $(document).ready(function(){ //Disabling & Enabling Dark Transitions in Dark Mode to Speed up Performance. function allowTransitions(){$('body').find('#transitions-remove').remove();} function removeTransitions(){$('body').append(''); setTimeout(function(){allowTransitions();},10);} - +/* DARK MODE DISABLED //Dark Mode var darkSwitch = $('[data-toggle-theme-switch], [data-toggle-theme], [data-toggle-theme-switch] input, [data-toggle-theme] input'); $('[data-toggle-theme], [data-toggle-theme-switch]').on('click',function(){ @@ -244,7 +244,10 @@ $(document).ready(function(){ if($('body').hasClass('detect-theme')){setColorScheme();} $('.detect-dark-mode').on('click',function(){ $('body').addClass('detect-theme'); setColorScheme(); return false;}); $('.disable-auto-dark-mode').on('click',function(){ $('body').removeClass('detect-theme'); $(this).remove(); return false;}); - +*/ +eraseCookie('sticky_light_mode'); +eraseCookie('sticky_dark_mode'); +// END //Footer Menu Active Elements if($('.footer-bar-2, .footer-bar-4, .footer-bar-5').length){ if(!$('.footer-bar-2 strong, .footer-bar-4 strong, .footer-bar-5 strong').length){ diff --git a/server/page/menus.php b/server/page/menus.php index 0e0fff3..32f60d6 100644 --- a/server/page/menus.php +++ b/server/page/menus.php @@ -1,5 +1,5 @@