1(function ($) { 2"use strict"; 3 4// One Page Nav 5var top_offset = $('.header-area').height() - 100; 6$('.main-menu nav ul').onePageNav({ 7 currentClass: 'active', 8 scrollOffset: top_offset, 9}); 10 11// sticky 12$(window).on('scroll', function () { 13 var scroll = $(window).scrollTop(); 14 if (scroll < 135) { 15 $("#header-sticky").removeClass("sticky-menu"); 16 } else { 17 $("#header-sticky").addClass("sticky-menu"); 18 } 19}); 20 21// RESPONSIVE MENU 22$('.responsive').on('click', function (e) { 23 $('#mobile-menu').slideToggle(); 24 // $('body').toggleClass('mobile-menu-show'); 25}); 26 27// menu toggle 28$(".main-menu li a").on('click', function () { 29 if ($(window).width() < 1200) { 30 $("#mobile-menu").slideUp(); 31 } 32}); 33 34 35// smoth scroll 36$(function () { 37 $('a.smoth-scroll').on('click', function (event) { 38 var $anchor = $(this); 39 $('html, body').stop().animate({ 40 scrollTop: $($anchor.attr('href')).offset().top - 100 41 }, 1000); 42 event.preventDefault(); 43 }); 44}); 45 46// mainSlider 47function mainSlider() { 48 var BasicSlider = $('.slider-active'); 49 BasicSlider.on('init', function (e, slick) { 50 var $firstAnimatingElements = $('.single-slider:first-child').find('[data-animation]'); 51 doAnimations($firstAnimatingElements); 52 }); 53 BasicSlider.on('beforeChange', function (e, slick, currentSlide, nextSlide) { 54 var $animatingElements = $('.single-slider[data-slick-index="' + nextSlide + '"]').find('[data-animation]'); 55 doAnimations($animatingElements); 56 }); 57 BasicSlider.slick({ 58 autoplay: true, 59 autoplaySpeed: 10000, 60 dots: false, 61 fade: true, 62 arrows: true, 63 prevArrow: '<button type="button" class="slick-prev"><i class="icon dripicons-chevron-left"></i></button>', 64 nextArrow: '<button type="button" class="slick-next"><i class="icon dripicons-chevron-right"></i></button>', 65 responsive: [ 66 { breakpoint: 1200, settings: { dots: false, arrows: false } } 67 ] 68 }); 69 70 function doAnimations(elements) { 71 var animationEndEvents = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 72 elements.each(function () { 73 var $this = $(this); 74 var $animationDelay = $this.data('delay'); 75 var $animationType = 'animated ' + $this.data('animation'); 76 $this.css({ 77 'animation-delay': $animationDelay, 78 '-webkit-animation-delay': $animationDelay 79 }); 80 $this.addClass($animationType).one(animationEndEvents, function () { 81 $this.removeClass($animationType); 82 }); 83 }); 84 } 85} 86mainSlider(); 87 88 89// services-active 90$('.services-active').slick({ 91 dots: true, 92 infinite: true, 93 arrows: false, 94 speed: 1000, 95 slidesToShow: 3, 96 slidesToScroll: 1, 97 responsive: [ 98 { 99 breakpoint: 1200, 100 settings: { 101 slidesToShow: 3, 102 slidesToScroll: 1, 103 infinite: true, 104 dots: true 105 } 106 }, 107 { 108 breakpoint: 992, 109 settings: { 110 slidesToShow: 2, 111 slidesToScroll: 1 112 } 113 }, 114 { 115 breakpoint: 767, 116 settings: { 117 slidesToShow: 1, 118 slidesToScroll: 1 119 } 120 } 121 ] 122}); 123 124 125// brand-active 126$('.brand-active').slick({ 127 dots: false, 128 infinite: true, 129 arrows: false, 130 speed: 1000, 131 slidesToShow: 6, 132 slidesToScroll: 2, 133 responsive: [ 134 { 135 breakpoint: 1500, 136 settings: { 137 slidesToShow: 6, 138 slidesToScroll: 3, 139 infinite: true, 140 } 141 }, 142 { 143 breakpoint: 1200, 144 settings: { 145 slidesToShow: 5, 146 slidesToScroll: 3, 147 infinite: true, 148 } 149 }, 150 { 151 breakpoint: 992, 152 settings: { 153 slidesToShow: 3, 154 slidesToScroll: 1 155 } 156 }, 157 { 158 breakpoint: 767, 159 settings: { 160 slidesToShow: 2, 161 slidesToScroll: 1 162 } 163 }, 164 { 165 breakpoint: 480, 166 settings: { 167 slidesToShow: 1, 168 slidesToScroll: 1 169 } 170 } 171 ] 172}); 173 174// testimonial-active 175$('.testimonial-active').slick({ 176 dots: false, 177 infinite: true, 178 arrows: true, 179 prevArrow: '<button type="button" class="slick-prev"><i class="icon dripicons-arrow-thin-left"></i></button>', 180 nextArrow: '<button type="button" class="slick-next"><i class="icon dripicons-arrow-thin-right"></i></button>', 181 speed: 1000, 182 slidesToShow: 1, 183 slidesToScroll: 1, 184 responsive: [ 185 { 186 breakpoint: 1024, 187 settings: { 188 slidesToShow: 1, 189 slidesToScroll: 1, 190 infinite: true, 191 } 192 }, 193 { 194 breakpoint: 600, 195 settings: { 196 slidesToShow: 1, 197 slidesToScroll: 1 198 } 199 }, 200 { 201 breakpoint: 480, 202 settings: { 203 slidesToShow: 1, 204 slidesToScroll: 1 205 } 206 } 207 ] 208}); 209 210// blog 211$('.blog-active').slick({ 212 dots: false, 213 infinite: true, 214 arrows: true, 215 speed: 1500, 216 slidesToShow: 1, 217 slidesToScroll: 1, 218 fade: true, 219 prevArrow: '<button type="button" class="slick-prev"><i class="fas fa-arrow-left"></i></button>', 220 nextArrow: '<button type="button" class="slick-next"><i class="fas fa-arrow-right"></i></button>', 221}); 222 223// counterUp 224 225$('.count').counterUp({ 226 delay: 100, 227 time: 1000 228}); 229 230/* magnificPopup img view */ 231$('.popup-image').magnificPopup({ 232 type: 'image', 233 gallery: { 234 enabled: true 235 } 236}); 237 238/* magnificPopup video view */ 239$('.popup-video').magnificPopup({ 240 type: 'iframe' 241}); 242 243// paroller 244if ($('.paroller').length) { 245 $('.paroller').paroller(); 246} 247 248//* Parallaxmouse js 249function parallaxMouse() { 250 if ($('#parallax').length) { 251 var scene = document.getElementById('parallax'); 252 var parallax = new Parallax(scene); 253 }; 254}; 255parallaxMouse(); 256 257// service active 258$('.s-single-services').on('mouseenter', function () { 259 $(this).addClass('active').parent().siblings().find('.s-single-services').removeClass('active'); 260}) 261 262// // scrollToTop 263// $.scrollUp({ 264// scrollName: 'scrollUp', 265// topDistance: '300', 266// topSpeed: 300, 267// animation: 'fade', 268// animationInSpeed: 200, 269// animationOutSpeed: 200, 270// scrollText: '<i class="fas fa-arrow-up"></i>',
271// activeOverlay: false, 272// }); 273 274 275// isotop 276 $('.grid').imagesLoaded(function () { 277 // init Isotope 278 var $grid = $('.grid').isotope({ 279 itemSelector: '.grid-item', 280 percentPosition: true, 281 masonry: { 282 // use outer width of grid-sizer for columnWidth 283 columnWidth: 1 284 } 285 }); 286 287 // filter items on button click 288 $('.button-group').on('click', 'button', function () { 289 var filterValue = $(this).attr('data-filter'); 290 $grid.isotope({ filter: filterValue }); 291 }); 292 293}); 294// isotop 295$(".element").each(function() { 296 var a = $(this); 297 a.typed({ 298 strings: a.attr("data-elements").split(","), 299 typeSpeed: 100, 300 backDelay: 3e3 301 }) 302}), 303//for menu active class 304$('.button-group > button').on('click', function(event) { 305 $(this).siblings('.active').removeClass('active'); 306 $(this).addClass('active'); 307 event.preventDefault(); 308}); 309 310// WOW active 311new WOW().init(); 312 313})(jQuery); 314 315
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.