Line 1,150: | Line 1,150: | ||
} | } | ||
+ | |||
+ | //loading content ids | ||
+ | |||
+ | if ($("#load_sponsors_here").length) { | ||
+ | load_these_items ( "https://2019.igem.org/Sponsors #all_sponsors", "load_sponsors_here"); | ||
+ | } | ||
+ | |||
+ | if ($("#load_news_here").length) { | ||
+ | load_these_items ( "https://2019.igem.org/Teams/News_Archive #load_these_news_items", "load_news_here"); | ||
+ | } | ||
}); | }); | ||
+ | |||
+ | |||
+ | |||
Line 1,170: | Line 1,183: | ||
+ | |||
+ | |||
+ | //general menu functionality | ||
function menu_functionality() { | function menu_functionality() { | ||
Line 1,187: | Line 1,203: | ||
+ | //highlight current page in the menu | ||
function highlight_current_page_menu() { | function highlight_current_page_menu() { | ||
Line 1,250: | Line 1,267: | ||
+ | //function for image sliders | ||
function image_slider_rotation() { | function image_slider_rotation() { | ||
Line 1,323: | Line 1,341: | ||
} | } | ||
+ | |||
+ | |||
+ | // load desired content function | ||
+ | function load_these_items ( source_page , destination_div ) { | ||
+ | |||
+ | $("#"+destination_div ).load( source_page , function() { | ||
+ | }); | ||
+ | } | ||
Revision as of 21:01, 25 February 2019