Difference between revisions of "Template:Freiburg/MenubarTest"
Line 582: | Line 582: | ||
<!-- BEGIN: jQuery --> | <!-- BEGIN: jQuery --> | ||
+ | |||
+ | |||
+ | <script> | ||
+ | // FOR SMALLNAV | ||
+ | $(function() { | ||
+ | var pull = $('#pull'); | ||
+ | menu = $('nav ul'); | ||
+ | menuHeight = menu.height(); | ||
+ | |||
+ | $(pull).on('click', function(e) { | ||
+ | e.preventDefault(); | ||
+ | menu.slideToggle(); | ||
+ | }); | ||
+ | |||
+ | $(window).resize(function(){ | ||
+ | var w = $(window).width(); | ||
+ | if(w > 320 && menu.is(':hidden')) { | ||
+ | menu.removeAttr('style'); | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
<script type="text/javascript"> | <script type="text/javascript"> |
Revision as of 10:15, 16 September 2015