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

Line 265: Line 265:
 
$("a[href$='"+ page_url +"']").children().removeClass("current_page");
 
$("a[href$='"+ page_url +"']").children().removeClass("current_page");
 
 
//if the page is in a submenu, open the submenu and make the appropiate changes
 
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");
 
 
}
 
 
}
 
}
  

Revision as of 03:10, 20 June 2018