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(1000).fadeOut(500);� 10 }� 11 }� 12� 13 if ($(".preloader-close").length) {� 14 $(".preloader-close").on("click", function() {� 15 $('.loader-wrap').delay(200).fadeOut(500);� 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� 52 //Dropdown Menu / Fullscreen Nav� 53 $('.fullscreen-menu .navigation li.dropdown > a').on('click', function() {� 54 $(this).next('ul').slideToggle(500);� 55 });� 56� 57 //Disable dropdown parent link� 58 $('.navigation li.dropdown > a').on('click', function(e) {� 59 e.preventDefault();� 60 });� 61� 62 //Disable dropdown parent link� 63 $('.main-header .navigation li.dropdown > a,.hidden-bar .side-menu li.dropdown > a').on('click', function(e) {� 64 e.preventDefault();� 65 });� 66� 67 }� 68� 69� 70 //Mobile Nav Hide Show� 71 if ($('.mobile-menu').length) {� 72� 73 $('.mobile-menu .menu-box').mCustomScrollbar();� 74� 75 var mobileMenuContent = $('.main-header .nav-outer .main-menu').html();� 76 $('.mobile-menu .menu-box .menu-outer').append(mobileMenuContent);� 77 $('.sticky-header .main-menu').append(mobileMenuContent);� 78� 79 //Dropdown Button� 80 $('.mobile-menu li.dropdown').on('click', function() {� 81 $(this).toggleClass('open');� 82 $(this).find('ul').slideToggle(500);� 83 // alert()� 84 });� 85 //Menu Toggle Btn� 86 $('.mobile-nav-toggler').on('click', function() {� 87 $('body').addClass('mobile-menu-visible');� 88 });� 89� 90 //Menu Toggle Btn� 91 $('.mobile-menu .menu-backdrop,.mobile-menu .close-btn').on('click', function() {� 92 $('body').removeClass('mobile-menu-visible');� 93 });� 94� 95 }� 96� 97� 98� 99 // Masonary� 100 function enableMasonry() {� 101 if ($('.masonry-items-container').length) {� 102� 103 var winDow = $(window);� 104 // Needed variables� 105 var $container = $('.masonry-items-container');� 106� 107 $container.isotope({� 108 itemSelector: '.masonry-item',� 109 masonry: {� 110 columnWidth: '.masonry-item.col-lg-4'� 111 },� 112 animationOptions: {� 113 duration: 500,� 114 easing: 'linear'� 115 }� 116 });� 117� 118 winDow.bind('resize', function() {� 119� 120 $container.isotope({� 121 itemSelector: '.masonry-item',� 122 animationOptions: {� 123 duration: 500,� 124 easing: 'linear',� 125 queue: false� 126 }� 127 });� 128 });� 129 }� 130 }� 131� 132 enableMasonry();� 133� 134� 135� 136� 137� 138� 139� 140 //Price Range Slider� 141 if ($('.price-range-slider').length) {� 142 $(".price-range-slider").slider({� 143 range: true,� 144 min: 0,� 145 max: 90,� 146 values: [8, 85],� 147 slide: function(event, ui) {� 148 $("input.property-amount").val(ui.values[0] + " - " + ui.values[1]);� 149 }� 150 });� 151� 152 $("input.property-amount").val($(".price-range-slider").slider("values", 0) + " - $" + $(".price-range-slider").slider("values", 1));� 153 }� 154� 155� 156� 157� 158 //Product Carousel�
159 if ($('.project-carousel').length) {� 160 $('.project-carousel').owlCarousel({� 161 loop: true,� 162 margin: 30,� 163 nav: true,� 164 smartSpeed: 700,� 165 autoplay: 5000,� 166 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 167 responsive: {� 168 0: {� 169 items: 1� 170 },� 171 600: {� 172 items: 2� 173 },� 174 800: {� 175 items: 2� 176 },� 177 1024: {� 178 items: 3� 179 },� 180 1200: {� 181 items: 4� 182 },� 183 1400: {� 184 items: 4� 185 },� 186 1600: {� 187 items: 4� 188 }� 189 }� 190 });� 191 }� 192� 193� 194 //Product Carousel Two� 195 if ($('.project-carousel-two').length) {� 196 $('.project-carousel-two').owlCarousel({� 197 loop: true,� 198 margin: 30,� 199 nav: true,� 200 smartSpeed: 700,� 201 autoplay: 5000,� 202 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 203 responsive: {� 204 0: {� 205 items: 1� 206 },� 207 600: {� 208 items: 1� 209 },� 210 800: {� 211 items: 2� 212 },� 213 1024: {� 214 items: 2� 215 },� 216 1200: {� 217 items: 2� 218 },� 219 1400: {� 220 items: 2� 221 },� 222 1600: {� 223 items: 2� 224 }� 225 }� 226 });� 227 }� 228� 229� 230 // Footer Gallery Carousel� 231 if ($('.footer-gallery-carousel').length) {� 232 $('.footer-gallery-carousel').owlCarousel({� 233 loop: true,� 234 margin: 15,� 235 nav: true,� 236 smartSpeed: 700,� 237 autoplay: 5000,� 238 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 239 responsive: {� 240 0: {� 241 items: 2� 242 },� 243 600: {� 244 items: 3� 245 },� 246 800: {� 247 items: 3� 248 },� 249 1024: {� 250 items: 4� 251 },� 252 1200: {� 253 items: 5� 254 },� 255 1400: {� 256 items: 5� 257 },� 258 1600: {� 259 items: 5� 260 }� 261 }� 262 });� 263 }� 264� 265� 266� 267 //Services Carousel� 268 if ($('.services-carousel').length) {� 269 $('.services-carousel').owlCarousel({� 270 loop: true,� 271 margin: 30,� 272 nav: false,� 273 smartSpeed: 700,� 274 autoplay: 5000,� 275 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 276 responsive: {� 277 0: {� 278 items: 1� 279 },� 280 600: {� 281 items: 2� 282 },� 283 800: {� 284 items: 2� 285 },� 286 1024: {� 287 items: 3� 288 },� 289 1200: {� 290 items: 3� 291 },� 292 1400: {� 293 items: 3� 294 },� 295 1600: {� 296 items: 3� 297 }� 298 }� 299 });� 300 }� 301� 302� 303 // Add Carousel� 304 if ($('.add-slider').length) {� 305 $('.add-slider').owlCarousel({� 306 loop: true,� 307 margin: 30,� 308 nav: false,� 309 smartSpeed: 700,� 310 autoplay: 5000,� 311 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 312 responsive: {� 313 0: {� 314 items: 1� 315 },� 316 600: {� 317 items: 1� 318 },� 319 800: {� 320 items: 1� 321 },� 322 1024: {� 323 items: 1� 324 },� 325 1200: {� 326 items: 1� 327 },� 328 1400: {� 329 items: 1� 330 },� 331 1600: {� 332 items: 1� 333 }� 334 }� 335 });� 336 }� 337� 338� 339� 340 // Two Item Carousel� 341 if ($('.two-item-carousel').length) {� 342 $('.two-item-carousel').owlCarousel({� 343 loop: true,� 344 margin: 30,� 345 nav: true,� 346 smartSpeed: 700,� 347 autoplay: 5000,� 348 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 349 responsive: {� 350 0: {� 351 items: 1� 352 },� 353 600: {� 354 items: 1� 355 },� 356 800: {� 357 items: 2� 358 },� 359 1024: {� 360 items: 2� 361 },� 362 1200: {� 363 items: 2� 364 },� 365 1400: {� 366 items: 2� 367 }� 368 }� 369 });� 370 }� 371� 372� 373� 374� 375 //Product Tabs� 376 if ($('.project-tab').length) {� 377 $('.project-tab .product-tab-btns .p-tab-btn').on('click', function(e) {� 378 e.preventDefault();� 379 var target = $($(this).attr('data-tab'));� 380� 381 if ($(target).hasClass('actve-tab')) {� 382 return false;� 383 } else {� 384 $('.project-tab .product-tab-btns .p-tab-btn').removeClass('active-btn');� 385 $(this).addClass('active-btn');� 386 $('.project-tab .p-tabs-content .p-tab').removeClass('active-tab');� 387 $(target).addClass('active-tab');� 388 }� 389 });� 390 }� 391� 392� 393� 394 if ($('.clock-wrapper').length) {� 395 (function() {� 396 //generate clock animations� 397 var now = new Date(),� 398 hourDeg = now.getHours() / 12 * 360 + now.getMinutes() / 60 * 30,� 399 minuteDeg = now.getMinutes() / 60 * 360 + now.getSeconds() / 60 * 6,� 400 secondDeg = now.getSeconds() / 60 * 360,� 401 stylesDeg = [� 402 "@-webkit-keyframes rotate-hour{from{transform:rotate(" + hourDeg + "deg);}to{transform:rotate(" + (hourDeg + 360) + "deg);}}",� 403 "@-webkit-keyframes rotate-minute{from{transform:rotate(" + minuteDeg + "deg);}to{transform:rotate(" + (minuteDeg + 360) + "deg);}}",� 404 "@-webkit-keyframes rotate-second{from{transform:rotate(" + secondDeg + "deg);}to{transform:rotate(" + (secondDeg + 360) + "deg);}}",� 405 "@-moz-keyframes rotate-hour{from{transform:rotate(" + hourDeg + "deg);}to{transform:rotate(" + (hourDeg + 360) + "deg);}}",� 406 "@-moz-keyframes rotate-minute{from{transform:rotate(" + minuteDeg + "deg);}to{transform:rotate(" + (minuteDeg + 360) + "deg);}}",� 407 "@-moz-keyframes rotate-second{from{transform:rotate(" + secondDeg + "deg);}to{transform:rotate(" + (secondDeg + 360) + "deg);}}"� 408 ].join("");� 409 document.getElementById("clock-animations").innerHTML = stylesDeg;� 410 })();� 411 }� 412� 413� 414� 415 //Jquery Spinner / Quantity Spinner� 416 if ($('.quantity-spinner').length) {� 417 $("input.quantity-spinner").TouchSpin({� 418 verticalbuttons: true� 419 });� 420 }� 421� 422� 423� 424 //Add One Page nav� 425 if ($('.scroll-nav').length) {� 426 $('.scroll-nav ul').onePageNav();� 427 }� 428� 429� 430 //Gallery Filters� 431 if ($('.filter-list').length) {� 432 $('.filter-list').mixItUp({});� 433 }� 434� 435� 436 //Accordion Box� 437 if ($('.accordion-box').length) {� 438 $(".accordion-box").on('click', '.acc-btn', function() {� 439� 440 var outerBox = $(this).parents('.accordion-box');� 441 var target = $(this).parents('.accordion');� 442� 443 if ($(this).hasClass('active') !== true) {� 444 $(outerBox).find('.accordion .acc-btn').removeClass('active');� 445 }� 446� 447 if ($(this).next('.acc-content').is(':visible')) {� 448 return false;� 449 } else {� 450 $(this).addClass('active');� 451 $(outerBox).children('.accordion').removeClass('active-block');� 452 $(outerBox).find('.accordion').children('.acc-content').slideUp(300);� 453 target.addClass('active-block');� 454 $(this).next('.acc-content').slideDown(300);� 455 }� 456 });� 457 }� 458� 459� 460� 461 //Progress Bar� 462 if ($('.progress-line').length) {� 463 $('.progress-line').appear(function() {� 464 var el = $(this);� 465 var percent = el.data('width');� 466 $(el).css('width', percent + '%');� 467 }, { accY: 0 });� 468 }� 469� 470� 471� 472 //Event Countdown Timer� 473 if ($('.time-countdown').length) {� 474 $('.time-countdown').each(function() {� 475 var $this = $(this),� 476 finalDate = $(this).data('countdown');� 477 $this.countdown(finalDate, function(event) {� 478 var $this = $(this).html(event.strftime('' + '<div class="counter-column"><span class="count">%D</span>Days</div> ' + '<div class="counter-column"><span class="count">%H</span>Hours</div> ' + '<div class="counter-column"><span class="count">%M</span>Minutes</div> ' + '<div class="counter-column"><span class="count">%S</span>Seconds</div>'));� 479 });� 480 });� 481 }� 482� 483� 484� 485 //Fact Counter + Text Count� 486 if ($('.count-box').length) {� 487 $('.count-box').appear(function() {� 488� 489 var $t = $(this),� 490 n = $t.find(".count-text").attr("data-stop"),� 491 r = parseInt($t.find(".count-text").attr("data-speed"), 10);� 492� 493 if (!$t.hasClass("counted")) {� 494 $t.addClass("counted");� 495 $({� 496 countNum: $t.find(".count-text").text()� 497 }).animate({� 498 countNum: n� 499 }, {� 500 duration: r,� 501 easing: "linear",� 502 step: function() {� 503 $t.find(".count-text").text(Math.floor(this.countNum));� 504 },� 505 complete: function() {� 506 $t.find(".count-text").text(this.countNum);� 507 }� 508 });� 509 }� 510� 511 }, { accY: 0 });� 512 }� 513� 514� 515 //Parallax Scene for Icons� 516 if ($('.parallax-scene-1').length) {� 517 var scene = $('.parallax-scene-1').get(0);� 518 var parallaxInstance = new Parallax(scene);� 519 }� 520� 521� 522� 523 if ($('.paroller').length) {� 524 $('.paroller').paroller({� 525 factor: 0.2, // multiplier for scrolling speed and offset, +- values for direction control � 526 factorLg: 0.4, // multiplier for scrolling speed and offset if window width is less than 1200px, +- values for direction control � 527 type: 'foreground', // background, foreground � 528 direction: 'horizontal' // vertical, horizontal � 529 });� 530 }� 531� 532� 533� 534 // Main Slider Carousel� 535 if ($('.main-slider-carousel').length) {� 536 $('.main-slider-carousel').owlCarousel({� 537 animateOut: 'fadeOut',� 538 animateIn: 'fadeIn',� 539 loop: true,� 540 margin: 0,� 541 nav: true,� 542 autoHeight: true,� 543 smartSpeed: 500,� 544 autoplay: 6000,� 545 navText: ['<span class="fa fa-angle-up"></span>', '<span class="fa fa-angle-down"></span>'],� 546 responsive: {� 547 0: {� 548 items: 1� 549 },� 550 600: {� 551 items: 1� 552 },� 553 800: {� 554 items: 1� 555 },� 556 1024: {� 557 items: 1� 558 },� 559 1200: {� 560 items: 1� 561 }� 562 }� 563 });� 564 }� 565� 566� 567� 568� 569 // Main Slider Carousel� 570 if ($('.main-slider-carousel-two').length) {� 571 $('.main-slider-carousel-two').owlCarousel({� 572 animateOut: 'fadeOut',� 573 animateIn: 'fadeIn',� 574 loop: true,� 575 margin: 0,� 576 nav: true,� 577 autoHeight: true,� 578 smartSpeed: 500,� 579 autoplay: 6000,� 580 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 581 responsive: {� 582 0: {� 583 items: 1� 584 },� 585 600: {� 586 items: 1� 587 },� 588 800: {� 589 items: 1� 590 },� 591 1024: {� 592 items: 1� 593 },� 594 1200: {� 595 items: 1� 596 }� 597 }� 598 });� 599 }� 600� 601� 602� 603 // Single Item Carousel� 604 if ($('.single-item-carousel').length) {� 605 $('.single-item-carousel').owlCarousel({� 606 loop: true,� 607 margin: 0,� 608 nav: true,� 609 rtl: false,� 610 smartSpeed: 700,� 611 autoplay: 5000,� 612 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 613 responsive: {� 614 0: {� 615 items: 1� 616 },� 617 600: {� 618 items: 1� 619 },� 620 800: {� 621 items: 1� 622 },� 623 1024: {� 624 items: 1� 625 },� 626 1200: {� 627 items: 1� 628 }� 629 }� 630 });� 631 }� 632� 633� 634 // Tabs Box� 635 if ($('.tabs-box').length) {� 636 $('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {� 637 e.preventDefault();� 638 var target = $($(this).attr('data-tab'));� 639� 640 if ($(target).is(':visible')) {� 641 return false;� 642 } else {� 643 target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');� 644 $(this).addClass('active-btn');� 645 target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);� 646 target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');� 647 $(target).fadeIn(300);� 648 $(target).addClass('active-tab');� 649 }� 650 });� 651 }� 652� 653� 654 // Sponsors Item Carousel� 655 if ($('.sponsors-carousel').length) {� 656 $('.sponsors-carousel').owlCarousel({� 657 loop: true,� 658 margin: 0,� 659 nav: true,� 660 smartSpeed: 500,� 661 autoplay: 4000,� 662 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 663 responsive: {� 664 0: {� 665 items: 2� 666 },� 667 480: {� 668 items: 2� 669 },� 670 600: {� 671 items: 3� 672 },� 673 800: {� 674 items: 4� 675 },� 676 1024: {� 677 items: 6� 678 }� 679 }� 680 });� 681 }� 682� 683� 684� 685 // Sponsors Item Carousel Two� 686 if ($('.sponsors-carousel-two').length)
686{� 687 $('.sponsors-carousel-two').owlCarousel({� 688 loop: true,� 689 margin: 30,� 690 nav: true,� 691 smartSpeed: 500,� 692 autoplay: 4000,� 693 navText: ['<span class="fa fa-angle-left"></span>', '<span class="fa fa-angle-right"></span>'],� 694 responsive: {� 695 0: {� 696 items: 1� 697 },� 698 480: {� 699 items: 2� 700 },� 701 600: {� 702 items: 3� 703 },� 704 800: {� 705 items: 4� 706 },� 707 1024: {� 708 items: 6� 709 }� 710 }� 711 });� 712 }� 713� 714� 715� 716 //Header Search� 717 if ($('.search-box-outer').length) {� 718 $('.search-box-outer').on('click', function() {� 719 $('body').addClass('search-active');� 720 });� 721 $('.close-search').on('click', function() {� 722 $('body').removeClass('search-active');� 723 });� 724 }� 725� 726� 727� 728� 729� 730 //LightBox / Fancybox� 731 if ($('.lightbox-image').length) {� 732 $('.lightbox-image').fancybox({� 733 openEffect: 'fade',� 734 closeEffect: 'fade',� 735 helpers: {� 736 media: {}� 737 }� 738 });� 739 }� 740� 741� 742� 743 //Contact Form Validation� 744 if ($('#contact-form').length) {� 745 $('#contact-form').validate({� 746 rules: {� 747 name: {� 748 required: true� 749 },� 750 email: {� 751 required: true,� 752 email: true� 753 },� 754 phone: {� 755 required: true� 756 },� 757 subject: {� 758 required: true� 759 }� 760 }� 761 });� 762 }� 763� 764� 765� 766 // Scroll to a Specific Div� 767 if ($('.scroll-to-target').length) {� 768 $(".scroll-to-target").on('click', function() {� 769 var target = $(this).attr('data-target');� 770 // animate� 771 $('html, body').animate({� 772 scrollTop: $(target).offset().top� 773 }, 1500);� 774� 775 });� 776 }� 777� 778� 779� 780 // Elements Animation� 781 if ($('.wow').length) {� 782 var wow = new WOW({� 783 boxClass: 'wow', // animated element css class (default is wow)� 784 animateClass: 'animated', // animation css class (default is animated)� 785 offset: 0, // distance to the element when triggering the animation (default is 0)� 786 mobile: true, // trigger animations on mobile devices (default is true)� 787 live: true // act on asynchronously loaded content (default is true)� 788 });� 789 wow.init();� 790 }� 791� 792� 793� 794 /* ==========================================================================� 795 When document is Scrollig, do� 796 ========================================================================== */� 797� 798 $(window).on('scroll', function() {� 799 headerStyle();� 800 });� 801� 802 /* ==========================================================================� 803 When document is loading, do� 804 ========================================================================== */� 805� 806 $(window).on('load', function() {� 807 handlePreloader();� 808 enableMasonry();� 809 });� 810� 811� 812 /*-------------------------------------� 813 Toggle Class� 814 -------------------------------------*/� 815 $(".toggle-password").on('click', function() {� 816 $(this).toggleClass("fa-eye fa-eye-slash");� 817 var input = $($(this).attr("toggle"));� 818 if (input.attr("type") == "password") {� 819 input.attr("type", "text");� 820 } else {� 821 input.attr("type", "password");� 822 }� 823 });� 824� 825� 826 /*-------------------------------------� 827 Toggle Class22222� 828 -------------------------------------*/� 829 $(".toggle-password2").on('click', function() {� 830 $(this).toggleClass("fa-eye fa-eye-slash");� 831 var input = $($(this).attr("toggle"));� 832 if (input.attr("type") == "password") {� 833 input.attr("type", "text");� 834 } else {� 835 input.attr("type", "password");� 836 }� 837 });� 838� 839 // ==================sidebar script� 840� 841 var stickySidebar = $('.sticky');� 842 if (stickySidebar.length > 0) {� 843 var stickyHeight = stickySidebar.height(),� 844 sidebarTop = stickySidebar.offset().top;� 845 }� 846 // on scroll move the sidebar� 847 $(window).scroll(function() {� 848 if (stickySidebar.length > 0) {� 849 var scrollTop = $(window).scrollTop();� 850 if (sidebarTop < scrollTop) {� 851� 852 stickySidebar.css('top', (scrollTop + 100) - sidebarTop);�
853 // stop the sticky sidebar at the footer to avoid overlapping� 854 var sidebarBottom = stickySidebar.offset().top + stickyHeight,� 855 stickyStop = $('.main-content').offset().top + $('.main-content').height();� 856 if (stickyStop < sidebarBottom) {� 857 var stopPosition = $('.main-content').height() - stickyHeight;� 858� 859 stickySidebar.css('top', stopPosition);� 860 }� 861 } else {� 862 stickySidebar.css('top', '0');� 863 }� 864 }� 865 });� 866� 867 $(window).resize(function() {� 868 if (stickySidebar.length > 0) {� 869 stickyHeight = stickySidebar.height();� 870 }� 871 });� 872� 873})(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.