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

Line 259: Line 259:
  
 
<script>
 
<script>
dc = document.getElementsByClassName("dropdown-content");
+
function highlight_current_page_menu() {
console.log(dc);
+
setTimeout(unexpand, 1000);
+
var page_url="https://2018.igem.org/";
function unexpand() {
+
page_url = page_url + wgPageName;
console.log('yes');
+
$("a[href$='"+ page_url +"']").children().removeClass("current_page");
for (var i = dc.length - 1; i >= 0; i--) {
+
console.log(dc[i]);
+
//if the page is in a submenu, open the submenu and make the appropiate changes
dc[i].style.display = "none";
+
if( $( ".current_page" ).hasClass( "submenu_item" )){
}  
+
}
+
$(".current_page").parent().parent().fadeToggle(400);
 +
$(".current_page").parent().parent().prev().addClass("current_page");
 +
$(".menu_item.current_page > .submenu_control_icon").toggleClass("open");
 +
 +
}
 +
}
 +
 
 
</script>
 
</script>
  

Revision as of 03:04, 20 June 2018

PROJECT
Description