Difference between revisions of "Template:Freiburg/MenubarTest"
Line 447: | Line 447: | ||
var windowWidth = $(window).width(); | var windowWidth = $(window).width(); | ||
console.log('windowWidth:'+windowWidth); | console.log('windowWidth:'+windowWidth); | ||
+ | if (windowWidth > 850) { | ||
// make submenus appear // | // make submenus appear // | ||
$("#home").hover(function(){ | $("#home").hover(function(){ | ||
Line 547: | Line 548: | ||
$("#notebook-sub") .hide(); | $("#notebook-sub") .hide(); | ||
}); | }); | ||
+ | } // end of windowWidth query | ||
}; | }; | ||
</script> | </script> |
Revision as of 22:31, 15 September 2015