Difference between revisions of "Team:NYMU-Taipei/Description"

Line 259: Line 259:
  
 
<script>
 
<script>
console.log(document.getElementsByClassName("dropdown-content"));
+
dc = document.getElementsByClassName("dropdown-content");
 +
console.log(dc);
 
setTimeout(unexpand(), 1000);
 
setTimeout(unexpand(), 1000);
 
function unexpand() {
 
function unexpand() {
  document.getElementsByClassName("dropdown-content").style.display = "none";
+
for (var i = dc.length - 1; i >= 0; i--) {
}
+
console.log(dc[i]);
 +
dc[i].style.display = "none";
 +
}  
 
</script>
 
</script>
  

Revision as of 02:38, 20 June 2018

PROJECT
Description