mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 16:44:24 +08:00
Minor fixes
This commit is contained in:
parent
946630f899
commit
180f011f18
6 changed files with 13 additions and 12 deletions
|
@ -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() {
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue