HANSONGTSENG (Talk | contribs) |
HANSONGTSENG (Talk | contribs) |
||
Line 259: | Line 259: | ||
<script> | <script> | ||
− | + | function highlight_current_page_menu() { | |
− | + | ||
− | + | var page_url="https://2018.igem.org/"; | |
− | + | page_url = page_url + wgPageName; | |
− | + | $("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"); | ||
+ | |||
+ | } | ||
+ | } | ||
+ | |||
</script> | </script> | ||
Revision as of 03:04, 20 June 2018
PROJECT
Description