Created
September 6, 2019 06:26
-
-
Save negoro-writer/961cc67bd1a1b71a9af40be53fa1fb46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2019 Ivan Grozdic(@IvanGrozdic) | |
Released under the MIT license | |
http://opensource.org/licenses/mit-license.php | |
*/ | |
(function($) { "use strict"; | |
$(".switch").on('click', function () { | |
if ($("body").hasClass("dark")) { | |
$("body").removeClass("dark"); | |
$(".sp-menu-box").removeClass("dark"); | |
$(".switch").removeClass("switched"); | |
} | |
else { | |
$("body").addClass("dark"); | |
$(".sp-menu-box").addClass("dark"); | |
$(".switch").addClass("switched"); | |
} | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment