Difference between revisions of "Team:NTHU Formosa"

Line 322: Line 322:
 
</head>
 
</head>
  
<body onhashchange="myFunction()">
+
<body onhashchange="onAnchorChange()">
  
 
   <!-- Fixed Sidebar -->
 
   <!-- Fixed Sidebar -->
Line 345: Line 345:
 
   <!-- Sidebar script, DO NOT MODIFY -->
 
   <!-- Sidebar script, DO NOT MODIFY -->
 
   <script>
 
   <script>
     function myFunction() {
+
     function onAnchorChange() {
       var element = document.getElementById("mySide_1");
+
       var side1 = document.getElementById("mySide_1");
       element.classList.add("instagram");
+
       var side2 = document.getElementById("mySide_1");
 +
      var side3 = document.getElementById("mySide_1");
 +
      var side4 = document.getElementById("mySide_1");
 +
      side1.classList.Clear();
 +
      side1.classList.add("instagram");
 +
      side1.classList.add("rela-block");
 +
      side1.classList.add("size-button");
 
       //  element.classList.remove("mystyle");
 
       //  element.classList.remove("mystyle");
 
     }
 
     }

Revision as of 04:33, 10 October 2018