Hello, I am trying to make website with inclusive design for my homework and I have three functions that are changing the text size, text style and site color theme, but I can not save the changes after I reload the page. This is my code for changing the text size:
localStorage.setItem('z', '1');
function size() {
if (localStorage.getItem('z')=="1"){
txt = document.getElementById("a").style.fontSize = "25px";
localStorage.removeItem("z");
localStorage.setItem('z', '2');
}
else if (localStorage.getItem('z')=="2") {