1$(document).ready(function() { 2 3 //Header-menu 4 $('#main-menu').on('show.bs.collapse', function () { 5 $(this).append($('#AdminNavBar').html()); 6 $('#main-menu ul').last().addClass('navbar navbar-nav'); 7 }); 8 $('#main-menu').on('hidden.bs.collapse', function () { 9 $('#main-menu ul:last-child').remove(); 10 }); 11 $(window).on('resize', function () { 12 if (window.innerWidth > 768) {$('#main-menu').collapse('hide');} 13 }); 14 15 // SmartMenus init 16 $(function() { 17 $('#main-menu').smartmenus({ 18 mainMenuSubOffsetX: -1, 19 mainMenuSubOffsetY: 4, 20 subMenusSubOffsetX: 6, 21 subMenusSubOffsetY: -6 22 }); 23 }); 24 25 // SmartMenus mobile menu toggle button 26 $(function() { 27 var $mainMenuState = $('#main-menu-state'); 28 if ($mainMenuState.length) { 29 // animate mobile menu 30 $mainMenuState.change(function(e) { 31 var $menu = $('#main-menu'); 32 if (this.checked) { 33 $menu.hide().slideDown(250, function() { $menu.css('display', ''); }); 34 } else { 35 $menu.show().slideUp(250, function() { $menu.css('display', ''); }); 36 } 37 }); 38 // hide mobile menu beforeunload 39 $(window).bind('beforeunload unload', function() { 40 if ($mainMenuState[0].checked) { 41 $mainMenuState[0].click(); 42 } 43 }); 44 } 45 }); 46 47 $('.carousel').slick({ 48 dots: false, 49 infinite: true, 50 autoplay: true, 51 autoplaySpeed: 2500, 52 speed: 2000, 53 fade: true, 54 cssEase: 'linear', 55 adaptiveHeight: true, 56 prevArrow:"<a href='#!' class='slick-arrow slick-arrow--prev'><i class='fas fa-angle-left'></i><span>Prev</span>", 57 nextArrow:"<a href='#!' class='slick-arrow slick-arrow--next'><span>Next</span><i class='fas fa-angle-right'></i></a>" 58 }); 59 60 // Header scroll change 61 $(window).scroll(function() { 62 var scroll = $(window).scrollTop(); 63 64 if (scroll >= 1) { 65 $(".header").addClass("header--short"); 66 } else { 67 $(".header").removeClass("header--short"); 68 } 69 }); 70 71 72 73 //AOS 74 AOS.init({ 75 duration: 1000, 76 once: true, 77 mirror: false 78 }); 79});
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.