1(function(){ 2 3 var menu = $(".menu__list"); 4 var action = $(".menu__action"); 5 function setup(){ 6 menuShow(); 7 autosize($('textarea')); 8 homeSlider(); 9 aboutSlider(); 10 sectorSlider(); 11 yesnoCheck(); 12 } 13 14 15 function menuShow(){ 16 action.on("click",function(){ 17 menu.toggleClass("menu__list--opened"); 18 action.toggleClass("action--hide"); 19 }) 20 } 21 22 function homeSlider(){ 23 $(".header--bottom__slider").slick({ 24 arrows: false, 25 dots: true, 26 autoplay:true, 27 autoplaySpeed:3000, 28 slidesToShow:1, 29 slidesToScroll:1, 30 infinite: true, 31 speed: 500, 32 fade: true, 33 cssEase: 'linear' 34 }); 35 } 36 37 function aboutSlider(){ 38 $(".about__slider").slick({ 39 arrows: false, 40 dots: true, 41 autoplay:true, 42 autoplaySpeed:3000, 43 slidesToShow:1, 44 slidesToScroll:1, 45 infinite: true, 46 speed: 500, 47 fade: true, 48 cssEase: 'linear' 49 }); 50 } 51 52 function sectorSlider(){ 53 $(".sector__slider__list").slick({ 54 dots: false, 55 arrows: false, 56 autoplay:true, 57 autoplaySpeed:2000, 58 slidesToShow:1, 59 slidesToScroll:1, 60 infinite: true, 61 speed: 500, 62 fade: true, 63 cssEase: 'linear' 64 }); 65 } 66 67 // When the user scrolls the page, execute myFunction 68window.onscroll = function() {myFunction()}; 69 70// Get the header 71var header = document.getElementById("header"); 72 73// Get the offset position of the navbar 74var sticky = header.offsetTop; 75 76// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position 77function myFunction() { 78 if (window.pageYOffset > sticky) { 79 header.classList.add("sticky"); 80 } else { 81 header.classList.remove("sticky"); 82 } 83} 84 85 86 87 setup(); 88})();
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.