1/*----------------------------------------------------------------------------------- 2 3 Theme Name: Fabrex - Multipurpose Business and Admin Template 4 Description: Multipurpose Business and Admin Template 5 Author: Chitrakoot Web 6 Version: 3.3 7 8 /* ---------------------------------- 9 10 JS Active Code Index 11 12 01. Preloader 13 02. Sticky Header 14 03. Scroll To Top 15 04. Parallax 16 05. Video 17 06. Dropdown career 18 07. Category Toggle 19 08. Resize function 20 09. FullScreenHeight function 21 10. ScreenFixedHeight function 22 11. FullScreenHeight and screenHeight with resize function 23 12. Chart 24 13. Sliders 25 14. Tabs 26 15. CountUp 27 16. Countdown 28 17. Datepicker 29 18. Isotop 30 31 ---------------------------------- */ 32 $( function() { 33 $( "#tabs" ).tabs(); 34 } ); 35 36(function($) { 37 38 "use strict"; 39 40 var $window = $(window); 41 42 /*------------------------------------ 43 01. Preloader 44 --------------------------------------*/ 45 46 $('#preloader').fadeOut('normall', function() { 47 $(this).remove(); 48 }); 49 50 51 52 53 /*------------------------------------ 54 02. Sticky Header 55 --------------------------------------*/ 56 57 $window.on('scroll', function() { 58 var scroll = $window.scrollTop(); 59 var logoinner = $(".navbar-brand img"); 60 var logodefault = $(".navbar-brand.logodefault img"); 61 var logowhite = $(".navbar-brand.logowhite img"); 62 var logowhitedark = $(".navbar-brand.logowhite-dark img"); 63 var logo2 = $(".navbar-brand.logo2 img"); 64 var logo4 = $(".navbar-brand.logo4 img"); 65 var logo5 = $(".navbar-brand.logo5 img"); 66 var logo6 = $(".navbar-brand.logo6 img"); 67 var logo7 = $(".navbar-brand.logo7 img"); 68 var logo8 = $(".navbar-brand.logo8 img"); 69 if (scroll <= 10) { 70 $("header").removeClass("scrollHeader").addClass("fixedHeader"); 71 $("#komp").removeClass("fixedH"); 72 logoinner.attr('src', '../img/kuryr-logo-2025.svg'); 73 logodefault.attr('src', '../img/kuryr-logo-2025.svg'); 74 logowhite.attr('src', 'img/logos/logo-white.png'); 75 logowhitedark.attr('src', 'img/logos/logo-white.png'); 76 logo2.attr('src', 'img/logos/logo-2-light.png'); 77 logo4.attr('src', 'img/logos/logo-4.png'); 78 logo5.attr('src', 'img/logos/logo-5-light.png'); 79 logo6.attr('src', 'img/logos/logo-6.png'); 80 logo7.attr('src', 'img/logos/logo-7.png'); 81 logo8.attr('src', 'img/logos/logo-8.png'); 82 } 83 else { 84 $("header").removeClass("fixedHeader").addClass("scrollHeader"); 85 $("#komp").addClass("fixedH"); 86 logoinner.attr('src', '../img/kuryr-logo-2025.svg'); 87 logodefault.attr('src', '../img/kuryr-logo-2025.svg'); 88 logowhite.attr('src', 'img/logos/logo-white.png'); 89 logowhitedark.attr('src', 'img/logos/logo-dark.png'); 90 logo2.attr('src', 'img/logos/logo-2-dark.png'); 91 logo4.attr('src', 'img/logos/logo-4.png'); 92 logo5.attr('src', 'img/logos/logo-5-dark.png'); 93 logo6.attr('src', 'img/logos/logo-6.png'); 94 logo7.attr('src', 'img/logos/logo-7.png'); 95 logo8.attr('src', 'img/logos/logo-8.png'); 96 } 97 }); 98 99 /*------------------------------------ 100 03. Scroll To Top 101 --------------------------------------*/ 102 103 $window.on('scroll', function() { 104 if ($(this).scrollTop() > 500) { 105 $(".scroll-to-top").fadeIn(400); 106 107 } else { 108 $(".scroll-to-top").fadeOut(400); 109 } 110 }); 111 112 $(".scroll-to-top").on('click', function(event) { 113 event.preventDefault(); 114 $("html, body").animate({ 115 scrollTop: 0 116 }, 600); 117 }); 118 119 120 /*------------------------------------ 121 04. Parallax 122 --------------------------------------*/ 123 124 // sections background image from data background 125 var pageSection = $(".parallax,.bg-img"); 126 pageSection.each(function(indx) { 127 128 if ($(this).attr("data-background")) { 129 $(this).css("background-image", "url(" + $(this).data("background") + ")"); 130 } 131 }); 132 133 /*------------------------------------ 134 05. Video 135 --------------------------------------*/ 136 137 $('.story-video').magnificPopup({ 138 delegate: '.video', 139 type: 'iframe' 140 }); 141 142 $('.popup-youtube').magnificPopup({ 143 disableOn: 700, 144 type: 'iframe', 145 mainClass: 'mfp-fade', 146 removalDelay: 160, 147 preloader: false,
148 fixedContentPos: false 149 }); 150 151 /*------------------------------------ 152 06. Dropdown career 153 --------------------------------------*/ 154 155 $('.select-departments').on('click', function () { 156 if ( $('.select-departments .dropdown').hasClass('current') ) { 157 $('.select-departments .dropdown').removeClass('current'); 158 } else { 159 $('.select-departments .dropdown').removeClass('current'); 160 $('.select-departments .dropdown').addClass('current'); 161 } 162 }); 163 164 /*------------------------------------ 165 07. Category Toggle 166 --------------------------------------*/ 167 168 var resizeTimer; 169 $window.on('resize', function (e) { 170 clearTimeout(resizeTimer); 171 resizeTimer = setTimeout(function () { 172 if ($window.width() > 991) { 173 $('.categories .shop-category').show(); 174 } else { 175 $('.categories .shop-category').hide(); 176 } 177 }, 250); 178 }); 179 180 //Category toggle on mobile devices 181 $('.collapse-sm').on('click', function () { 182 $('.categories .shop-category').slideToggle(); 183 if ( $(this).hasClass('current') ) { 184 $(this).removeClass('current'); 185 } else { 186 $(this).removeClass('current'); 187 $(this).addClass('current'); 188 } 189 }); 190 191 //Copy to clipboard 192 if ($(".copy-clipboard").length !== 0) { 193 new ClipboardJS('.copy-clipboard'); 194 $('.copy-clipboard').on('click', function() { 195 var $this = $(this); 196 var originalText = $this.text(); 197 $this.text('Copied'); 198 setTimeout(function() { 199 $this.text('Copy') 200 }, 2000); 201 }); 202 }; 203 204 $('.source-modal').magnificPopup({ 205 type: 'inline', 206 mainClass: 'mfp-fade', 207 removalDelay: 160 208 }); 209 210 211 /*------------------------------------ 212 08. Resize function 213 --------------------------------------*/ 214 215 $window.resize(function(event) { 216 setTimeout(function() { 217 SetResizeContent(); 218 }, 500); 219 event.preventDefault(); 220 }); 221 222 223 224 /*------------------------------------ 225 09. FullScreenHeight function 226 --------------------------------------*/ 227 228 function fullScreenHeight() { 229 var element = $(".full-screen"); 230 var $minheight = $window.height(); 231 element.css('min-height', $minheight); 232 } 233 234 /*------------------------------------ 235 10. ScreenFixedHeight function 236 --------------------------------------*/ 237 238 function ScreenFixedHeight() { 239 var $headerHeight = $("header").height(); 240 var element = $(".screen-height"); 241 var $screenheight = $window.height() - $headerHeight; 242 element.css('height', $screenheight); 243 } 244 245 /*------------------------------------ 246 11. FullScreenHeight and screenHeight with resize function 247 --------------------------------------*/ 248 249 function SetResizeContent() { 250 fullScreenHeight(); 251 ScreenFixedHeight(); 252 } 253 254 SetResizeContent(); 255 256 // === when document ready === // 257 $(document).ready(function() { 258 259 $("a").on('click', function (event) { 260 if (this.hash !== "") { 261 event.preventDefault(); 262 var hash = this.hash; 263 $('html, body').animate({ 264 scrollTop: $(hash).offset().top-100 265 }, 500, function () { 266 }); 267 } 268 }); 269 270 /*------------------------------------ 271 12. Chart 272 --------------------------------------*/ 273 274 // chart default 275 if ($("#chBar").length !== 0) { 276 var chBar = document.getElementById("chBar"); 277 var chartData = { 278 labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 279 datasets: [{ 280 data: [350, 365, 425, 475, 525, 575, 625, 675, 725, 775, 825, 875, ], 281 backgroundColor: ['rgba(28, 51, 65,0.8)', 'rgba(0, 135, 115,0.8)', 'rgba(107, 185, 131,0.8)', 'rgba(242, 201, 117,0.8)', 'rgba(237, 99, 83,0.8)', 'rgba(242, 190, 84,0.8)', 'rgba(240, 217, 207,0.8)', 'rgba(135, 174, 180,0.8)', 'rgba(21, 62, 92,0.8)', 'rgba(237, 85, 96,0.8)', 'rgba(201, 223, 241,0.8)', 'rgba(240, 217, 207,0.9)'], 282 }, ] 283 }; 284 if (chBar) { 285 new Chart(chBar, { 286 type: 'bar', 287 data: chartData, 288 options: { 289 scales: { 290 xAxes: [{ 291 barPercentage: 0.5, 292 categoryPercentage: 1 293 }], 294 yAxes: [{ 295 ticks: { 296 beginAtZero: false 297 } 298 }] 299 }, 300 legend: { 301 display: false 302 } 303 } 304 }); 305 } 306 } 307 308 // pie chart 309 if ($("#myPieChart").length !== 0) { 310 var ctx = document.getElementById('myPieChart').getContext('2d'); 311 var myPieChart = new Chart(ctx,{ 312 type: 'pie', 313 data: { 314 labels: ["Red", "Blue", "Yellow", "Green"], 315 datasets: [{ 316 data: [10, 15, 20, 30], 317 backgroundColor: ['rgba(255, 99, 132, 0.8)', 'rgba(54, 162, 235, 0.8)', 'rgba(255, 206, 86, 0.8)','rgba(75, 192, 192, 0.8)'], 318 }], 319 } 320 }); 321 } 322 323 /*------------------------------------ 324 13. Sliders 325 --------------------------------------*/ 326 327 // Testmonials carousel1 328 $('#testmonials-carousel').owlCarousel({ 329 loop: false, 330 responsiveClass: true, 331 nav: true, 332 dots: false, 333 margin: 0, 334 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"], 335 responsive: { 336 0: { 337 items: 1 338 }, 339 600: { 340 items: 1 341 }, 342 1000: { 343 items: 1 344 } 345 } 346 }) 347 348 // Testmonials carousel2 349 $('#testmonials-style2').owlCarousel({ 350 loop: true, 351 responsiveClass: true, 352 nav: true, 353 dots: false, 354 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"], 355 responsive: { 356 0: { 357 items: 1, 358 margin: 10, 359 }, 360 768: { 361 items: 2, 362 margin: 15, 363 }, 364 992: { 365 items: 2, 366 margin: 40, 367 } 368 } 369 }) 370 371 // Testmonials carousel3 372 $('.testimonial-style3').owlCarousel({ 373 loop: false, 374 responsiveClass: true, 375 nav: false, 376 dots: true, 377 margin: 0, 378 responsive: { 379 0: { 380 items: 1 381 }, 382 600: { 383 items: 1 384 }, 385 1000: { 386 items: 1 387 } 388 } 389 }) 390 391 // Testmonials carousel5 392 $('.testmonial-style5').owlCarousel({ 393 loop: true, 394 responsiveClass: true, 395 nav: true, 396 dots: false, 397 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"], 398 responsive: { 399 0: { 400 items: 1, 401 margin: 10, 402 }, 403 768: { 404 items: 2, 405 margin: 15, 406 }, 407 992: { 408 items: 2, 409 margin: 40, 410 } 411 } 412 }); 413 414 // Team owlCarousel 415 $('.team .owl-carousel').owlCarousel({ 416 loop:true, 417 margin: 30, 418 dots: false, 419 nav: false, 420 autoplay:true, 421 smartSpeed:500, 422 responsiveClass:true, 423 responsive:{ 424 0:{ 425 items:1, 426 margin: 0 427 }, 428 700:{ 429 items:2, 430 margin: 15 431 }, 432 1000:{ 433 items:4 434 } 435 } 436 }); 437 438 // Project single carousel 439 $('.project-single-two .owl-carousel').owlCarousel({ 440 loop: false, 441 nav: false, 442 responsiveClass: true, 443 dots: false, 444 margin: 15, 445 responsive: { 446 0: { 447 items: 1, 448 margin: 15, 449 }, 450 576: { 451 items: 2, 452 margin: 20, 453 }, 454 992: { 455 items: 3, 456 margin: 25 457 }, 458 1200: { 459 items: 4, 460 margin: 30 461 } 462 } 463 }) 464 465 // Services carousel 466 $('#services-carousel').owlCarousel({ 467 loop: true, 468 responsiveClass: true, 469 dots: false, 470 nav: true, 471 navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"], 472 responsive: { 473 0: { 474 items: 1, 475 margin: 0, 476 }, 477 768: { 478 items: 2, 479 margin: 0, 480 }, 481 992: { 482 items: 3, 483 margin: 0, 484 } 485 } 486 }) 487 488 // Blog grid carousel 489 $('#blog-grid').owlCarousel({ 490 loop: true, 491 dots: false, 492 nav: false, 493 autoplay: true, 494 autoplayTimeout: 2500, 495 responsiveClass: true, 496 autoplayHoverPause: false, 497 responsive: { 498 0: { 499 items: 1, 500 margin: 0, 501 }, 502 768: { 503 items: 2, 504 margin: 0, 505 }, 506 992: { 507 items: 3, 508 margin: 0, 509 } 510 } 511 }) 512 513 // Carousel Style2 514 $('.carousel-style2 .owl-carousel').owlCarousel({ 515 loop: true, 516 dots: false, 517 nav: true, 518 navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"], 519 autoplay: true, 520 autoplayTimeout: 5000, 521 responsiveClass: true, 522 autoplayHoverPause: false, 523 responsive: { 524 0: { 525 items: 1, 526 margin: 0, 527 }, 528 768: { 529 items: 2, 530 margin: 20, 531 }, 532 992: { 533 items: 2, 534 margin: 30, 535 }, 536 1200: { 537 items: 3, 538 margin: 30, 539 } 540 } 541 }) 542 543 // Carousel Style3 544 $('.carousel-style3 .owl-carousel').owlCarousel({ 545 loop: true, 546 dots: false, 547 nav: false, 548 autoplay: true,
549 smartSpeed: 800, 550 autoplayTimeout: 5000, 551 responsiveClass: true, 552 autoplayHoverPause: false, 553 responsive: { 554 0: { 555 items: 1, 556 margin: 0, 557 }, 558 768: { 559 items: 2, 560 margin: 20, 561 }, 562 992: { 563 items: 2, 564 margin: 30, 565 }, 566 1200: { 567 items: 3, 568 margin: 30, 569 } 570 } 571 }) 572 573 // Carousel Style4 574 $('.carousel-style4 .owl-carousel').owlCarousel({ 575 loop: true, 576 dots: false, 577 nav: true, 578 navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"], 579 autoplay: true, 580 autoplayTimeout: 5000, 581 responsiveClass: true, 582 autoplayHoverPause: false, 583 responsive: { 584 0: { 585 items: 1, 586 margin: 0, 587 }, 588 481: { 589 items: 2, 590 margin: 5, 591 }, 592 500: { 593 items: 2, 594 margin: 20, 595 }, 596 992: { 597 items: 3, 598 margin: 30, 599 }, 600 1200: { 601 items: 4, 602 margin: 30, 603 } 604 } 605 }) 606 607 // Service grids 608 $('#service-grids').owlCarousel({ 609 loop: true, 610 dots: false, 611 nav: false, 612 autoplay: true, 613 autoplayTimeout: 2500, 614 responsiveClass: true, 615 autoplayHoverPause: false, 616 responsive: { 617 0: { 618 items: 1, 619 margin: 0, 620 }, 621 768: { 622 items: 2, 623 margin: 20, 624 }, 625 992: { 626 items: 3, 627 margin: 30, 628 } 629 } 630 }) 631 632 // Home Slider 633 $(".home-business-slider").owlCarousel({ 634 items: 1, 635 loop: true, 636 autoplay: true, 637 smartSpeed: 800, 638 nav: true, 639 dots: false, 640 navText: ['<span class="fas fa-chevron-left"></span>', '<span class="fas fa-chevron-right"></span>'], 641 responsive: { 642 0: { 643 nav: false 644 }, 645 768: { 646 nav: true 647 } 648 } 649 }); 650 651 // Clients carousel 652 $('#clients').owlCarousel({ 653 loop: true, 654 nav: false, 655 dots: false, 656 autoplay: true, 657 autoplayTimeout: 3000, 658 responsiveClass: true, 659 autoplayHoverPause: false, 660 responsive: { 661 0: { 662 items: 2, 663 margin: 20 664 }, 665 768: { 666 items: 3, 667 margin: 40, 668 }, 669 992: { 670 items: 4, 671 margin: 60, 672 }, 673 1200: { 674 items: 5, 675 margin: 80, 676 } 677 } 678 }) 679 680 // Project single carousel 681 $('#project-single').owlCarousel({ 682 loop: false, 683 nav: false, 684 responsiveClass: true, 685 dots: false, 686 responsive: { 687 0: { 688 items: 1, 689 margin: 15, 690 }, 691 600: { 692 items: 2, 693 margin: 15, 694 }, 695 1000: { 696 items: 3, 697 margin: 15 698 } 699 } 700 }) 701 702 // Sliderfade 703 $('.slider-fade .owl-carousel').owlCarousel({ 704 items: 1, 705 loop:true, 706 margin: 0, 707 autoplay:true, 708 smartSpeed:500, 709 mouseDrag:false, 710 animateIn: 'fadeIn', 711 animateOut: 'fadeOut' 712 }); 713 714 // Project single carousel 715 $('.services-grids').owlCarousel({ 716 loop: false, 717 nav: false, 718 responsiveClass: true, 719 dots: false, 720 autoplay:true, 721 smartSpeed:500, 722 mouseDrag:false, 723 responsive: { 724 0: { 725 items: 1, 726 margin: 15, 727 mouseDrag:true 728 }, 729 768: { 730 items: 2, 731 margin: 20, 732 mouseDrag:true 733 }, 734 1200: { 735 items: 3, 736 margin: 25, 737 mouseDrag:false 738 } 739 } 740 }); 741 742 // Default owlCarousel 743 $('.owl-carousel').owlCarousel({ 744 items: 1, 745 loop:true, 746 dots: false, 747 margin: 0, 748 autoplay:true, 749 smartSpeed:500 750 }); 751 752 // Slider text animation 753 var owl = $('.slider-fade'); 754 owl.on('changed.owl.carousel', function(event) { 755 var item = event.item.index - 2; // Position of the current item 756 $('h3').removeClass('animated fadeInUp'); 757 $('h1').removeClass('animated fadeInUp'); 758 $('p').removeClass('animated fadeInUp'); 759 $('.butn').removeClass('animated fadeInUp'); 760 $('.owl-item').not('.cloned').eq(item).find('h3').addClass('animated fadeInUp'); 761 $('.owl-item').not('.cloned').eq(item).find('h1').addClass('animated fadeInUp'); 762 $('.owl-item').not('.cloned').eq(item).find('p').addClass('animated fadeInUp'); 763 $('.owl-item').not('.cloned').eq(item).find('.butn').addClass('animated fadeInUp'); 764 }); 765 766 // Revolution slider1 767 if ($("#rev_slider_1").length !== 0) { 768 var tpj = jQuery; 769 var revapi1; 770 tpj(document).ready(function() { 771 if (tpj("#rev_slider_1").revolution == undefined) { 772 revslider_showDoubleJqueryError("#rev_slider_1"); 773 } else { 774 revapi1 = tpj("#rev_slider_1").show().revolution({ 775 sliderType: "standard", 776 sliderLayout: "fullwidth", 777 dottedOverlay: "none", 778 delay: 9000, 779 spinner: "spinner4", 780 navigation: { 781 keyboardNavigation: "off", 782 keyboard_direction: "horizontal", 783 mouseScrollNavigation: "off", 784 onHoverStop: "off", 785 touch: { 786 touchenabled: "on", 787 swipe_threshold: 75, 788 swipe_min_touches: 1, 789 swipe_direction: "horizontal", 790 drag_block_vertical: false 791 }, 792 arrows: { 793 enable: false, 794 style: 'metis', 795 rtl: false, 796 hide_onleave: true, 797 hide_onmobile: true, 798 hide_under: 0, 799 hide_over: 9999, 800 hide_delay: 200, 801 hide_delay_mobile: 1200, 802 tmp: '<div class="tp-title-wrap"> <div class="tp-arr-imgholder"></div> </div>', 803 left: { 804 container: 'slider', 805 h_align: 'left', 806 v_align: 'center', 807 h_offset: 20, 808 v_offset: 0 809 }, 810 right: { 811 container: 'slider', 812 h_align: 'right', 813 v_align: 'center', 814 h_offset: 20, 815 v_offset: 0 816 } 817 }, 818 bullets: { 819 enable: false, 820 hide_onmobile: false, 821 hide_under: 300, 822 style: "hermes", 823 hide_onleave: false, 824 hide_delay: 200, 825 hide_delay_mobile: 1200, 826 direction: "horizontal", 827 h_align: "center", 828 v_align: "bottom", 829 h_offset: 0, 830 v_offset: 30, 831 space: 8 832 }, 833 }, 834 responsiveLevels: [1240, 1024, 767, 480], 835 gridwidth: [1170, 1170, 767, 480], 836 gridheight: [700, 700, 600, 600], 837 lazyType: "none", 838 shadow: 0, 839 shuffle: "off", 840 autoHeight: "off", 841 }); 842 } 843 }); 844 } 845 846 // Revolution slider2 847 if ($("#rev_slider_2").length !== 0) { 848 var tpj = jQuery; 849 var revapi2; 850 tpj(document).ready(function() { 851 if (tpj("#rev_slider_2").revolution == undefined) { 852 revslider_showDoubleJqueryError("#rev_slider_2"); 853 } else { 854 revapi2 = tpj("#rev_slider_2").show().revolution({ 855 sliderType: "standard", 856 sliderLayout: "fullwidth", 857 dottedOverlay: "none", 858 delay: 9000, 859 spinner: "spinner4", 860 navigation: { 861 keyboardNavigation: "off", 862 keyboard_direction: "horizontal", 863 mouseScrollNavigation: "off", 864 onHoverStop: "off", 865 touch: { 866 touchenabled: "on", 867 swipe_threshold: 75, 868 swipe_min_touches: 1, 869 swipe_direction: "horizontal", 870 drag_block_vertical: false 871 }, 872 arrows: { 873 enable: true, 874 style: 'metis', 875 tmp: '', 876 rtl: false, 877 hide_onleave: true, 878 hide_onmobile: true, 879 hide_under: 0, 880 hide_over: 9999, 881 hide_delay: 200, 882 hide_delay_mobile: 1200, 883 left: { 884 container: 'slider', 885 h_align: 'left', 886 v_align: 'center', 887 h_offset: 20, 888 v_offset: 0 889 }, 890 right: { 891 container: 'slider', 892 h_align: 'right', 893 v_align: 'center', 894 h_offset: 20, 895 v_offset: 0 896 } 897 }, 898 bullets: { 899 enable: false, 900 }, 901 }, 902 responsiveLevels: [1240, 1024, 767, 480], 903 gridwidth: [1170, 1170, 767, 480], 904 gridheight: [550, 500, 500, 500], 905 lazyType: "none", 906 shadow: 0, 907 shuffle: "off", 908 autoHeight: "off", 909 }); 910 } 911 }); 912 } 913 914 // Revolution video 915 if ($("#rev_slider_video").length !== 0) { 916 var tpj = jQuery; 917 var revapi3; 918 tpj(document).ready(function() { 919 if (tpj("#rev_slider_video").revolution == undefined) { 920 revslider_showDoubleJqueryError("#rev_slider_video"); 921 } else { 922 revapi3 = tpj("#rev_slider_video").show().revolution({ 923 sliderType: "standard", 924 sliderLayout: "fullwidth", 925 dottedOverlay: "none", 926 delay: 9000, 927 spinner: "spinner4", 928 navigation: { 929 keyboardNavigation: "off", 930 keyboard_direction: "horizontal", 931 mouseScrollNavigation: "off", 932 onHoverStop: "off", 933 touch: { 934 touchenabled: "on", 935 swipe_threshold: 75, 936 swipe_min_touches: 1, 937 swipe_direction: "horizontal", 938 drag_block_vertical: false 939 }, 940 arrows: { 941 enable: false 942 }, 943 bullets: { 944 enable: false 945 }, 946 }, 947 responsiveLevels: [1240, 1024, 767, 480], 948 gridwidth: [1170, 1170, 767, 480], 949 gridheight: [700, 700, 600, 600], 950 lazyType: "none", 951 shadow: 0, 952 shuffle: "off", 953 autoHeight: "off", 954 }); 955 } 956 }); 957 } 958 959 // Revolution slider3 960 if ($("#rev_slider_3").length !== 0) { 961 var tpj = jQuery; 962 var revapi4; 963 tpj(document).ready(function() { 964 if (tpj("#rev_slider_3").revolution == undefined) { 965 revslider_showDoubleJqueryError("#rev_slider_3"); 966 } else { 967 revapi4 = tpj("#rev_slider_3").show().revolution({ 968 sliderLayout:"fullscreen", 969 delay:12000, 970 responsiveLevels:[4096,1024,778,420], 971 gridwidth:[1170,1024,778,410], 972 gridheight:600, 973 hideThumbs:10, 974 fullScreenAutoWidth: "on", 975 fullScreenOffsetContainer: ".rev-offset", 976 977 navigation: { 978 onHoverStop: "off", 979 touch: { 980 touchenabled: "on", 981 swipe_threshold: 75, 982 swipe_min_touches: 1, 983 swipe_direction: "ho
983rizontal", 984 drag_block_vertical: false 985 }, 986 arrows:{ 987 enable:true, 988 style: "hermes", 989 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div> <div class="tp-arr-titleholder">{{title}}</div> </div>', 990 left: { 991 h_align: "left", 992 v_align: "center", 993 h_offset: 0, 994 v_offset: 0 995 }, 996 right: { 997 h_align: "right", 998 v_align: "center", 999 h_offset: 0, 1000 v_offset: 0 1001 } 1002 }, 1003 bullets:{ 1004 style:"", 1005 enable:false, 1006 hide_onmobile:false, 1007 hide_onleave:true, 1008 hide_delay:200, 1009 hide_delay_mobile:1200, 1010 hide_under:0, 1011 hide_over:9999, 1012 direction:"horizontal", 1013 space:12, 1014 h_align:"center", 1015 v_align:"bottom", 1016 h_offset:0, 1017 v_offset:30, 1018 tmp: '' 1019 }, 1020 }, 1021 1022 parallax:{ 1023 type:"scroll", 1024 levels:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], 1025 origo:"enterpoint", 1026 speed:400, 1027 bgparallax:"on", 1028 disable_onmobile:"on" 1029 }, 1030 1031 spinner:"spinner4" 1032 }); 1033 } 1034 }); 1035 } 1036 1037 // Revolution slider4 1038 if ($("#rev_slider_4").length !== 0) { 1039 var tpj = jQuery; 1040 var revapi5; 1041 tpj(document).ready(function() { 1042 if (tpj("#rev_slider_4").revolution == undefined) { 1043 revslider_showDoubleJqueryError("#rev_slider_4"); 1044 } else { 1045 revapi5 = tpj("#rev_slider_4").show().revolution({ 1046 sliderLayout:"fullscreen", 1047 delay:12000, 1048 responsiveLevels:[4096,1024,778,420], 1049 gridwidth:[1170,1024,778,410], 1050 gridheight:600, 1051 hideThumbs:10, 1052 fullScreenAutoWidth: "on", 1053 fullScreenOffsetContainer: "", 1054 1055 navigation: { 1056 onHoverStop: "off", 1057 1058 touch: { 1059 touchenabled: "on", 1060 swipe_threshold: 75, 1061 swipe_min_touches: 1, 1062 swipe_direction: "horizontal", 1063 drag_block_vertical: false 1064 }, 1065 arrows:{
1066 enable:false, 1067 style: "hermes", 1068 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div> <div class="tp-arr-titleholder">{{title}}</div> </div>', 1069 left: { 1070 h_align: "left", 1071 v_align: "center", 1072 h_offset: 0, 1073 v_offset: 0 1074 }, 1075 right: { 1076 h_align: "right", 1077 v_align: "center", 1078 h_offset: 0, 1079 v_offset: 0 1080 } 1081 }, 1082 bullets:{ 1083 style:"", 1084 enable:true, 1085 hide_onmobile:false, 1086 hide_onleave:true, 1087 hide_delay:200, 1088 hide_delay_mobile:1200, 1089 hide_under:0, 1090 hide_over:9999, 1091 direction:"vertical", 1092 space:18, 1093 h_align:"right", 1094 v_align:"center", 1095 h_offset:40, 1096 v_offset:0, 1097 tmp: '' 1098 }, 1099 }, 1100 1101 parallax:{ 1102 type:"scroll", 1103 levels:[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85], 1104 origo:"enterpoint", 1105 speed:400, 1106 bgparallax:"on", 1107 disable_onmobile:"on" 1108 }, 1109 1110 spinner:"spinner4" 1111 }); 1112 } 1113 }); 1114 } 1115 1116 // Revolution slider5 1117 if ($("#rev_slider_5").length !== 0) { 1118 var tpj = jQuery; 1119 var revapi5; 1120 tpj(document).ready(function() { 1121 if (tpj("#rev_slider_5").revolution == undefined) { 1122 revslider_showDoubleJqueryError("#rev_slider_5"); 1123 } else { 1124 revapi5 = tpj("#rev_slider_5").show().revolution({ 1125 sliderLayout:"fullscreen", 1126 delay:12000, 1127 responsiveLevels:[4096,1024,778,420], 1128 gridwidth:[1170,1024,778,410], 1129 gridheight:600, 1130 hideThumbs:10, 1131 fullScreenAutoWidth: "on", 1132 fullScreenOffsetContainer: "header", 1133 1134 navigation: { 1135 onHoverStop: "off", 1136 1137 touch: { 1138 touchenabled: "on", 1139 swipe_threshold: 75, 1140 swipe_min_touches: 1, 1141 swipe_direction: "horizontal", 1142 drag_block_vertical: false 1143 }, 1144 arrows:{
1145 enable:false, 1146 style: "hermes", 1147 tmp: '<div class="tp-arr-allwrapper"> <div class="tp-arr-imgholder"></div> <div class="tp-arr-titleholder">{{title}}</div> </div>', 1148 left: { 1149 h_align: "left", 1150 v_align: "center", 1151 h_offset: 0, 1152 v_offset: 0 1153 }, 1154 right: { 1155 h_align: "right", 1156 v_align: "center", 1157 h_offset: 0, 1158 v_offset: 0 1159 } 1160 }, 1161 bullets:{ 1162 style:"", 1163 enable:true, 1164 hide_onmobile:false, 1165 hide_onleave:true, 1166 hide_delay:200, 1167 hide_delay_mobile:1200, 1168 hide_under:0, 1169 hide_over:9999, 1170 direction:"vertical", 1171 space:18, 1172 h_align:"right", 1173 v_align:"center", 1174 h_offset:40, 1175 v_offset:0, 1176 tmp: '' 1177 }, 1178 }, 1179 spinner:"spinner4" 1180 }); 1181 } 1182 }); 1183 } 1184 1185 /*------------------------------------ 1186 14. Tabs 1187 --------------------------------------*/ 1188 1189 //Horizontal Tab 1190 if ($(".horizontaltab").length !== 0) { 1191 $('.horizontaltab').easyResponsiveTabs({ 1192 type: 'default', //Types: default, vertical, accordion 1193 width: 'auto', //auto or any width like 600px 1194 fit: true, // 100% fit in a container 1195 tabidentify: 'hor_1', // The tab groups identifier 1196 activate: function(event) { // Callback function if tab is switched 1197 var $tab = $(this); 1198 var $info = $('#nested-tabInfo'); 1199 var $name = $('span', $info); 1200 $name.text($tab.text()); 1201 $info.show(); 1202 } 1203 }); 1204 } 1205 1206 // Child Tab 1207 if ($(".childverticaltab").length !== 0) { 1208 $('.childverticaltab').easyResponsiveTabs({ 1209 type: 'vertical', 1210 width: 'auto', 1211 fit: true, 1212 tabidentify: 'ver_1', // The tab groups identifier 1213 activetab_bg: '#fff', // background color for active tabs in this group 1214 inactive_bg: '#F5F5F5', // background color for inactive tabs in this group 1215 active_border_color: '#c1c1c1', // border color for active tabs heads in this group 1216 active_content_border_color: '#c1c1c1' // border color for active tabs contect in this group so that it matches the tab head border 1217 }); 1218 } 1219 1220 //Vertical Tab 1221 if ($(".verticaltab").length !== 0) { 1222 $('.verticaltab').easyResponsiveTabs({ 1223 type: 'vertical', //Types: default, vertical, accordion 1224 width: 'auto', //auto or any width like 600px 1225 fit: true, // 100% fit in a container 1226 closed: 'accordion', // Start closed if in accordion view 1227 tabidentify: 'hor_1', // The tab groups identifier 1228 activate: function(event) { // Callback function if tab is switched 1229 var $tab = $(this); 1230 var $info = $('#nested-tabInfo2');
1231 var $name = $('span', $info); 1232 $name.text($tab.text()); 1233 $info.show(); 1234 } 1235 }); 1236 } 1237 1238 /*------------------------------------ 1239 15. CountUp 1240 --------------------------------------*/ 1241 1242 $('.countup').counterUp({ 1243 delay: 25, 1244 time: 2000 1245 }); 1246 1247 /*------------------------------------ 1248 16. Countdown 1249 --------------------------------------*/ 1250 1251 if ($(".countdown").length !== 0) { 1252 var tpj = jQuery; 1253 var countdown; 1254 tpj(document).ready(function() { 1255 if (tpj(".countdown").countdown == undefined) { 1256 revslider_showDoubleJqueryError(".countdown"); 1257 } else { 1258 countdown = tpj(".countdown").show().countdown({ 1259 date: "01 Jan 2021 00:01:00", //set your date and time. EX: 15 May 2014 12:00:00 1260 format: "on" 1261 }); 1262 } 1263 }); 1264 } 1265 1266 /*------------------------------------ 1267 17. Datepicker 1268 --------------------------------------*/ 1269 1270 if ($(".datepicker").length !== 0) { 1271 $('.datepicker').datepicker({ 1272 format: 'mm/dd/yyyy', 1273 startDate: '-3d' 1274 }) 1275 } 1276 1277 }); 1278 1279 // === when window loading === // 1280 $window.on("load", function() { 1281 1282 /*------------------------------------ 1283 18. Isotop 1284 --------------------------------------*/ 1285 1286 // magnificPopup with slider 1287 $('.single-img').magnificPopup({ 1288 delegate: '.popimg', 1289 type: 'image' 1290 }); 1291 1292 // isotope with magnificPopup 1293 $('.gallery').magnificPopup({ 1294 delegate: '.popimg', 1295 type: 'image', 1296 gallery: { 1297 enabled: true 1298 } 1299 }); 1300 1301 var $gallery = $('.gallery').isotope({ 1302 // options 1303 }); 1304 1305 // filter items on button click 1306 $('.filtering').on('click', 'span', function() { 1307 var filterValue = $(this).attr('data-filter'); 1308 $gallery.isotope({ 1309 filter: filterValue 1310 }); 1311 }); 1312 1313 $('.filtering').on('click', 'span', function() { 1314 $(this).addClass('active').siblings().removeClass('active'); 1315 }); 1316 1317 // stellar 1318 $window.stellar(); 1319 1320 }); 1321 1322 /*------------------------------------ 1323 08. wow animation - on scroll 1324 --------------------------------------*/ 1325 1326 var wow = new WOW({ 1327 boxClass: 'wow', // default 1328 animateClass: 'animated', // default 1329 offset: 200, // default 1330 mobile: false, // default 1331 live: true // default 1332 }); 1333 wow.init(); 1334 1335 1336})(jQuery); 1337 1338 // scrollIt 1339 $.scrollIt({ 1340 upKey: 38, // key code to navigate to the next section 1341 downKey: 40, // key code to navigate to the previous section 1342 easing: 'swing', // the easing function for animation 1343 scrollTime: 600, // how long (in ms) the animation takes 1344 activeClass: 'active', // class given to the active nav element 1345 onPageChange: null, // function(pageIndex) that is called when page is changed 1346 topOffset: 300 // offste (in px) for fixed top navigation 1347 }); 1348
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.