Template:Team:Hannover/main.tmpl
From 2014.igem.org
(Difference between revisions)
Line 28: | Line 28: | ||
} | } | ||
- | + | ||
function preload(arrayOfImages) { | function preload(arrayOfImages) { | ||
$(arrayOfImages).each(function(){ | $(arrayOfImages).each(function(){ | ||
Line 35: | Line 35: | ||
} | } | ||
- | // Preload images.. | + | function preload_menu() { |
- | preload([ | + | // Preload images.. |
+ | preload([ | ||
'https://static.igem.org/mediawiki/2014/8/88/Hannover_20140901_MENU-HUMAN-PRACTICE.gif', | 'https://static.igem.org/mediawiki/2014/8/88/Hannover_20140901_MENU-HUMAN-PRACTICE.gif', | ||
'https://static.igem.org/mediawiki/2014/3/3d/Hannover_20140901_MENU-TEAM.gif', | 'https://static.igem.org/mediawiki/2014/3/3d/Hannover_20140901_MENU-TEAM.gif', | ||
'https://static.igem.org/mediawiki/2014/7/7d/Hannover_20140901_MENU-PROJECT.gif', | 'https://static.igem.org/mediawiki/2014/7/7d/Hannover_20140901_MENU-PROJECT.gif', | ||
'https://static.igem.org/mediawiki/2014/c/cd/Hannover_20140901_MENU-HOME.gif' | 'https://static.igem.org/mediawiki/2014/c/cd/Hannover_20140901_MENU-HOME.gif' | ||
- | ]); | + | ]); |
+ | } | ||
+ | |||
+ | $( document ).ready( annotate_all ); | ||
+ | $( window ).resize( annotate_all ); | ||
+ | |||
+ | $( document ).ready( preload_menu ); | ||
+ | |||
</script> | </script> | ||
Revision as of 10:53, 1 October 2014