Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frakass.jsx
Accessibilité
Commits
eacae503
Commit
eacae503
authored
Jan 21, 2022
by
QuentiumYT
Browse files
Changed words
parent
2e3672ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/index.js
View file @
eacae503
...
...
@@ -100,13 +100,13 @@ function toggleFont() {
if
(
body
.
classList
.
contains
(
"
font-dyslexic
"
))
{
body
.
classList
.
remove
(
"
font-dyslexic
"
);
body
.
classList
.
add
(
"
font-base
"
);
toggle
.
innerText
=
"
Activer la police
D
yslexie
"
;
toggle
.
innerText
=
"
Activer la police
d
yslexie
"
;
localStorage
.
setItem
(
"
font
"
,
"
base
"
);
}
else
{
body
.
classList
.
remove
(
"
font-base
"
);
body
.
classList
.
add
(
"
font-dyslexic
"
);
toggle
.
innerText
=
"
Activer la police
de Bas
e
"
;
toggle
.
innerText
=
"
Activer la police
normal
e
"
;
localStorage
.
setItem
(
"
font
"
,
"
dyslexic
"
);
}
}
...
...
@@ -116,9 +116,9 @@ toggle.addEventListener("click", toggleFont);
if
(
localStorage
.
getItem
(
"
font
"
)
===
"
dyslexic
"
)
{
body
.
classList
.
remove
(
"
font-base
"
);
body
.
classList
.
add
(
"
font-dyslexic
"
);
toggle
.
innerText
=
"
Activer la police
D
yslexie
"
;
toggle
.
innerText
=
"
Activer la police
d
yslexie
"
;
}
else
{
body
.
classList
.
remove
(
"
font-dyslexic
"
);
body
.
classList
.
add
(
"
font-base
"
);
toggle
.
innerText
=
"
Activer la police
Bas
e
"
;
toggle
.
innerText
=
"
Activer la police
normal
e
"
;
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment