1(function($){ 2 3 $(function(){ 4 5 $('textarea, input:text').bind('focus click', function(){ 6 if (this.value == this.defaultValue) { 7 this.value = ''; 8 } 9 }).bind('blur', function(){ 10 if (this.value == '') { 11 this.value = this.defaultValue; 12 } 13 }); 14 15 /*$('ul.list-gallery li a').click(function(e){ 16 e.preventDefault(); 17 });*/ 18 /* 19 $('div.gallery-box').slideShow({ 20 slideEl:'div.photo-gallery', 21 linkNext:'a.next', 22 linkPrev:'a.prev', 23 linkPause:'a.pause', 24 numElement:'ul.slist-gallery li', 25 duration:300 26 }); 27 */ 28 $('.hold-gallery').slick({ 29 arrows: false, 30 infinite: true, 31 pauseOnHover: true, 32 slidesToShow: 1, 33 slidesToScroll: 1, 34 }); 35 $('.gallery-box .prev').click(function(){ 36 event.preventDefault(); 37 $('.hold-gallery').slick('slickPrev'); 38 }); 39 $('.gallery-box .next').click(function(){ 40 event.preventDefault(); 41 $('.hold-gallery').slick('slickNext'); 42 }); 43 44 // ************ 45 // MOBILE MENU 46 // ************ 47 let menuToggle = document.getElementById('mobileMenu_toggle'); 48 let closeToggle = document.getElementById('menu__close'); 49 let mobileMenu = document.getElementById('mobileMenu'); 50 51 function openMenu() { 52 menuToggle.classList.toggle('header-mobile_menuBtn-close'); 53 document.body.style.top = `-${window.scrollY}px`; 54 document.body.style.position = 'fixed'; 55 document.body.style.height = '100%'; 56 document.body.style.width = '100%'; 57 document.body.style.overflow = 'hidden'; 58 $(mobileMenu).fadeIn(70); 59 }; 60 61 function hideMenu() { 62 menuToggle.classList.toggle('header-mobile_menuBtn-close'); 63 let top = document.body.style.top; 64 document.body.style.position = ''; 65 document.body.style.top = ''; 66 document.body.style.height = ''; 67 document.body.style.width = ''; 68 document.body.style.overflow = ''; 69 window.scrollTo(0, parseInt(top || '0') * -1); 70 $(mobileMenu).fadeOut(70); 71 }; 72 73 menuToggle.addEventListener('click', function () { 74 event.preventDefault(); 75 openMenu(); 76 }); 77 78 closeToggle.addEventListener('click', function () { 79 event.preventDefault(); 80 hideMenu(); 81 }); 82 // **************** 83 // end MOBILE MENU 84 // **************** 85 86 }); 87 88})(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.