Difference between revisions of "Template:Freiburg/Menubar"
Line 443: | Line 443: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | $(document).ready(function(){ | + | |
+ | var windowWidth = $(window).width(); | ||
+ | |||
+ | $(document).ready(beecode); | ||
+ | $(window).on('resize', beecode); | ||
+ | |||
+ | function beecode() { | ||
// make submenus appear // | // make submenus appear // | ||
+ | if (windowWidth < 850) { | ||
$("#home").hover(function(){ | $("#home").hover(function(){ | ||
$("#team-sub") .hide(); | $("#team-sub") .hide(); | ||
Line 544: | Line 551: | ||
$("#notebook-sub") .hide(); | $("#notebook-sub") .hide(); | ||
}); | }); | ||
− | } | + | } // end jquery min-width |
+ | } | ||
</script> | </script> | ||
Revision as of 22:10, 15 September 2015