We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 044d10e + 72e8a46 commit a2e831dCopy full SHA for a2e831d
js/change-font.js
@@ -1,7 +1,19 @@
1
"use strict"
2
3
-$(function() {
+$(function () {
4
+ $(document).ready(function () {
5
+ if (localStorage.getItem("CodeWithOpenDyslexic") === "1") {
6
+ $('body').toggleClass('open-dyslexic');
7
+ }
8
+ });
9
+
10
$('#change-font').click(function () {
11
12
+ localStorage.setItem("CodeWithOpenDyslexic", 0);
13
+ } else {
14
+ localStorage.setItem("CodeWithOpenDyslexic", 1);
15
16
17
$('body').toggleClass('open-dyslexic');
18
});
19
})
0 commit comments