1(function ($) { 2 'use strict'; 3 $( document ).ready(function() { 4 $('.menu-mobile-nav-button').on('click', function (e) { 5 e.preventDefault(); 6 $('html').toggleClass('mobile-nav-active'); 7 }); 8 9 $('.bookory-overlay, .mobile-nav-close').on('click', function (e) { 10 e.preventDefault(); 11 $('html').toggleClass('mobile-nav-active'); 12 }); 13 14 var $menu_mobile = $('.handheld-navigation'); 15 16 if ($menu_mobile.length > 0) { 17 $menu_mobile.find('.menu-item-has-children > a, .page_item_has_children > a').each((index, element) => { 18 var $dropdown = $('<button class="dropdown-toggle"></button>'); 19 $dropdown.insertAfter(element); 20 $dropdown.on('click', function (e) { 21 e.preventDefault(); 22 $dropdown.toggleClass('toggled-on'); 23 $dropdown.siblings('ul').stop().slideToggle(400); 24 }); 25 }); 26 } 27 $('.mobile-nav-tabs li').on('click', function () { 28 if ($(this).hasClass('active')) return; 29 var menuName = $(this).data('menu'); 30 $(this).parent().find('.active').removeClass('active'); 31 $(this).addClass('active'); 32 $('.mobile-menu-tab').removeClass('active'); 33 $('.mobile-' + menuName + '-menu').addClass('active'); 34 }); 35 }); 36})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.