1(function($) { 2 3 "use strict"; 4 5 6 //Hide Loading Box (Preloader) 7 function handlePreloader() { 8 if ($('.loader-wrap').length) { 9 $('.loader-wrap').delay(300).fadeOut(300); 10 } 11 } 12 13 if ($('.preloader-close').length) { 14 $('.preloader-close').on('click', function () { 15 $('.loader-wrap').delay(300).fadeOut(300); 16 }) 17 } 18 19 20 //Update Header Style and Scroll to Top 21 function headerStyle() { 22 if($('.main-header').length){ 23 var windowpos = $(window).scrollTop(); 24 var siteHeader = $('.main-header'); 25 var scrollLink = $('.scroll-to-top'); 26 27 var HeaderHight = $('.main-header').height(); 28 if (windowpos >= HeaderHight) { 29 siteHeader.addClass('fixed-header'); 30 scrollLink.fadeIn(300); 31 } else { 32 siteHeader.removeClass('fixed-header'); 33 scrollLink.fadeOut(300); 34 } 35 36 } 37 } 38 39 headerStyle(); 40 41 42 //Submenu Dropdown Toggle 43 if($('.main-header li.dropdown ul').length){ 44 $('.main-header li.dropdown').append('<div class="dropdown-btn"><span class="fa fa-angle-down"></span></div>'); 45 46 //Dropdown Button 47 $('.main-header li.dropdown .dropdown-btn').on('click', function() { 48 $(this).prev('ul').slideToggle(500); 49 }); 50 51 //Disable dropdown parent link 52 $('.navigation li.dropdown > a').on('click', function(e) { 53 e.preventDefault(); 54 }); 55 56 //Disable dropdown parent link 57 $('.main-header .navigation li.dropdown > a,.hidden-bar .side-menu li.dropdown > a').on('click', function(e) { 58 e.preventDefault(); 59 }); 60 61 //$('.main-menu .navigation > li .mega-menu-bar > .column > ul').addClass('first-ul'); 62 //$('.main-header .main-menu .navigation > li > ul').addClass('last-ul'); 63 64 $('.xs-sidebar-group .close-button').on('click', function(e) { 65 $('.xs-sidebar-group.info-group').removeClass('isActive'); 66 }); 67 68 $('.about-widget').on('click', function(e) { 69 $('.about-sidebar').addClass('active'); 70 }); 71 72 $('.about-sidebar .close-button').on('click', function(e) { 73 $('.about-sidebar').removeClass('active'); 74 }); 75 76 $('.about-sidebar .gradient-layer').on('click', function(e) { 77 $('.about-sidebar').removeClass('active'); 78 }); 79 80 } 81 82 83 //Mobile Nav Hide Show 84 if($('.mobile-menu').length){ 85 86 //$('.mobile-menu .menu-box').mCustomScrollbar(); 87 88 var mobileMenuContent = $('.main-header .nav-outer .main-menu').html(); 89 $('.mobile-menu .menu-box .menu-outer').append(mobileMenuContent); 90 $('.sticky-header .main-menu').append(mobileMenuContent); 91 92 //Hide / Show Submenu 93 $('.mobile-menu .navigation > li.dropdown > .dropdown-btn').on('click', function(e) { 94 e.preventDefault(); 95 var target = $(this).parent('li').children('ul'); 96 97 if ($(target).is(':visible')){ 98 $(this).parent('li').removeClass('open'); 99 $(target).slideUp(500); 100 $(this).parents('.navigation').children('li.dropdown').removeClass('open'); 101 $(this).parents('.navigation').children('li.dropdown > ul').slideUp(500); 102 return false; 103 }else{ 104 $(this).parents('.navigation').children('li.dropdown').removeClass('open'); 105 $(this).parents('.navigation').children('li.dropdown').children('ul').slideUp(500); 106 $(this).parent('li').toggleClass('open'); 107 $(this).parent('li').children('ul').slideToggle(500); 108 } 109 }); 110 111 //3rd Level Nav 112 $('.mobile-menu .navigation > li.dropdown > ul > li.dropdown > .dropdown-btn').on('click', function(e) { 113 e.preventDefault(); 114 var targetInner = $(this).parent('li').children('ul'); 115 116 if ($(targetInner).is(':visible')){ 117 $(this).parent('li').removeClass('open'); 118 $(targetInner).slideUp(500); 119 $(this).parents('.navigation > ul').find('li.dropdown').removeClass('open'); 120 $(this).parents('.navigation > ul').find('li.dropdown > ul').slideUp(500); 121 return false; 122 }else{ 123 $(this).parents('.navigation > ul').find('li.dropdown').removeClass('open'); 124 $(this).parents('.navigation > ul').find('li.dropdown > ul').slideUp(500); 125 $(this).parent('li').toggleClass('open'); 126 $(this).parent('li').children('ul').slideToggle(500); 127 } 128 }); 129 130 //Menu Toggle Btn 131 $('.mobile-nav-toggler').on('click', function() { 132 $('body').addClass('mobile-menu-visible'); 133 134 }); 135 136 //Menu Toggle Btn 137 $('.mobile-menu .menu-backdrop,.mobile-menu .close-btn').on('click', function() { 138 $('body').removeClass('mobile-menu-visible'); 139 $('.mobile-menu .navigation > li').removeClass('open'); 140 $('.mobile-menu .navigation li ul').slideUp(0); 141 }); 142 143 $(document).keydown(function(e){
144 if(e.keyCode == 27) { 145 $('body').removeClass('mobile-menu-visible'); 146 $('.mobile-menu .navigation > li').removeClass('open'); 147 $('.mobile-menu .navigation li ul').slideUp(0); 148 } 149 }); 150 151 } 152 153 154 155 156 const serviceImgItem = document.querySelectorAll(".news-block_two-inner"); 157 function followImageCursor(event, serviceImgItem) { 158 const contentBox = serviceImgItem.getBoundingClientRect(); 159 const dx = event.clientX - contentBox.x; 160 const dy = event.clientY - contentBox.y; 161 serviceImgItem.children[1].style.transform = `translate(${dx}px, ${dy}px)`; 162 } 163 serviceImgItem.forEach((item, i) => { 164 item.addEventListener("mousemove", (event) => { 165 setInterval(followImageCursor(event, item), 1000); 166 }); 167 }); 168 169 170 171 //Add One Page nav 172 if($('.scroll-nav').length) { 173 $('.scroll-nav ul').onePageNav(); 174 } 175 176 177 //Custom Scroll Linsk / Sidebar 178 if($('.scroll-nav li a').length){ 179 $(".scroll-nav li a").on('click', function(e) { 180 e.preventDefault(); 181 $('body').removeClass('mobile-menu-visible'); 182 }); 183 } 184 185 186 187 //Tabs Box 188 if($('.tabs-box').length){ 189 $('.tabs-box .tab-buttons .tab-btn').on('click', function(e) { 190 e.preventDefault(); 191 var target = $($(this).attr('data-tab')); 192 193 if ($(target).is(':visible')){ 194 return false; 195 }else{ 196 target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn'); 197 $(this).addClass('active-btn'); 198 target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0); 199 target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab'); 200 $(target).fadeIn(300); 201 $(target).addClass('active-tab'); 202 } 203 }); 204 } 205 206 207 208 //Header Search 209 if($('.search-box-outer').length) { 210 $('.search-box-outer').on('click', function() { 211 $('body').addClass('search-active'); 212 }); 213 $('.close-search').on('click', function() { 214 $('body').removeClass('search-active'); 215 }); 216 } 217 218 219 220 //Custom Seclect Box 221 if($('.custom-select-box').length){ 222 $('.custom-select-box').selectmenu().selectmenu('menuWidget').addClass('overflow'); 223 } 224 225 226 227 // Add Current Class Auto 228 function dynamicCurrentMenuClass(selector) { 229 let FileName = window.location.href.split("/").reverse()[0]; 230 231 selector.find("li").each(function () { 232 let anchor = $(this).find("a"); 233 if ($(anchor).attr("href") == FileName) { 234 $(this).addClass("current"); 235 } 236 }); 237 // if any li has .current elmnt add class 238 selector.children("li").each(function () { 239 if ($(this).find(".current").length) { 240 $(this).addClass("current"); 241 } 242 }); 243 // if no file name return 244 if ("" == FileName) { 245 selector.find("li").eq(0).addClass("current"); 246 } 247 } 248 249 if ($('.main-header .main-menu .navigation').length) { 250 dynamicCurrentMenuClass($('.main-header .main-menu .navigation')); 251 } 252 253 254 255 //Parallax Scene for Icons 256 if($('.parallax-scene-1').length){ 257 var scene = $('.parallax-scene-1').get(0); 258 var parallaxInstance = new Parallax(scene); 259 } 260 261 262 263 264 //Progress Bar 265 if($('.progress-line').length){ 266 $('.progress-line').appear(function(){ 267 var el = $(this); 268 var percent = el.data('width'); 269 $(el).css('width',percent+'%'); 270 },{accY: 0}); 271 } 272 273 274 275 //Fact Counter + Text Count 276 if($('.count-box').length){ 277 $('.count-box').appear(function(){ 278 279 var $t = $(this), 280 n = $t.find(".count-text").attr("data-stop"), 281 r = parseInt($t.find(".count-text").attr("data-speed"), 10); 282 283 if (!$t.hasClass("counted")) { 284 $t.addClass("counted"); 285 $({ 286 countNum: $t.find(".count-text").text() 287 }).animate({ 288 countNum: n 289 }, { 290 duration: r, 291 easing: "linear", 292 step: function() { 293 $t.find(".count-text").text(Math.floor(this.countNum)); 294 }, 295 complete: function() { 296 $t.find(".count-text").text(this.countNum); 297 } 298 }); 299 } 300 301 },{accY: 0}); 302 } 303 304 305 306 307 if($('.paroller').length){ 308 $('.paroller').paroller({ 309 factor: 0.2, // multiplier for scrolling speed and offset, +- values for direction control 310 factorLg: 0.4, // multiplier for scrolling speed and offset if window width is less than 1200px, +- values for direction control 311 type: 'foreground', // background, foreground 312 direction: 'horizontal' // vertical, horizontal 313 }); 314 } 315 316 317 318 //Price Range Slider 319 if($('.price-range-slider').length){ 320 $( ".price-range-slider" ).slider({ 321 range: true, 322 min: 0, 323 max: 10000, 324 values: [ 1000, 8000 ], 325 slide: function( event, ui ) { 326 $( "input.price-amount" ).val( ui.values[ 0 ] + " - " + ui.values[ 1 ] ); 327 } 328 }); 329 330 $( "input.price-amount" ).val( $( ".price-range-slider" ).slider( "values", 0 ) + " - $" + $( ".price-range-slider" ).slider( "values", 1 ) ); 331 } 332 333 334 335 if ($(".animation_mode").length) { 336 $('.animation_mode').marquee({ 337 speed: 50, 338 gap: 20, 339 delayBeforeStart: 0, 340 direction: 'left', 341 duplicated: true, 342 pauseOnHover: true, 343 startVisible:true, 344 }); 345 } 346 347 if ($(".animation_mode_two").length) { 348 $('.animation_mode_two').marquee({ 349 speed: 50, 350 gap: 20, 351 delayBeforeStart: 0, 352 direction: 'right', 353 duplicated: true, 354 pauseOnHover: true, 355 startVisible:true, 356 }); 357 } 358 359 360 if ($(".animation_mode_three").length) { 361 $('.animation_mode_three').marquee({ 362 speed: 50, 363 gap: 0, 364 delayBeforeStart: 0, 365 direction: 'left', 366 duplicated: true, 367 pauseOnHover: true, 368 startVisible:true, 369 }); 370 } 371 372 373 // Animation Fade Left End 374 ///////////////////////////////////////////////////// 375 // CURSOR 376 var cursor = $(".cursor"), 377 follower = $(".cursor-follower"); 378 379 var posX = 0, 380 posY = 0; 381 382 var mouseX = 0, 383 mouseY = 0; 384 385 TweenMax.to({}, 0.016, { 386 repeat: -1, 387 onRepeat: function() { 388 posX += (mouseX - posX) / 9; 389 posY += (mouseY - posY) / 9; 390 391 TweenMax.set(follower, { 392 css: { 393 left: posX - 12, 394 top: posY - 12 395 } 396 }); 397 398 TweenMax.set(cursor, { 399 css: { 400 left: mouseX, 401 top: mouseY 402 } 403 }); 404 } 405 }); 406 407 $(document).on("mousemove", function(e) { 408 mouseX = e.clientX; 409 mouseY = e.clientY; 410 }); 411 //circle 412 $(".theme-btn, a").on("mouseenter", function() { 413 cursor.addClass("active"); 414 follower.addClass("active"); 415 }); 416 $(".theme-btn, a").on("mouseleave", function() { 417 cursor.removeClass("active"); 418 follower.removeClass("active"); 419 });
420 // CURSOR End 421 422 423 424 // Main Slider 425 var slider = new Swiper('.main-slider', { 426 slidesPerView: 1, 427 spaceBetween: 0, 428 loop: true, 429 autoplay: { 430 enabled: true, 431 delay: 6000 432 }, 433 // Navigation arrows 434 navigation: { 435 nextEl: '.main-slider-next', 436 prevEl: '.main-slider-prev', 437 clickable: true, 438 }, 439 //Pagination 440 pagination: { 441 el: ".swiper-pagination", 442 clickable: true, 443 }, 444 speed: 500, 445 breakpoints: { 446 '1600': { 447 slidesPerView: 1, 448 }, 449 '1200': { 450 slidesPerView: 1, 451 }, 452 '992': { 453 slidesPerView: 1, 454 }, 455 '768': { 456 slidesPerView: 1, 457 }, 458 '576': { 459 slidesPerView: 1, 460 }, 461 '0': { 462 slidesPerView: 1, 463 }, 464 }, 465 }); 466 467 468 469 // Single One Slider 470 var slider = new Swiper('.single-item_carousel', { 471 slidesPerView: 1, 472 spaceBetween: 0, 473 loop: true, 474 autoplay: { 475 enabled: true, 476 delay: 6000 477 }, 478 // Navigation arrows 479 navigation: { 480 nextEl: '.single-item_carousel-next', 481 prevEl: '.single-item_carousel-prev', 482 clickable: true, 483 }, 484 //Pagination 485 pagination: { 486 el: ".single-item_carousel-pagination", 487 clickable: true, 488 }, 489 speed: 500, 490 breakpoints: { 491 '1600': { 492 slidesPerView: 1, 493 }, 494 '1200': { 495 slidesPerView: 1, 496 }, 497 '992': { 498 slidesPerView: 1, 499 }, 500 '768': { 501 slidesPerView: 1, 502 }, 503 '576': { 504 slidesPerView: 1, 505 }, 506 '0': { 507 slidesPerView: 1, 508 }, 509 }, 510 }); 511 512 513 514 515 // Three Items Slider 516 var slider = new Swiper('.three-item_carousel', { 517 slidesPerView: 3, 518 spaceBetween: 30, 519 loop: true, 520 autoplay: { 521 enabled: true, 522 delay: 6000 523 }, 524 // Navigation arrows 525 navigation: { 526 nextEl: '.three-item_carousel-next', 527 prevEl: '.three-item_carousel-prev', 528 clickable: true, 529 }, 530 //Pagination 531 pagination: { 532 el: ".three-item_carousel-pagination", 533 clickable: true, 534 }, 535 speed: 500, 536 breakpoints: { 537 '1600': { 538 slidesPerView: 3, 539 }, 540 '1200': { 541 slidesPerView: 3, 542 }, 543 '992': { 544 slidesPerView: 3, 545 }, 546 '768': { 547 slidesPerView: 2, 548 }, 549 '600': { 550 slidesPerView: 1, 551 }, 552 '576': { 553 slidesPerView: 1, 554 }, 555 '0': { 556 slidesPerView: 1, 557 }, 558 }, 559 }); 560 561 562 563 564 // Team Carousel 565 var slider = new Swiper('.team-carousel', { 566 slidesPerView: 2, 567 spaceBetween: 30, 568 loop: true, 569 autoplay: { 570 enabled: true, 571 delay: 6000 572 }, 573 // Navigation arrows 574 navigation: { 575 nextEl: '.team_carousel-next', 576 prevEl: '.team_carousel-prev', 577 clickable: true, 578 }, 579 //Pagination 580 pagination: { 581 el: ".team_carousel-pagination", 582 clickable: true, 583 }, 584 speed: 500, 585 breakpoints: { 586 '1600': { 587 slidesPerView: 2, 588 }, 589 '1200': { 590 slidesPerView: 2, 591 }, 592 '992': { 593 slidesPerView: 2, 594 }, 595 '768': { 596 slidesPerView: 2, 597 }, 598 '600': { 599 slidesPerView: 1, 600 }, 601 '576': { 602 slidesPerView: 1, 603 }, 604 '0': { 605 slidesPerView: 1, 606 }, 607 }, 608 }); 609 610 611 612 // Clients Slider 613 var slider = new Swiper('.clients_slider', { 614 slidesPerView: 5, 615 spaceBetween: 30, 616 loop: true, 617 autoplay: { 618 enabled: true, 619 delay: 6000 620 }, 621 // Navigation arrows 622 navigation: { 623 nextEl: '.clients_slider-button-next', 624 prevEl: '.clients_slider-button-prev', 625 clickable: true, 626 }, 627 //Pagination 628 pagination: { 629 el: ".clients_slider-pagination", 630 clickable: true, 631 }, 632 speed: 500, 633 breakpoints: { 634 '1600': { 635 slidesPerView: 5, 636 }, 637 '1200': { 638 slidesPerView: 5, 639 }, 640 '992': { 641 slidesPerView: 4, 642 }, 643 '768': { 644 slidesPerView: 3, 645 }, 646 '576': { 647 slidesPerView: 2, 648 }, 649 '0': { 650 slidesPerView: 2, 651 }, 652 }, 653 }); 654 655 656 657 658 // Members Carousel 659 var slider = new Swiper('.members-carousel', { 660 slidesPerView: 6, 661 spaceBetween: 30, 662 loop: true, 663 autoplay: { 664 enabled: true, 665 delay: 6000 666 }, 667 // Navigation arrows 668 navigation: { 669 nextEl: '.members_carousel-next', 670 prevEl: '.members_carousel-prev', 671 clickable: true, 672 }, 673 //Pagination 674 pagination: { 675 el: ".members_carousel-pagination", 676 clickable: true, 677 }, 678 speed: 500, 679 breakpoints: { 680 '1600': { 681 slidesPerView: 6, 682 }, 683 '1200': { 684 slidesPerView: 5, 685 }, 686 '992': { 687 slidesPerView: 5, 688 }, 689 '768': { 690 slidesPerView: 5, 691 }, 692 '600': { 693 slidesPerView: 3, 694 }, 695 '576': { 696 slidesPerView: 2, 697 }, 698 '0': { 699 slidesPerView: 2, 700 }, 701 }, 702 }); 703 704 705 706 // Odometer 707 if ($(".odometer").length) { 708 $('.odometer').appear(); 709 $('.odometer').appear(function(){ 710 var odo = $(".odometer"); 711 odo.each(function() { 712 var countNumber = $(this).attr("data-count"); 713 $(this).html(countNumber); 714 }); 715 window.odometerOptions = { 716 format: 'd', 717 }; 718 }); 719 } 720 721 722 723 //Jquery Spinner / Quantity Spinner 724 if($('.qty-spinner').length){ 725 $("input.qty-spinner").TouchSpin({ 726 verticalbuttons: true 727 }); 728 } 729 730 731 732 // Accordion Box 733 if($('.accordion-box').length){ 734 $(".accordion-box").on('click', '.acc-btn', function() { 735 736 var outerBox = $(this).parents('.accordion-box'); 737 var target = $(this).parents('.accordion'); 738 739 if ($(this).next('.acc-content').is(':visible')){ 740 //return false; 741 $(this).removeClass('active'); 742 $(this).next('.acc-content').slideUp(300); 743 $(outerBox).children('.accordion').removeClass('active-block'); 744 }else{ 745 $(outerBox).find('.accordion .acc-btn').removeClass('active'); 746 $(this).addClass('active'); 747 $(outerBox).children('.accordion').removeClass('active-block'); 748 $(outerBox).find('.accordion').children('.acc-content').slideUp(300); 749 $(this).next('.acc-content').slideDown(300); 750 $(this).parent('.accordion').addClass('active-block'); 751 } 752 }); 753 } 754 755 756 // Accordion Box Two 757 if($('.accordion-box_two').length){ 758 $(".accordion-box_two").on('click', '.acc-btn', function() { 759 760 var outerBox = $(this).parents('.accordion-box_two'); 761 var target = $(this).parents('.accordion'); 762 763 if ($(this).next('.acc-content').is(':visible')){ 764 //return false; 765 $(this).removeClass('active'); 766 $(this).next('.acc-content').slideUp(300); 767 $(outerBox).children('.accordion').removeClass('active-block'); 768 }else{ 769 $(outerBox).find('.accordion .acc-btn').removeClass('active'); 770 $(this).addClass('active'); 771 $(outerBox).children('.accordion').removeClass('active-block'); 772 $(outerBox).find('.accordion').children('.acc-content').slideUp(300); 773 $(this).next('.acc-content').slideDown(300); 774 $(this).parent('.accordion').addClass('active-block'); 775 } 776 }); 777 } 778 779 780 781 // Accordion Box Three 782 if($('.accordion-box_three').length){ 783 $(".accordion-box_three").on('click', '.acc-btn', function() { 784 785 var outerBox = $(this).parents('.accordion-box_three'); 786 var target = $(this).parents('.accordion'); 787 788 if ($(this).next('.acc-content').is(':visible')){ 789 //return false; 790 $(this).removeClass('active'); 791 $(this).next('.acc-content').slideUp(300); 792 $(outerBox).children('.accordion').removeClass('active-block'); 793 }else{ 794 $(outerBox).find('.accordion .acc-btn').removeClass('active'); 795 $(this).addClass('active'); 796 $(outerBox).children('.accordion').removeClass('active-block'); 797 $(outerBox).find('.accordion').children('.acc-content').slideUp(300); 798 $(this).next('.acc-content').slideDown(300); 799 $(this).parent('.accordion').addClass('active-block'); 800 } 801 }); 802 } 803 804 805 806 ///////////////////////////////////////////////////// 807 // Title Animation 808 let splitTitleLines = gsap.utils.toArray(".title-anim"); 809
810 splitTitleLines.forEach(splitTextLine => { 811 const tl = gsap.timeline({ 812 scrollTrigger: { 813 trigger: splitTextLine, 814 start: 'top 90%', 815 end: 'bottom 60%', 816 scrub: false, 817 markers: false, 818 toggleActions: 'play none none none' 819 } 820 }); 821 822 const itemSplitted = new SplitText(splitTextLine, { type: "words, lines" }); 823 gsap.set(splitTextLine, { perspective: 400 }); 824 itemSplitted.split({ type: "lines" }) 825 tl.from(itemSplitted.lines, { duration: 1, delay: 0.3, opacity: 0, rotationX: -80, force3D: true, transformOrigin: "top center -50", stagger: 0.1 }); 826 }); 827 ///////////////////////////////////////////////////// 828 829 830 // LightBox Image 831 if($('.lightbox-image').length) { 832 $('.lightbox-image').magnificPopup({ 833 type: 'image', 834 gallery:{ 835 enabled:true 836 } 837 }); 838 } 839 840 841 842 // LightBox Video 843 if($('.lightbox-video').length) { 844 $('.lightbox-video').magnificPopup({ 845 // disableOn: 700, 846 type: 'iframe', 847 mainClass: 'mfp-fade', 848 removalDelay: 160, 849 preloader: false, 850 iframe:{ 851 patterns:{ 852 youtube:{ 853 index: 'youtube.com', 854 id: 'v=', 855 src: 'https://www.youtube.com/embed/%id%' 856 }, 857 }, 858 srcAction:'iframe_src', 859 }, 860 fixedContentPos: false 861 }); 862 } 863 864 865 866 //Contact Form Validation 867 if($('#contact-form').length){ 868 $('#contact-form').validate({ 869 rules: { 870 name: { 871 required: true 872 }, 873 email: { 874 required: true, 875 email: true 876 }, 877 phone: { 878 required: true 879 }, 880 message: { 881 required: true 882 } 883 } 884 }); 885 } 886 887 888 889 // Scroll to a Specific Div 890 if($('.scroll-to-target').length){ 891 $(".scroll-to-target").on('click', function() { 892 var target = $(this).attr('data-target'); 893 // animate 894 $('html, body').animate({ 895 scrollTop: $(target).offset().top 896 }, 1500); 897 898 }); 899 } 900 901 902 903 // Elements Animation 904 if($('.wow').length){ 905 var wow = new WOW( 906 { 907 boxClass: 'wow', // animated element css class (default is wow) 908 animateClass: 'animated', // animation css class (default is animated) 909 offset: 0, // distance to the element when triggering the animation (default is 0) 910 mobile: true, // trigger animations on mobile devices (default is true) 911 live: true // act on asynchronously loaded content (default is true) 912 } 913 ); 914 wow.init(); 915 } 916 917 918 919/* ========================================================================== 920 When document is Scrollig, do 921 ========================================================================== */ 922 923 $(window).on('scroll', function() { 924 headerStyle(); 925 }); 926 927/* ========================================================================== 928 When document is loading, do 929 ========================================================================== */ 930 931 $(window).on('load', function() { 932 handlePreloader(); 933 }); 934 935})(window.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.