Disable dark mode

This commit is contained in:
ostertun
2020-10-14 11:05:39 +02:00
parent 6f302d6527
commit 63de725ebd
3 changed files with 10 additions and 5 deletions

View File

@@ -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('<style id="transitions-remove">.btn, .header, #footer-bar, .menu-box, .menu-active{transition:all 0ms ease!important;}</style>'); 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){