Minor fixes

This commit is contained in:
Alexander Agnarson 2019-02-06 13:27:13 +01:00
parent 946630f899
commit 180f011f18
6 changed files with 13 additions and 12 deletions

View file

@ -21,12 +21,6 @@ jQuery(document).ready(function($) {
}, 300);
});
/* Toggle switch
/* ------------------------------------ */
$('#btn-mode').on('click', function() {
$('body').toggleClass('dark-mode');
});
/* Scroll to top
/* ------------------------------------ */
$('a#back-to-top').on('click', function() {

View file

@ -1,7 +1,11 @@
( function( $ ) {
$(document).ready(function($){
$('#btn-mode').on('click', function() {
$('body').toggleClass('dark-mode');
});
var mode = Cookies.get( 'theme_mode' );
if ( ! mode ) {