Difference between revisions of "Template:UESTC-China/nav"

Line 282: Line 282:
 
           return flag;   
 
           return flag;   
 
       }
 
       }
var oDrop=document.getElementsByTagName(".dropdown");
+
          var oDrop=document.getElementsByClassName("dropdown");
 
if(!IsPC()){
 
if(!IsPC()){
oDrop.addEventListener("touchstart", function(e){
+
for(var i=0;i<oDrop.length;i++){
              e.preventDefault();
+
oDrop[i].addEventListener("touchstart", function(e){
          });
+
                          e.preventDefault();
}
+
              });
 +
}
 +
}
 
</script>
 
</script>
  
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 08:32, 20 October 2019

description