Difference between revisions of "Team:NTHU Formosa"

Line 347: Line 347:
 
     function onAnchorChange() {
 
     function onAnchorChange() {
 
       var side = [document.getElementById("mySide_1"), document.getElementById("mySide_2"), document.getElementById("mySide_3"), document.getElementById("mySide_4")];
 
       var side = [document.getElementById("mySide_1"), document.getElementById("mySide_2"), document.getElementById("mySide_3"), document.getElementById("mySide_4")];
       side[0].classList.remove(side1.classList.item(2));
+
       side[0].classList.remove(side[0].classList.item(2));
 
       side[0].classList.add("instagram");
 
       side[0].classList.add("instagram");
 
       //element.classList.remove("mystyle");
 
       //element.classList.remove("mystyle");

Revision as of 04:42, 10 October 2018