Line 1,156: | Line 1,156: | ||
document.getElementById("navigation").className = ".test"; | document.getElementById("navigation").className = ".test"; | ||
} else { | } else { | ||
− | document.getElementById("navigation").className = ""; | + | element.classList.remove(".test"); |
+ | document.getElementById("navigation").className = "ul li a"; | ||
} | } | ||
} | } |
Revision as of 13:24, 21 September 2018