Skip to content

Commit

Permalink
Correct quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromvpg committed Jul 26, 2020
1 parent dea97bd commit 7a36a7b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ $( document ).ready( function() {
return;
}


$( ".mode-toggle" ).on( "click", function() {
$('body').toggleClass("dark-mode");
$('body').hasClass("dark-mode") ? Cookies.set('darkmode', 1) : Cookies.set('darkmode', 0);
$("body").toggleClass("dark-mode");
$("body").hasClass("dark-mode") ? Cookies.set('darkmode', 1) : Cookies.set('darkmode', 0);
var text = $(".mode-toggle").text();
$(".mode-toggle").text(text == "Light" ? "Dark" : "Light");
$(".mode-toggle").text(text === "Light" ? "Dark" : "Light");
return;
});

Expand Down

0 comments on commit 7a36a7b

Please sign in to comment.