Line 13: | Line 13: | ||
+ | if ( wgPageName == "Competition") { | ||
+ | load_menu (wgPageName); | ||
+ | } | ||
− | |||
− | |||
− | |||
− | + | //load menu | |
+ | function load_menu ( page_url_and_id ) { | ||
+ | |||
+ | // the full url is summed to the div id that holds that specific menu | ||
+ | page_url_and_id = "https://2017.igem.org/HQ:Menu" + page_url_and_id; | ||
+ | $( "#load_menu_here" ).load( page_url_and_id, function() { | ||
+ | |||
+ | //executes menu functionality ( accordion and toggles) once the menu is loaded | ||
+ | menu_functionality(); | ||
+ | }); | ||
+ | } | ||
Revision as of 16:16, 14 November 2016