1(function($) { 2 $.fn.menumaker = function(options) { 3 var cssmenu = $(this), 4 settings = $.extend({ title: "", format: "dropdown", sticky: false }, options); 5 return this.each(function() { 6 cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>'); 7 $(this).find("#menu-button").on('click', function() { 8 $(this).toggleClass('menu-opened'); 9 var mainmenu = $(this).next('ul'); 10 11 if (mainmenu.hasClass('open')) { mainmenu.hide().removeClass('open'); } else { mainmenu.show().addClass('open'); if (settings.format === "dropdown") { mainmenu.find('ul').show(); } } 12 }); 13 multiTg = function() { 14 cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>'); 15 cssmenu.find('.submenu-button').on('click', function() { 16 $(this).toggleClass('submenu-opened'); 17 if ($(this).siblings('ul').hasClass('open')) { 18 $(this).siblings('ul').removeClass('open').hide(); 19 } else { 20 $(this).siblings('ul').addClass('open').show(); 21 } 22 }); 23 }; 24 if (settings.format === 'multitoggle') { multiTg(); } else { cssmenu.addClass('dropdown'); } 25 if (settings.sticky === true) { cssmenu.css('position', 'fixed'); } 26 resizeFix = function() { 27 if ($(window).width() > 768) { cssmenu.find('ul').show(); } 28 if ($(window).width() <= 768) { cssmenu.find('ul').hide().removeClass('open'); } 29 }; 30 resizeFix(); 31 return $(window).on('resize', resizeFix); 32 }); 33 }; 34})(jQuery); 35(function($) { $(document).ready(function() { $(".webmenu").menumaker({ title: "", format: "multitoggle" }); }); })(jQuery); 36(function($) { 37 "use strict"; 38 $('a.page-scroll').bind('click', function(event) { 39 var $anchor = $(this); 40 $('html, body').stop().animate({ scrollTop: ($($anchor.attr('href')).offset().top - 50) }, 1250, 'easeInOutExpo'); 41 event.preventDefault(); 42 }); 43 new WOW().init(); 44})(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.