1(function($){ 2 "use strict"; 3 jQuery(document).on('ready', function () { 4 5 // Header Sticky 6 $(window).on('scroll',function() { 7 if ($(this).scrollTop() > 120){ 8 $('.navbar').addClass("is-sticky"); 9 } 10 else{ 11 $('.navbar').removeClass("is-sticky"); 12 } 13 }); 14 15 // Navbar Menu JS 16 $('.navbar .navbar-nav li a, .main-banner-content .btn, .cta-area .btn, .who-we-are .btn, .tabs_item_content .btn, .call-to-action-content .btn').on('click', function(e){ 17 var anchor = $(this); 18 $('html, body').stop().animate({ 19 scrollTop: $(anchor.attr('href')).offset().top - 50 20 }, 1500); 21 e.preventDefault(); 22 }); 23 $('.navbar .navbar-nav li a').on('click', function(){ 24 $('.navbar-collapse').collapse('hide'); 25 }); 26 27 // Home Slides 28 $('.home-slides').owlCarousel({ 29 loop: true, 30 nav: true, 31 dots: false, 32 autoplayHoverPause: true, 33 autoplay: true, 34 items: 1, 35 navText: [ 36 "<i class='icofont-rounded-left'></i>", 37 "<i class='icofont-rounded-right'></i>" 38 ], 39 }); 40 $(".home-slides").on("translate.owl.carousel", function(){ 41 $(".home-slides p").removeClass("animated fadeInDown").css("opacity", "0"); 42 $(".home-slides h1").removeClass("animated fadeInUp").css("opacity", "0"); 43 $(".home-slides span").removeClass("animated zoomIn").css("opacity", "0"); 44 $(".home-slides .btn, .home-slides .video-btn").removeClass("animated fadeInDown").css("opacity", "0"); 45 }); 46 $(".home-slides").on("translated.owl.carousel", function(){ 47 $(".home-slides p").addClass("animated fadeInDown").css("opacity", "1"); 48 $(".home-slides h1").addClass("animated fadeInUp").css("opacity", "1"); 49 $(".home-slides span").addClass("animated zoomIn").css("opacity", "1"); 50 $(".home-slides .btn, .home-slides .video-btn").addClass("animated fadeInDown").css("opacity", "1"); 51 }); 52 53 // Popup Video 54 $('.popup-youtube').magnificPopup({ 55 disableOn: 320, 56 type: 'iframe', 57 mainClass: 'mfp-fade', 58 removalDelay: 160, 59 preloader: false, 60 fixedContentPos: false 61 }); 62 63 // Single Features Active 64 $('.features-area').on('mouseover', '.single-features', function() { 65 $('.single-features.active').removeClass('active'); 66 $(this).addClass('active'); 67 }); 68 69 // Tabs 70 (function ($) { 71 $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current'); 72 $('.tab ul.tabs li a').on('click', function (g) { 73 var tab = $(this).closest('.tab'), 74 index = $(this).closest('li').index(); 75 tab.find('ul.tabs > li').removeClass('current'); 76 $(this).closest('li').addClass('current'); 77 tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideUp(); 78 tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown(); 79 g.preventDefault(); 80 }); 81 })(jQuery); 82 83 // Ripple Effect 84 $('.ripple-effect, .ripple-playing').ripples({ 85 resolution: 512, 86 dropRadius: 25, 87 perturbance: 0.04, 88 }); 89 90 // Text Animation 91 var TxtType = function(el, toRotate, period) { 92 this.toRotate = toRotate; 93 this.el = el; 94 this.loopNum = 0; 95 this.period = parseInt(period, 10) || 2000; 96 this.txt = ''; 97 this.tick(); 98 this.isDeleting = false; 99 }; 100 TxtType.prototype.tick = function() { 101 var i = this.loopNum % this.toRotate.length; 102 var fullTxt = this.toRotate[i]; 103 104 if (this.isDeleting) { 105 this.txt = fullTxt.substring(0, this.txt.length - 1); 106 } else { 107 this.txt = fullTxt.substring(0, this.txt.length + 1); 108 } 109 110 this.el.innerHTML = '<span class="wrap">'+this.txt+'</span>'; 111 112 var that = this; 113 var delta = 200 - Math.random() * 100; 114 if (this.isDeleting) { delta /= 2; } 115 116 if (!this.isDeleting && this.txt === fullTxt) { 117 delta = this.period; 118 this.isDeleting = true; 119 } else if (this.isDeleting && this.txt === '') { 120 this.isDeleting = false; 121 this.loopNum++; 122 delta = 500; 123 } 124 setTimeout(function() { 125 that.tick(); 126 }, delta); 127 }; 128 window.onload = function() { 129 var elements = document.getElementsByClassName('typewrite'); 130 for (var i=0; i<elements.length; i++) { 131 var toRotate = elements[i].getAttribute('data-type'); 132 var period = elements[i].getAttribute('data-period'); 133 if (toRotate) { 134 new TxtType(elements[i], JSON.parse(toRotate), period); 135 } 136 } 137 // INJECT CSS 138 var css = document.createElement("style"); 139 css.type = "text/css"; 140 css.innerHTML = ".typewrite >
140 .wrap { border-right: none}"; 141 document.body.appendChild(css); 142 }; 143 144 // Progress Bar 145 if($('.progress-line').length){ 146 $('.progress-line').appear(function(){ 147 var el = $(this); 148 var percent = el.data('width'); 149 $(el).css('width',percent+'%'); 150 },{accY: 0}); 151 } 152 if($('.count-box').length){ 153 $('.count-box').appear(function(){ 154 var $t = $(this), 155 n = $t.find(".count-text").attr("data-stop"), 156 r = parseInt($t.find(".count-text").attr("data-speed"), 10); 157 158 if (!$t.hasClass("counted")) { 159 $t.addClass("counted"); 160 $({ 161 countNum: $t.find(".count-text").text() 162 }).animate({ 163 countNum: n 164 }, { 165 duration: r, 166 easing: "linear", 167 step: function() { 168 $t.find(".count-text").text(Math.floor(this.countNum)); 169 }, 170 complete: function() { 171 $t.find(".count-text").text(this.countNum); 172 } 173 }); 174 } 175 176 },{accY: 0}); 177 } 178 179 // Popup Image 180 $('.popup-btn').magnificPopup({ 181 type: 'image', 182 gallery: { 183 enabled:true 184 } 185 }); 186 187 // MixItUp Shorting 188 $(function(){ 189 $('.shorting').mixItUp(); 190 }); 191 192 // Team Slides 193 $('.team-slides').owlCarousel({ 194 loop: true, 195 nav: true, 196 dots: false, 197 autoplayHoverPause: true, 198 autoplay: true, 199 navText: [ 200 "<i class='icofont-rounded-left'></i>", 201 "<i class='icofont-rounded-right'></i>" 202 ], 203 responsive: { 204 0: { 205 items:1, 206 }, 207 768: { 208 items:2, 209 }, 210 1200: { 211 items:3, 212 } 213 } 214 }); 215 216 // Testimonial Slides 217 $('.testimonial-slides').owlCarousel({ 218 loop: true, 219 nav: false, 220 dots: true, 221 autoplayHoverPause: true, 222 autoplay: true, 223 navText: [ 224 "<i class='icofont-rounded-left'></i>", 225 "<i class='icofont-rounded-right'></i>" 226 ], 227 responsive: { 228 0: { 229 items:1, 230 }, 231 768: { 232 items:1, 233 }, 234 1200: { 235 items:2, 236 } 237 } 238 }); 239 240 // Pricing Tabs 241 $(".tab-slider-body").hide(); 242 $(".tab-slider-body:first").show(); 243 $(".tab-slider-nav li").on('click', function() { 244 $(".tab-slider-body").hide(); 245 var activeTab = $(this).attr("rel"); 246 $("#"+activeTab).fadeIn(); 247 if($(this).attr("rel") == "yearly"){ 248 $('.tab-slider-tabs').addClass('slide'); 249 }else{ 250 $('.tab-slider-tabs').removeClass('slide'); 251 } 252 $(".tab-slider-nav li").removeClass("active"); 253 $(this).addClass("active"); 254 }); 255 256 // FAQ Accordion 257 $(function() { 258 $('.accordion').find('.accordion-title').on('click', function(){ 259 // Adds Active Class 260 $(this).toggleClass('active'); 261 // Expand or Collapse This Panel 262 $(this).next().slideToggle('fast'); 263 // Hide The Other Panels 264 $('.accordion-content').not($(this).next()).slideUp('fast'); 265 // Removes Active Class From Other Titles 266 $('.accordion-title').not($(this)).removeClass('active'); 267 }); 268 }); 269 270 // Blog Slides 271 $('.blog-slides').owlCarousel({ 272 loop: true, 273 nav: false, 274 dots: true, 275 autoplayHoverPause: true, 276 autoplay: true, 277 navText: [ 278 "<i class='icofont-rounded-left'></i>", 279 "<i class='icofont-rounded-right'></i>" 280 ], 281 responsive:{ 282 0: { 283 items:1, 284 }, 285 768: { 286 items:2, 287 }, 288 1200: { 289 items:3, 290 } 291 } 292 }); 293 294 // Partner Slides 295 $('.partner-slides').owlCarousel({ 296 loop: true, 297 nav: false, 298 dots: false, 299 autoplayHoverPause: true, 300 autoplay: true, 301 navText: [ 302 "<i class='icofont-rounded-left'></i>", 303 "<i class='icofont-rounded-right'></i>" 304 ], 305 responsive:{ 306 0: { 307 items:2, 308 }, 309 768: { 310 items:3, 311 }, 312 1200: { 313 items:5, 314 } 315 } 316 }); 317 318 // Subscribe form 319 $(".newsletter-form").validator().on("submit", function (event) { 320 if (event.isDefaultPrevented()) { 321 // handle the invalid form... 322 formErrorSub(); 323 submitMSGSub(false, "Please enter your email correctly."); 324 } else { 325 // everything looks good! 326 event.preventDefault(); 327 } 328 }); 329 function callbackFunction (resp) { 330 if (resp.result === "success") { 331 formSuccessSub(); 332 } 333 else { 334 formErrorSub(); 335 } 336 } 337 function formSuccessSub(){ 338 $(".newsletter-form")[0].reset(); 339 submitMSGSub(true, "Thank you for subscribing!"); 340 setTimeout(function() { 341 $("#validator-newsletter").addClass('hide'); 342 }, 4000) 343 } 344 function formErrorSub(){ 345 $(".newsletter-form").addClass("animated shake"); 346 setTimeout(function() { 347 $(".newsletter-form").removeClass("animated shake"); 348 }, 1000) 349 } 350 function submitMSGSub(valid, msg){ 351 if(valid){ 352 var msgClasses = "validation-success"; 353 } else { 354 var msgClasses = "validation-danger"; 355 } 356 $("#validator-newsletter").removeClass().addClass(msgClasses).text(msg); 357 } 358 // AJAX MailChimp 359 $(".newsletter-form").ajaxChimp({ 360 url: "https://envytheme.us20.list-manage.com/subscribe/post?u=60e1ffe2e8a68ce1204cd39a5&id=42d6d188d9", // Your url MailChimp 361 callback: callbackFunction 362 }); 363 364 // Go to Top 365 $(function(){ 366 //Scroll event 367 $(window).on('scroll', function(){ 368 var scrolled = $(window).scrollTop(); 369 if (scrolled > 300) $('.go-top').fadeIn('slow'); 370 if (scrolled < 300) $('.go-top').fadeOut('slow'); 371 }); 372 //Click event 373 $('.go-top').on('click', function() { 374 $("html, body").animate({ scrollTop: "0" }, 500); 375 }); 376 }); 377 378 // Particles JS 379 if(document.getElementById("particles-js")) particlesJS("particles-js", { 380 "particles": { 381 "number": { 382 "value": 110, 383 "density": { 384 "enable": true, 385 "value_area": 1000 386 } 387 }, 388 "color": { 389 "value": ["#aa73ff", "#f8c210", "#83d238", "#33b1f8"] 390 }, 391 "shape": { 392 "type": "circle", 393 "stroke": { 394 "width": 0, 395 "color": "#fff" 396 }, 397 "polygon": { 398 "nb_sides": 5 399 }, 400 "image": { 401 "src": "img/github.svg", 402 "width": 100, 403 "height": 100 404 } 405 }, 406 "opacity": { 407 "value": 0.6, 408 "random": false, 409 "anim": { 410 "enable": false, 411 "speed": 1, 412 "opacity_min": 0.1, 413 "sync": false 414 } 415 }, 416 "size": { 417 "value": 2, 418 "random": true, 419 "anim": { 420 "enable": false, 421 "speed": 40, 422 "size_min": 0.1, 423 "sync": false 424 } 425 }, 426 "line_linked": { 427 "enable": true, 428 "distance": 120, 429 "color": "#ffffff", 430 "opacity": 0.4, 431 "width": 1 432 }, 433 }, 434 "interactivity": { 435 "detect_on": "canvas", 436 "events": { 437 "onhover": { 438 "enable": true, 439 "mode": "grab" 440 }, 441 "onclick": { 442 "enable": false 443 }, 444 "resize": true 445 }, 446 "modes": { 447 "grab": { 448 "distance": 140, 449 "line_linked": { 450 "opacity": 1 451 } 452 }, 453 "bubble": { 454 "distance": 400, 455 "size": 40, 456 "duration": 2, 457 "opacity": 8, 458 "speed": 3 459 }, 460 "repulse": { 461 "distance": 200, 462 "duration": 0.4 463 }, 464 "push": { 465 "particles_nb": 4 466 }, 467 "remove": { 468 "particles_nb": 2 469 } 470 } 471 }, 472 "retina_detect": true 473 }); 474 475 // Particles Js two 476 if(document.getElementById("particles-js-bubble")) particlesJS("particles-js-bubble", { 477 "particles": { 478 "number": { 479 "value": 120, "density": { 480 "enable": true, "value_area": 800 481 } 482 } 483 , "color": { 484 "value": "#f2f2f2" 485 } 486 , "shape": { 487 "type":"circle", "stroke": { 488 "width": 0, "color": "#000000" 489 } 490 , "polygon": { 491 "nb_sides": 5 492 } 493 , "image": { 494 "src": "img/github.svg", "width": 80, "height": 80 495 } 496 } 497 , "opacity": { 498 "value":0.5, "random":true, "anim": { 499 "enable": false, "speed": 1, "opacity_min": 0.1, "sync": false 500 } 501 } 502 , "size": { 503 "value":10, "random":true, "anim": { 504 "enable": false, "speed": 40, "size_min": 0.1, "sync": false 505 } 506 } 507 , "line_linked": { 508 "enable": false, "distance": 500, "color": "#f2f2f2", "opacity": 0.4, "width": 2 509 } 510 , "move": { 511 "enable":true, "speed":6, "direction":"bottom", "random":false, "straight":false, "out_mode":"out", "bounce":false, "attract": { 512 "enable": false, "rotateX": 600, "rotateY": 1200 513 } 514 } 515 } 516 , "interactivity": { 517 "detect_on":"canvas", "events": { 518 "onhover": { 519 "enable": true, "mode": "bubble" 520 } 521 , "onclick": { 522 "enable": true, "mode": "repulse" 523 } 524 , "resize":true 525 } 526 , "modes": { 527 "grab": { 528 "distance":400, "line_linked": { 529 "opacity": 0.5 530 } 531 } 532 , "bubble": { 533 "distance": 400, "size": 4, "duration": 0.3, "opacity": 1, "speed": 3 534 } 535 , "repulse": { 536 "distance": 200, "duration": 0.4 537 } 538 , "push": { 539 "particles_nb": 4 540 } 541 , "remove": { 542 "particles_nb": 2 543 } 544 } 545 } 546 , "retina_detect":true 547 }); 548 549 // Particles Js Three 550 if(document.getElementById("particles-js-star")) particlesJS("particles-js-star", { 551 "particles": { 552 "number": { 553 "value": 100, "density": { 554 "enable": false, "value_area": 800 555 } 556 } 557 , "color": { 558 "value": "#f2f2f2" 559 } 560 , "shape": { 561 "type":"star", "stroke": { 562 "width": 0, "color": "#000000" 563 } 564 , "polygon": { 565 "nb_sides": 5 566 } 567 } 568 , "opacity": { 569 "value":0.5, "random":false, "anim": { 570 "enable": false, "speed": 1, "opacity_min": 0.1, "sync": false 571 } 572 } 573 , "size": { 574 "value":4, "random":true, "anim": { 575 "enable": false, "speed": 40, "size_min": 0.1, "sync": false 576 } 577 } 578 , "line_linked": { 579 "enable": false, "distance": 150, "color": "#f2f2f2", "opacity": 0.1, "width": 1 580 } 581 , "move": { 582 "enable":true, "speed":14, "direction":"right", "random":false, "straight":true, "out_mode":"out", "bounce":false, "attract": { 583 "enable": false, "rotateX": 600, "rotateY": 1200 584 } 585 } 586 } 587 , "interactivity": { 588 "detect_on":"canvas", "events": { 589 "onhover": { 590 "enable": false, "mode": "grab" 591 } 592 , "onclick": { 593 "enable": true, "mode": "repulse" 594 } 595 , "resize":true 596 } 597 , "modes": { 598 "grab": { 599 "distance":200, "line_linked": { 600 "opacity": 1 601 } 602 } 603 , "bubble": { 604 "distance": 400, "size": 40, "duration": 2, "opacity": 8, "speed": 3 605 } 606 , "repulse": { 607 "distance": 200, "duration": 0.4 608 } 609 , "push": { 610 "particles_nb": 4 611 } 612 , "remove": { 613 "particles_nb": 2 614 } 615 } 616 } 617 , "retina_detect":true 618 }); 619 620 // Particles Js Four
621 if(document.getElementById("particles-js-big-bubble")) particlesJS("particles-js-big-bubble", { 622 "particles": { 623 "number": { 624 "value": 6, "density": { 625 "enable": true, "value_area": 800 626 } 627 } 628 , "color": { 629 "value": "#1b1e34" 630 } 631 , "shape": { 632 "type":"polygon", "stroke": { 633 "width": 0, "color": "#000000" 634 } 635 , "polygon": { 636 "nb_sides": 6 637 } 638 , "image": { 639 "src": "img/github.svg", "width": 10, "height": 10 640 } 641 } 642 , "opacity": { 643 "value":0.3, "random":true, "anim": { 644 "enable": false, "speed": 1, "opacity_min": 0.1, "sync": false 645 } 646 } 647 , "size": { 648 "value": 160, "random":false, "anim": { 649 "enable": true, "speed": 10, "size_min": 40, "sync": false 650 } 651 } 652 , "line_linked": { 653 "enable": false, "distance": 200, "color": "#ffffff", "opacity": 1, "width": 2 654 } 655 , "move": { 656 "enable":true, "speed":8, "direction":"none", "random":false, "straight":false, "out_mode":"out", "bounce":false, "attract": { 657 "enable": false, "rotateX": 600, "rotateY": 1200 658 } 659 } 660 } 661 , "interactivity": { 662 "detect_on":"canvas", "events": { 663 "onhover": { 664 "enable": false, "mode": "grab" 665 } 666 , "onclick": { 667 "enable": false, "mode": "push" 668 } 669 , "resize":true 670 } 671 , "modes": { 672 "grab": { 673 "distance":400, "line_linked": { 674 "opacity": 1 675 } 676 } 677 , "bubble": { 678 "distance": 400, "size": 40, "duration": 2, "opacity": 8, "speed": 3 679 } 680 , "repulse": { 681 "distance": 200, "duration": 0.4 682 } 683 , "push": { 684 "particles_nb": 4 685 } 686 , "remove": { 687 "particles_nb": 2 688 } 689 } 690 } 691 , "retina_detect":true 692 }); 693 694 // Particles Js Five 695 if(document.getElementById("particles-js-small-bubble")) particlesJS("particles-js-small-bubble", { 696 "particles": { 697 "number": { 698 "value": 200, "density": { 699 "enable": true, "value_area": 800 700 } 701 } 702 , "color": { 703 "value": "#ffffff" 704 } 705 , "shape": { 706 "type":"circle", "stroke": { 707 "width": 0, "color": "#000000" 708 } 709 , "polygon": { 710 "nb_sides": 5 711 } 712 , "image": { 713 "src": "img/github.svg", "width": 100, "height": 100 714 } 715 } 716 , "opacity": { 717 "value":1, "random":true, "anim": { 718 "enable": true, "speed": 1, "opacity_min": 0, "sync": false 719 } 720 } 721 , "size": { 722 "value":3, "random":true, "anim": { 723 "enable": false, "speed": 4, "size_min": 0.3, "sync": false 724 } 725 } 726 , "line_linked": { 727 "enable": false, "distance": 150, "color": "#ffffff", "opacity": 0.4, "width": 1 728 } 729 , "move": { 730 "enable":true, "speed":1, "direction":"none", "random":true, "straight":false, "out_mode":"out", "bounce":false, "attract": { 731 "enable": false, "rotateX": 600, "rotateY": 600 732 } 733 } 734 } 735 , "interactivity": { 736 "detect_on":"canvas", "events": { 737 "onhover": { 738 "enable": true, "mode": "bubble" 739 } 740 , "onclick": { 741 "enable": true, "mode": "repulse" 742 } 743 , "resize":true 744 } 745 , "modes": { 746 "grab": { 747 "distance":400, "line_linked": { 748 "opacity": 1 749 } 750 } 751 , "bubble": { 752 "distance": 250, "size": 0, "duration": 2, "opacity": 0, "speed": 3 753 } 754 , "repulse": { 755 "distance": 400, "duration": 0.4 756 } 757 , "push": { 758 "particles_nb": 4 759 } 760 , "remove": { 761 "particles_nb": 2 762 } 763 } 764 } 765 , "retina_detect":true 766 }); 767 768 }); 769 770 // Odometer JS 771 $('.odometer').appear(function(e) { 772 var odo = $(".odometer"); 773 odo.each(function() { 774 var countNumber = $(this).attr("data-count"); 775 $(this).html(countNumber); 776 }); 777 });
778 779 // WOW JS 780 $(window).on ('load', function (){ 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: 20, // 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 // Preloader Area 794 jQuery(window).on('load', function() { 795 $('.preloader').fadeOut(); 796 }); 797}(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.