Difference between revisions of "Template:Freiburg/MenubarTest"
Line 445: | Line 445: | ||
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | $(function() { | + | |
− | $( | + | |
+ | $(document).ready(beecode); | ||
+ | $(window).on('resize',beecode); | ||
+ | |||
+ | function beecode() { | ||
+ | var windowWidth ) $(window).width(); | ||
+ | if (windowWidth < 850) { | ||
// make submenus appear // | // make submenus appear // | ||
$("#home").hover(function(){ | $("#home").hover(function(){ | ||
Line 547: | Line 553: | ||
$("#notebook-sub") .hide(); | $("#notebook-sub") .hide(); | ||
}); | }); | ||
− | }); | + | } // closes if-statement |
+ | else { | ||
+ | $("#policy").hover(function(){}; | ||
+ | } // closes else-statement | ||
+ | } // closes beecode | ||
}) | }) | ||
</script> | </script> |
Revision as of 09:11, 16 September 2015