ElEditors, Interface administrators, Administrators
70,868
edits
No edit summary |
No edit summary |
||
Line 430: | Line 430: | ||
$(this).after('<div class="dark-mode-notif" data-state="'+ $('body').hasClass('dark-mode') ? 'off' : 'on' +'"></div>'); | $(this).after('<div class="dark-mode-notif" data-state="'+ $('body').hasClass('dark-mode') ? 'off' : 'on' +'"></div>'); | ||
$('body').toggleClass('dark-mode'); | $('body').toggleClass('dark-mode'); | ||
var otherNotif = $('.dark-mode-notif:not( | var otherNotif = $('.dark-mode-notif:not(:last-of-type)'); | ||
otherNotif.remove(); | otherNotif.remove(); | ||
var notif = $('.dark-mode-notif: | var notif = $('.dark-mode-notif:last-of-type'); | ||
notif.show(); | notif.show(); | ||
setTimeout(function(){ | setTimeout(function(){ |