1(function ($) { 2 "use strict"; 3 4 //preloader activation 5 var win = $(window); 6 win.on('load', function () { 7 $('#preloader').delay(350).fadeOut('slow'); 8 $('body').delay(350).css({ 9 'overflow': 'visible' 10 }); 11 }) 12 13 14 15 // meanmenu 16 $('#mobile-menu').meanmenu({ 17 meanMenuContainer: '.mobile-menu', 18 meanScreenWidth: "991" 19 }); 20 21 //mobile side menu 22 $('.side-toggle').on('click', function () { 23 $('.side-info').addClass('info-open'); 24 $('.offcanvas-overlay').addClass('overlay-open'); 25 }) 26 27 $('.side-info-close,.offcanvas-overlay').on('click', function () { 28 $('.side-info').removeClass('info-open'); 29 $('.offcanvas-overlay').removeClass('overlay-open'); 30 }) 31 32 //sticky menu activation 33 win.on('scroll', function () { 34 var scroll = win.scrollTop(); 35 if (scroll < 60) { 36 $(".header-sticky").removeClass("sticky-menu"); 37 } else { 38 $(".header-sticky").addClass("sticky-menu"); 39 } 40 }); 41 42 // data - background 43 $("[data-background]").each(function () { 44 $(this).css("background-image", "url(" + $(this).attr("data-background") + ")") 45 }) 46 47 $("[data-bg-color]").each(function () { 48 $(this).css("background-color", $(this).attr("data-bg-color")) 49 }) 50 51 // menu-last class 52 $('.main-menu nav > ul > li').slice(-4).addClass('menu-last'); 53 54 55 56 57 58 59 //venobox activation 60 $('.venobox').venobox(); 61 62 63 // Scroll To Top Js 64 function smoothSctollTop() { 65 $('.smooth-scroll a').on('click', function (event) { 66 var target = $(this.getAttribute('href')); 67 if (target.length) { 68 event.preventDefault(); 69 $('html, body').stop().animate({ 70 scrollTop: target.offset().top - 0 71 }, 1500); 72 } 73 }); 74 } 75 smoothSctollTop(); 76 77 // Show or hide the sticky footer button 78 win.on('scroll', function(event) { 79 if($(this).scrollTop() > 600){ 80 $('#scroll').fadeIn(200) 81 } else{ 82 $('#scroll').fadeOut(200) 83 } 84 }); 85 86 //Animate the scroll to yop 87 $('#scroll').on('click', function(event) { 88 event.preventDefault(); 89 90 $('html, body').animate({ 91 scrollTop: 0, 92 }, 1500); 93 }); 94 95 96 // WOW active 97 var wow = new WOW( 98 { 99 mobile: false, // trigger animations on mobile devices (default is true) 100 } 101 ); 102 wow.init(); 103 104 // search bar 105 106 var $searchWrap = $('.search-wrap'); 107 var $navSearch = $('.nav-search'); 108 var $searchClose = $('#search-close'); 109 110 $('.search-trigger').on('click', function (e) { 111 e.preventDefault(); 112 $searchWrap.animate({ opacity: 'toggle' }, 500); 113 $navSearch.add($searchClose).addClass("open"); 114 }); 115 116 $('.search-close').on('click', function (e) { 117 e.preventDefault(); 118 $searchWrap.animate({ opacity: 'toggle' }, 500); 119 $navSearch.add($searchClose).removeClass("open"); 120 }); 121 122 function closeSearch() { 123 $searchWrap.fadeOut(200); 124 $navSearch.add($searchClose).removeClass("open"); 125 } 126 127 $(document.body).on('click', function (e) { 128 closeSearch(); 129 }); 130 131 $(".search-trigger, .main-search-input").on('click', function (e) { 132 e.stopPropagation(); 133 }); 134 135 136 137 /*------------------------------------ 138 Slider 139 --------------------------------------*/ 140 function mainSlider() { 141 142 // Data-Background Js 143 $("[data-background").each(function () { 144 $(this).css( 145 "background-image", 146 "url( " + $(this).attr("data-background") + " )" 147 ); 148 }); 149 150 if (jQuery(".slider-active").length > 0) { 151 let sliderActive1 = '.slider-active'; 152 let sliderInit1 = new Swiper(sliderActive1, { 153 // Optional parameters 154 slidesPerView: 1, 155 slidesPerColumn: 1, 156 paginationClickable: true, 157 loop: false, 158 effect: 'fade', 159 160 autoplay: { 161 delay: 5000, 162 }, 163 164 // If we need pagination 165 pagination: { 166 el: '.swiper-paginations', 167 // dynamicBullets: true, 168 clickable: true, 169 }, 170 171 // Navigation arrows 172 navigation: { 173 nextEl: '.swiper-button-next', 174 prevEl: '.swiper-button-prev', 175 }, 176 177 a11y: false 178 }); 179 180 if(jQuery(".slider-active").data('swipper_autoplay_stop') == '') { 181 sliderInit1.autoplay.stop(); 182 } 183 184 function animated_swiper(selector, init) { 185 let animated = function animated() { 186 $(selector + ' [data-animation]').each(function () { 187 let anim = $(this).data('animation'); 188 let delay = $(this).data('delay'); 189 let duration = $(this).data('duration'); 190 191 $(this).removeClass('anim' + anim) 192 .addClass(anim + ' animated') 193 .css({ 194 webkitAnimationDelay: delay, 195 animationDelay: delay, 196 webkitAnimationDuration: duration, 197 animationDuration: duration 198 }) 199 .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function () { 200 $(this).removeClass(anim + ' animated'); 201 }); 202 }); 203 }; 204 animated(); 205 // Make animated when slide change 206 init.on('slideChange', function () { 207 $(sliderActive1 + ' [data-animation]').removeClass('animated'); 208 }); 209 init.on('slideChange', animated); 210 } 211 212 animated_swiper(sliderActive1, sliderInit1); 213 } 214 } 215 216 217 // testimonial 2 activation 218 function testimonialActive() { 219 220 if (jQuery(".testimonial-active-2").length > 0) { 221 let testimonial2 = new Swiper('.testimonial-active-2', { 222 slidesPerView: 1, 223 spaceBetween: 30, 224 // direction: 'vertical', 225 loop: true, 226 227 // If we need pagination 228 pagination: { 229 el: '.swiper-pagination', 230 clickable: true, 231 }, 232 233 // Navigation arrows 234 navigation: { 235 nextEl: '.swiper-button-next', 236 prevEl: '.swiper-button-prev', 237 }, 238 239 // And if we need scrollbar 240 scrollbar: { 241 el: '.swiper-scrollbar', 242 dynamicBullets: true, 243 }, 244 breakpoints: { 245 640: { 246 slidesPerView: 1, 247 }, 248 768: { 249 slidesPerView: 1, 250 }, 251 1024: { 252 slidesPerView: 1, 253 }, 254 } 255 256 }); 257 } 258 259 if (jQuery(".atestimonial-active").length > 0) { 260 let atestimonial1 = new Swiper('.atestimonial-active', { 261 slidesPerView: 1, 262 spaceBetween: 30, 263 // direction: 'vertical', 264 loop: true, 265 266 // If we need pagination 267 pagination: { 268 el: '.swiper-pagination', 269 clickable: true, 270 }, 271 272 // Navigation arrows 273 navigation: { 274 nextEl: '.swiper-button-next', 275 prevEl: '.swiper-button-prev', 276 }, 277 278 // And if we need scrollbar 279 scrollbar: { 280 el: '.swiper-scrollbar', 281 }, 282 283 }); 284 } 285 286 287 288 $(".textimonail-active").owlCarousel({ 289 loop: true, 290 margin: 30, 291 items: 3, 292 navText: [ 293 '<i class="fal fa-long-arrow-left"></i>', 294 '<i class="fal fa-long-arrow-right"></i>' 295 ], 296 nav: false, 297 dots: true, 298 responsive: { 299 0: { 300 items: 1 301 }, 302 767: { 303 items: 2 304 }, 305 992: { 306 items: 3 307 } 308 } 309 }); 310 311 312 $(".testimonail2-active").owlCarousel({ 313 loop: true, 314 margin: 30, 315 items: 1, 316 navText: [ 317 '<i class="fal fa-angle-left"></i>', 318 '<i class="fal fa-angle-right"></i>' 319 ], 320 nav: true, 321 dots: true, 322 responsive: { 323 0: { 324 items: 1 325 }, 326 767: { 327 items: 1 328 }, 329 992: { 330 items: 1 331 } 332 } 333 }); 334 335 } 336 337 338 // Nice activation 339 $('select').niceSelect(); 340 341 // owlCarousel
342 function brandActive() { 343 344 $(".brand-active").owlCarousel({ 345 loop: true, 346 margin: 30, 347 items: 4, 348 navText: [ 349 '<i class="fal fa-long-arrow-left"></i>', 350 '<i class="fal fa-long-arrow-right"></i>' 351 ], 352 nav: true, 353 dots: false, 354 responsive: { 355 0: { 356 items: 1 357 }, 358 767: { 359 items: 2 360 }, 361 992: { 362 items: 3 363 }, 364 1199: { 365 items: 4 366 }, 367 1399: { 368 items: 4 369 } 370 } 371 }); 372 373 $(".abbrand-active").owlCarousel({ 374 loop: true, 375 margin: 0, 376 items: 6, 377 navText: [ 378 '<i class="fal fa-long-arrow-left"></i>', 379 '<i class="fal fa-long-arrow-right"></i>' 380 ], 381 nav: false, 382 dots: false, 383 responsive: { 384 0: { 385 items: 1 386 }, 387 767: { 388 items: 3 389 }, 390 992: { 391 items: 6 392 } 393 } 394 }); 395 } 396 397 // owlCarousel 398 function countryActive() { 399 400 $(".countries-active").owlCarousel({ 401 loop: true, 402 margin: 30, 403 items: 4, 404 navText: [ 405 '<i class="fal fa-long-arrow-left"></i>', 406 '<i class="fal fa-long-arrow-right"></i>' 407 ], 408 nav: true, 409 dots: false, 410 responsive: { 411 0: { 412 items: 1 413 }, 414 767: { 415 items: 2 416 }, 417 992: { 418 items: 3 419 }, 420 1199: { 421 items: 4 422 }, 423 1399: { 424 items: 4 425 } 426 } 427 }); 428 } 429 430 431 // owlCarousel 432 $(".blog-gallery").owlCarousel({ 433 loop: true, 434 margin: 0, 435 items: 1, 436 navText: [ 437 '<i class="fal fa-long-arrow-left"></i>', 438 '<i class="fal fa-long-arrow-right"></i>' 439 ], 440 nav: true, 441 dots: false, 442 responsive: { 443 0: { 444 items: 1 445 }, 446 767: { 447 items: 1 448 }, 449 992: { 450 items: 1 451 } 452 } 453 }); 454 455 456 457 458 /* magnificPopup img view */ 459 $(".popup-image").magnificPopup({ 460 type: "image", 461 gallery: { 462 enabled: true 463 } 464 }); 465 466 /* magnificPopup video view */ 467 $(".popup-video").magnificPopup({ 468 type: "iframe", 469 }); 470 // Counter Js 471 472 $('.counter').counterUp({ 473 delay: 100, 474 time: 1000 475 }); 476 477 /*========== Project Grid ==========*/ 478 $('.project-grid').imagesLoaded( function() { 479 var $grid = $('.project-grid').isotope({}); 480 /*========== Project Filter ==========*/ 481 $('.project-filter').on('click', 'li', function () { 482 var filterValue = $(this).attr('data-filter'); 483 $grid.isotope({ 484 filter: filterValue 485 }); 486 }); 487 488 //for menu active class 489 $('.project-filter li').on('click', function(event) { 490 $(this).siblings('.active').removeClass('active'); 491 $(this).addClass('active'); 492 event.preventDefault(); 493 }); 494 }); 495 496 497 $(window).on('elementor/frontend/init', function () { 498 elementorFrontend.hooks.addAction('frontend/element_ready/slider.default', mainSlider); 499 elementorFrontend.hooks.addAction('frontend/element_ready/testimonial_slider.default', testimonialActive); 500 elementorFrontend.hooks.addAction('frontend/element_ready/country_list.default', countryActive); 501 elementorFrontend.hooks.addAction('frontend/element_ready/brand.default', brandActive); 502 }); 503 504 505 506 })(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.