1;(function($){ 2 3 $('.post-list__text-block table').addClass('table table-bordered'); 4 5 var winWidth = $('body').width(); 6 7 $( document ).scroll(function(){ 8 var documentScroll = $( document ).scrollTop(); 9 if (winWidth > 992) { 10 if (documentScroll != 0) { 11 $("#header").addClass("scroll"); 12 } else { 13 $("#header").removeClass("scroll"); 14 } 15 } 16 17 }) 18 19 20 headerHeight(); 21 $(window).resize(function () { 22 headerHeight(); 23 }); 24 25 26 function headerHeight () { 27 if (winWidth <= 992) { 28 $("#header").addClass("scroll"); 29 $("body").addClass("mobile-version"); 30 } else { 31 $("#header").removeClass("mobile-version"); 32 } 33 } 34 35 36 37 38 $(document).on('click', '.burger-menu', function(e){ 39 e.preventDefault(); 40 // 41 $(this).toggleClass("opened"); 42 $('.nav-bg').toggleClass('active'); 43 $('.mobile-nav').toggleClass('active'); 44 45 // if ($(this).hasClass('opened')) { 46 // 47 // $(this).removeClass('opened') 48 // $('.nav-bg').removeClass('active'); 49 // $('.mobile-nav').removeClass('active'); 50 // 51 // } else { 52 // 53 // $(this).addClass("opened"); 54 // $('.nav-bg').addClass('active'); 55 // $('.mobile-nav').addClass('active'); 56 // 57 // } 58 }); 59 60 61 $(".footer-menu a").addClass("mz-contrast-color-hover"); 62 63 64 $(".top-menu").accessibleDropDownMenu(); 65 66 $(".subscription, .search-block").mouseover(function () { 67 $(this).addClass('focus'); 68 }).mouseout(function () { 69 $(this).removeClass('focus'); 70 }); 71 72 $(document).on('click', '.top-link-block', function(e){ 73 e.preventDefault(); 74 }); 75 76 $(document).on('click', '#text-trigger__minus', function(e){ 77 e.preventDefault(); 78 $("html").css({ 79 "font-size" : "-=1" 80 }); 81 }); 82 83 $(document).on('click', '#text-trigger__plus', function(e){ 84 e.preventDefault(); 85 $("html").css({ 86 "font-size" : "+=1" 87 }); 88 }); 89 90 // $(document).on('click', '.burger-menu', function(e){ 91 // e.preventDefault(); 92 // 93 // if ($(this).hasClass('opened')) { 94 // 95 // $(this).removeClass('opened') 96 // $('.nav-bg').removeClass('active'); 97 // $('.mobile-nav').removeClass('active'); 98 // 99 // } else { 100 // 101 // $(this).addClass('opened') 102 // $('.nav-bg').addClass('active'); 103 // $('.mobile-nav').addClass('active'); 104 // 105 // } 106 // }); 107 108 109 var partnersList = new Swiper('.partners-list', { 110 loop : true, 111 slidesPerView: 5, 112 spaceBetween: 30, 113 navigation: { 114 nextEl: '.swiper-button-next', 115 prevEl: '.swiper-button-prev', 116 }, 117 autoplay : { 118 delay: 3000 119 } 120 }); 121 122 123 var hotLine = new Swiper('.first-line-articles', { 124 loop : true, 125 slidesPerView: 1, 126 navigation: { 127 nextEl: '.hotline__button-next', 128 prevEl: '.hotline__button-prev', 129 }, 130 autoplay : { 131 delay: 3000 132 } 133 }); 134 135 // 136 var galleryTop = new Swiper('.post-gallery', { 137 loop:true, 138 loopedSlides: 5, //looped slides should be the same 139 navigation: { 140 nextEl: '.post-gallery__next', 141 prevEl: '.post-gallery__prev', 142 } 143 }); 144 145 var galleryThumbs = new Swiper('.post-gallery__thumbs', { 146 spaceBetween: 10, 147 slidesPerView: 5, 148 touchRatio: 0.2, 149 loop: true, 150 loopedSlides: 5, //looped slides should be the same 151 slideToClickedSlide: true, 152 }); 153 154 if($(".post-gallery__thumbs").length) { 155 galleryTop.controller.control = galleryThumbs; 156 galleryThumbs.controller.control = galleryTop; 157 } 158 159 160 161 // INIT SCROLLMAGIC - PARALAX SECTIONS 162 var controller = new ScrollMagic.Controller(); 163 164 165 $('.home-services .section-title, .services-list__item').each(function(){ 166 $(this).addClass('fade-in-out'); 167 }); 168 169 // CONTENT BIG IMG PARALLAX 170 $('.parallax-section .parallax-bg').each(function(){ 171 var tween = TweenMax.from($(this), 1, {y: '-30%', ease:Power0.easeNone}); 172 var contentBigImage = new ScrollMagic.Scene({ 173 triggerElement : this, 174 triggerHook : 1, 175 duration : '200%' 176 }) 177 .setTween(tween) 178 .addTo(controller); 179 }); 180 181 182 $('.fade-in-out').each(function(){ 183 var section = new ScrollMagic.Scene({ 184 triggerElement: this, 185 triggerHook : 0.85 186 }).setClassToggle(this, 'fade-in').addTo(controller); 187 }); 188 189})(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.