1$ = jQuery.noConflict(); 2 3 4$(window).on("load", function () { 5 6 "use strict"; 7 8 /* =================================== 9 Loading Timeout 10 ====================================== */ 11 12 setTimeout(function () { 13 $(".loader").fadeOut("slow"); 14 }, 1000); 15 16}); 17 18jQuery(function ($) { 19 20 21 "use strict"; 22 23 24 /* =================================== 25 Scroll 26 ====================================== */ 27 28 29 $(window).on('scroll', function () { 30 if ($(this).scrollTop() > 220) { // Set position from top to add class 31 $('header').addClass('header-appear'); 32 } 33 else { 34 $('header').removeClass('header-appear'); 35 } 36 }); 37 38 39 $(".progress-bar").each(function () { 40 $(this).appear(function () { 41 $(this).animate({width: $(this).attr("aria-valuenow") + "%"}, 3000) 42 }); 43 }); 44 45 46 $('.count').each(function () { 47 $(this).appear(function () { 48 $(this).prop('Counter', 0).animate({ 49 Counter: $(this).text() 50 }, { 51 duration: 3000, 52 easing: 'swing', 53 step: function (now) { 54 $(this).text(Math.ceil(now)); 55 } 56 }); 57 }); 58 }); 59 60 61 //scroll to appear 62 $(window).on('scroll', function () { 63 if ($(this).scrollTop() > 500) 64 $('.scroll-top-arrow').fadeIn('slow'); 65 else 66 $('.scroll-top-arrow').fadeOut('slow'); 67 }); 68 69 // fixing bottom nav to top on scrolliing 70 var $fixednav = $(".bottom-nav"); 71 $(window).on("scroll", function () { 72 var $heightcalc = $(window).height() - $fixednav.height(); 73 if ($(this).scrollTop() > $heightcalc) { 74 $fixednav.addClass("navbar-bottom-top"); 75 } else { 76 $fixednav.removeClass("navbar-bottom-top"); 77 } 78 }); 79 80 //Click event to scroll to top 81 $(document).on('click', '.scroll-top-arrow', function () { 82 $('html, body').animate({scrollTop: 0}, 100); 83 return false; 84 }); 85 86 87 //scroll sections 88 if($("body").hasClass("intrective")){ 89 $(".scroll").on("click", function (event) { 90 event.preventDefault(); 91 $("html,body").animate({ 92 scrollTop: $(this.hash).offset().top}, 100); 93 }); 94 95 }else { 96 97 $(".scroll").on("click", function (event) { 98 event.preventDefault(); 99 $("html,body").animate({ 100 scrollTop: $(this.hash).offset().top - 60}, 100); 101 }); 102 103 } 104 105 /* ===================================== 106 Parallax 107 ====================================== */ 108 109 if ($(window).width() > 992) { 110 $(".parallax").parallaxie({ 111 speed: 0.55, 112 offset: 0, 113 }); 114 } 115 116 117 /* =================================== 118 Side Menu 119 ====================================== */ 120 if ($("#sidemenu_toggle").length) { 121 $("#sidemenu_toggle").on("click", function () { 122 $(".pushwrap").toggleClass("active"); 123 $(".side-menu").addClass("side-menu-active"), $("#close_side_menu").fadeIn(700) 124 }), $("#close_side_menu").on("click", function () { 125 $(".side-menu").removeClass("side-menu-active"), $(this).fadeOut(200), $(".pushwrap").removeClass("active") 126 }), $(".side-nav .navbar-nav .nav-link").on("click", function () { 127 $(".side-menu").removeClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active") 128 }), $("#btn_sideNavClose").on("click", function () { 129 $(".side-menu").removeClass("side-menu-active"), $("#close_side_menu").fadeOut(200), $(".pushwrap").removeClass("active") 130 }); 131 } 132 133 if ($(".side-right-btn").length) { 134 135 $(".side-right-btn").click(function () { 136 $(".navbar.navbar-right").toggleClass('show'); 137 }), 138 $(".navbar.navbar-right .navbar-nav .nav-link").click(function () { 139 $(".navbar.navbar-right").toggleClass('show'); 140 }); 141 142 } 143 144 145 /* =================================== 146 Rotating Text 147 ====================================== */ 148 149 if ($("#js-rotating").length) { 150 $("#js-rotating").Morphext({ 151 // The [in] animation type. Refer to Animate.css for a list of available animations. 152 animation: "flipInX", 153 // An array of phrases to rotate are created based on this separator. Change it if you wish to
153separate the phrases differently (e.g. So Simple | Very Doge | Much Wow | Such Cool). 154 separator: ",", 155 // The delay between the changing of each phrase in milliseconds. 156 speed: 3000, 157 complete: function () { 158 // Called after the entrance animation is executed. 159 } 160 }); 161 } 162 163 /* =================================== 164 Type Text 165 ====================================== */ 166 167 if ($("#typewriting").length) { 168 var app = document.getElementById("typewriting"); 169 var typewriter = new Typewriter(app, { 170 loop: true 171 }); 172 typewriter.typeString('Way to achieve success').pauseFor(2000).deleteAll() 173 .typeString('Style to achieve success').pauseFor(2000).deleteAll() 174 .typeString('Method to achieve success').start(); 175 } 176 177 if ($("#personal").length) { 178 var app = document.getElementById("personal"); 179 var personal = new Typewriter(app, { 180 loop: true 181 }); 182 personal.typeString('UI/UX Designer').pauseFor(2000).deleteAll() 183 .typeString('Web Developer').pauseFor(2000).deleteAll() 184 .typeString('Wordpress Developer').start(); 185 } 186 187 /* ===================================== 188 Coming Soon Count Down 189 ====================================== */ 190 191 192 if ($(".count_down").length) { 193 $('.count_down').downCount({ 194 date: '03/3/2019 12:00:00', 195 offset: +10 196 }); 197 } 198 199 200 201 202 /* ===================================== 203 Wow 204 ======================================== */ 205 206 if ($(window).width() > 767) { 207 var wow = new WOW({ 208 boxClass: 'wow', 209 animateClass: 'animated', 210 offset: 0, 211 mobile: false, 212 live: true 213 }); 214 new WOW().init(); 215 } 216 217 218 /* =================================== 219 Animated Cursor 220 ====================================== */ 221 222 function animatedCursor() { 223 224 if ($("#aimated-cursor").length) { 225 226 var e = {x: 0, y: 0}, t = {x: 0, y: 0}, n = .25, o = !1, a = document.getElementById("cursor"), 227 i = document.getElementById("cursor-loader"); 228 TweenLite.set(a, {xPercent: -50, yPercent: -50}), document.addEventListener("mousemove", function (t) { 229 var n = window.pageYOffset || document.documentElement.scrollTop; 230 e.x = t.pageX, e.y = t.pageY - n 231 }), TweenLite.ticker.addEventListener("tick", function () { 232 o || (t.x += (e.x - t.x) * n, t.y += (e.y - t.y) * n, TweenLite.set(a, {x: t.x, y: t.y})) 233 }), 234 $(".animated-wrap").mouseenter(function (e) { 235 TweenMax.to(this, .3, {scale: 2}), TweenMax.to(a, .3, { 236 scale: 2, 237 borderWidth: "1px", 238 opacity: .2 239 }), TweenMax.to(i, .3, { 240 scale: 2, 241 borderWidth: "1px", 242 top: 1, 243 left: 1 244 }), TweenMax.to($(this).children(), .3, {scale: .5}), o = !0 245 }), 246 $(".animated-wrap").mouseleave(function (e) { 247 TweenMax.to(this, .3, {scale: 1}), TweenMax.to(a, .3, { 248 scale: 1, 249 borderWidth: "2px", 250 opacity: 1 251 }), TweenMax.to(i, .3, { 252 scale: 1, 253 borderWidth: "2px", 254 top: 0, 255 left: 0 256 }), TweenMax.to($(this).children(), .3, {scale: 1, x: 0, y: 0}), o = !1 257 }), 258 $(".animated-wrap").mousemove(function (e) { 259 var n, o, i, l, r, d, c, s, p, h, x, u, w, f, m; 260 n = e, o = 2, i = this.getBoundingClientRect(), l = n.pageX - i.left, r = n.pageY - i.top, d = window.pageYOffset || document.documentElement.scrollTop, t.x = i.left + i.width / 2 + (l - i.width / 2) / o, t.y = i.top + i.height / 2 + (r - i.height / 2 - d) / o, TweenMax.to(a, .3, { 261 x: t.x, 262 y: t.y 263 }), s = e, p = c = this, h = c.querySelector(".animated-element"), x = 20, u = p.getBoundingClientRect(), w = s.pageX - u.left, f = s.pageY - u.top, m = window.pageYOffset || document.documentElement.scrollTop, TweenMax.to(h, .3, { 264 x: (w - u.width / 2) / u.width * x, 265 y: (f - u.height / 2 - m) / u.height * x, 266 ease: Power2.easeOut 267 }) 268 }), 269 $(".hide-cursor,.btn,.tp-bullets").mouseenter(function (e) { 270 TweenMax.to("#cursor", .2, {borderWidth: "1px", scale: 2, opacity: 0}) 271 }), $(".hide-cursor,.btn,.tp-bullets").mouseleave(function (e) { 272 TweenMax.to("#cursor", .3, {borderWidth: "2px", scale: 1, opacity: 1}) 273 }),$(".link").mouseenter(function (e) { 274 TweenMax.to("#cursor", .2, { 275 borderWidth: "0px", 276 scale: 3, 277 backgroundColor: "rgba(255, 255, 255, 0.27)", 278 opacity: .15 279 }) 280 }), $(".link").mouseleave(function (e) { 281 TweenMax.to("#cursor", .3, { 282 borderWidth: "2px", 283 scale: 1, 284 backgroundColor: "rgba(255, 255, 255, 0)", 285 opacity: 1 286 }) 287 }) 288 289 } 290 291 } 292 if ($(window).width() > 991) { 293 setTimeout(function () { 294 animatedCursor(); 295 }, 1000); 296 } 297 298 299 300 301 /* =================================== 302 Owl Carousel
303 ====================================== */ 304 305 //About Slider 306 307 $("#laptop-slide").owlCarousel({ 308 items: 1, 309 loop: true, 310 dots: false, 311 nav: false, 312 animateOut: 'fadeOut', 313 animateIn: 'fadeIn', 314 autoplay: true, 315 autoplayTimeout: 3000, 316 // mouseDrag:false, 317 responsive: { 318 1280: { 319 items: 1, 320 }, 321 600: { 322 items: 1, 323 }, 324 320: { 325 items: 1, 326 }, 327 } 328 }); 329 330 //App Slider 331 332 $("#app-slider").owlCarousel({ 333 items: 1, 334 loop: true, 335 dots: false, 336 nav: false, 337 animateOut: 'fadeOut', 338 animateIn: 'fadeIn', 339 autoplay: true, 340 autoplayTimeout: 3000, 341 // mouseDrag:false, 342 responsive: { 343 1280: { 344 items: 1, 345 }, 346 600: { 347 items: 1, 348 }, 349 320: { 350 items: 1, 351 }, 352 } 353 }); 354 355 // Team Slider 356 357 $("#team-slider").owlCarousel({ 358 items: 3, 359 dots: false, 360 nav: false, 361 responsive: { 362 991: { 363 items: 3, 364 }, 365 767: { 366 items: 2, 367 }, 368 320: { 369 items: 1, 370 }, 371 } 372 }); 373 374 //price slider 375 376 $("#price-slider").owlCarousel({ 377 items: 3, 378 dots: false, 379 nav: false, 380 responsive: { 381 991: { 382 items: 3, 383 }, 384 767: { 385 items: 2, 386 }, 387 320: { 388 items: 1, 389 }, 390 } 391 }); 392 393 $("#team-three-slider").owlCarousel({ 394 items: 4, 395 dots: false, 396 nav: false, 397 responsive: { 398 991: { 399 items: 4, 400 }, 401 767: { 402 items: 2, 403 }, 404 320: { 405 items: 1, 406 }, 407 } 408 }); 409 410 //testimonial slider 411 412 $("#testimonial_slider").owlCarousel({ 413 items: 1, 414 dots: true, 415 nav: false, 416 }); 417 418 //single slider 419 420 $("#single-slider").owlCarousel({ 421 items: 1, 422 nav: false, 423 loop: true, 424 mouseDrag: false, 425 animateOut: 'fadeOut', 426 animateIn: 'fadeIn', 427 autoplay: true, 428 autoplayTimeout: 3000, 429 430 }); 431 432 //team two slider 433 434 $("#team-slider-two").owlCarousel({ 435 items: 1, 436 nav: false, 437 loop: true, 438 dots: false, 439 responsive: { 440 991: { 441 items: 2, 442 autoplayHoverPause:true, 443 autoplay: true, 444 autoplayTimeout: 3000, 445 }, 446 320: { 447 items: 1, 448 }, 449 } 450 451 }); 452 453 454 //Contact Us 455 $("#submit_btn").click(function () { 456 457 //disable submit button on click 458 $("#submit_btn").attr("disabled", "disabled"); 459 $("#submit_btn span").text('Sending'); 460 $("#submit_btn i").removeClass('d-none'); 461 462 var user_name = $('input[name=first_name]').val() + ' ' + $('input[name=last_name]').val(); 463 var user_email = $('input[name=email]').val(); 464 var user_phone = $('input[name=phone]').val(); 465 var user_message = $('textarea[name=message]').val(); 466 467 //simple validation at client's end 468 var post_data, output; 469 var proceed = true; 470 if (user_name == "") { 471 proceed = false; 472 } 473 if (user_email == "") { 474 proceed = false; 475 } 476 // if (user_phone == "") { 477 //proceed = false; 478 // } 479 480 if (user_message == "") { 481 proceed = false; 482 } 483 //everything looks good! proceed... 484 if (proceed) { 485 486 //data to be sent to server 487 post_data = { 488 'userName': user_name, 489 'userEmail': user_email, 490 'userPhone': user_phone, 491 'userMessage': user_message 492 }; 493 494 //Ajax post data to server 495 $.post('contact.php', post_data, function (response) { 496 497 //load json data from server and output message 498 if (response.type == 'error') { 499 output = '<div class="alert-danger" style="padding:10px; margin-bottom:30px;">' + response.text + '</div>'; 500 } else { 501 output = '<div class="alert-success" style="padding:10px; margin-bottom:30px;">' + response.text + '</div>'; 502 503 //reset values in all input fields 504 $('.contact-form input').val(''); 505 $('.contact-form textarea').val(''); 506 } 507 508 $("#result").hide().html(output).slideDown(); 509 510 // enable submit button on action done 511 $("#submit_btn").removeAttr("disabled"); 512 $("#submit_btn span").text('Contact Now'); 513 $("#submit_btn i").addClass('d-none'); 514 515 }, 'json'); 516 517 } 518 else { 519 output = '<div class="alert-danger" style="padding:10px; margin-bottom:30px;">
519Please provide the missing fields.</div>'; 520 $("#result").hide().html(output).slideDown(); 521 522 // enable submit button on action done 523 $("#submit_btn").removeAttr("disabled"); 524 $("#submit_btn span").text('Contact Now'); 525 $("#submit_btn i").addClass('d-none'); 526 } 527 528 }); 529 530 531 /*============================================* 532 Cube Portfolio 533 * ============================================*/ 534 535 536 $('#js-grid-mosaic-flat').cubeportfolio({ 537 filters: '#js-filters-mosaic-flat', 538 layoutMode: 'mosaic', 539 sortByDimension: true, 540 mediaQueries: [{ 541 width: 1500, 542 cols: 6, 543 }, { 544 width: 1100, 545 cols: 4, 546 }, { 547 width: 800, 548 cols: 3, 549 }, { 550 width: 480, 551 cols: 1, 552 options: { 553 gapHorizontal: 15, 554 gapVertical: 15, 555 } 556 }], 557 defaultFilter: '*', 558 animationType: 'fadeOutTop', 559 gapHorizontal: 0, 560 gapVertical: 0, 561 gridAdjustment: 'responsive', 562 caption: 'zoom', 563 564 // lightbox 565 lightboxDelegate: '.cbp-lightbox', 566 lightboxGallery: true, 567 lightboxTitleSrc: 'data-title', 568 569 plugins: { 570 loadMore: { 571 element: '#js-loadMore-mosaic-flat', 572 action: 'click', 573 loadItems: 3, 574 } 575 }, 576 }); 577 578 579 /* ------ CubePortfolio ------ */ 580 581 $("#portfolio-measonry").cubeportfolio({ 582 filters: '#measonry-filters', 583 loadMoreAction: 'click', 584 layoutMode: 'grid', 585 defaultFilter: '*', 586 animationType: "scaleSides", 587 gapHorizontal: 30, 588 gapVertical: 30, 589 gridAdjustment: "responsive", 590 mediaQueries: [{ 591 width: 1500, 592 cols: 2 593 }, { 594 width: 1100, 595 cols: 2 596 }, { 597 width: 768, 598 cols: 2 599 }, { 600 width: 480, 601 cols: 1 602 }, { 603 width: 320, 604 cols: 1 605 }], 606 }); 607 608 609 /* =================================== 610 Revolution Slider 611 ====================================== */ 612 613 $("#rev_slider_19_1").show().revolution({ 614 sliderType: "standard", 615 jsFileLocation: "//localhost:82/revslider/revslider/public/assets/js/", 616 sliderLayout: "fullscreen", 617 dottedOverlay: "none", 618 delay: 9000, 619 navigation: { 620 keyboardNavigation: "off", 621 keyboard_direction: "horizontal", 622 mouseScrollNavigation: "off", 623 mouseScrollReverse: "default", 624 onHoverStop: "off", 625 bullets: { 626 enable: true, 627 hide_onmobile: true, 628 hide_under: 767, 629 style: "wexim", 630 hide_onleave: false, 631 direction: "vertical", 632 h_align: "left", 633 v_align: "center", 634 h_offset: 30, 635 v_offset: 0, 636 space: 5, 637 tmp: '<div class="tp-bullet-inner"></div><div class="tp-line"></div>' 638 }, 639 touch: { 640 touchenabled: "on", 641 swipe_threshold: 75, 642 swipe_min_touches: 1, 643 swipe_direction: "horizontal", 644 drag_block_vertical: false 645 }, 646 }, 647 responsiveLevels: [1900, 1600, 1200, 1024, 778, 580], 648 visibilityLevels: [1900, 1600, 1024, 778, 580], 649 gridwidth: [1100, 1200, 1140, 960, 750, 480], 650 gridheight: [868, 768, 960, 720], 651 lazyType: "none", 652 scrolleffect: { 653 on_slidebg: "on", 654 }, 655 parallax: { 656 type: "mouse", 657 origo: "slidercenter", 658 speed: 2000, 659 speedbg: 0, 660 speedls: 0, 661 levels: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 662 disable_onmobile: "on" 663 }, 664 shadow: 0, 665 spinner: "off", 666 stopLoop: "off", 667 stopAfterLoops: -1, 668 stopAtSlide: -1, 669 shuffle: "off", 670 autoHeight: "off", 671 fullScreenAutoWidth: "off", 672 fullScreenAlignForce: "off", 673 fullScreenOffsetContainer: "", 674 fullScreenOffset: "", 675 disableProgressBar: "on", 676 hideThumbsOnMobile: "on", 677 hideSliderAtLimit: 0, 678 hideCaptionAtLimit: 0, 679 hideAllCaptionAtLilmit: 0, 680 debugMode: false, 681 fallbacks: { 682 simplifyAll: "off", 683 nextSlideOnWindowFocus: "off", 684 disableFocusListener: false, 685 } 686 }); 687 688 /*animated elements hero banner*/ 689 $("#rev_single").show().revolution({ 690 sliderType: "hero",
691 jsFileLocation: "js/revolution", 692 sliderLayout: "fullscreen", 693 scrollbarDrag: "true", 694 dottedOverlay: "none", 695 delay: 9000, 696 navigation: {}, 697 responsiveLevels: [1240, 1024, 778, 480], 698 visibilityLevels: [1240, 1024, 778, 480], 699 gridwidth: [1170, 1024, 778, 480], 700 gridheight: [868, 768, 960, 720], 701 lazyType: "none", 702 parallax: { 703 type: "scroll", 704 origo: "slidercenter", 705 speed: 400, 706 levels: [10, 15, 20, 25, 30, 35, 40, -10, -15, -20, -25, -30, -35, -40, -45, 55] 707 }, 708 shadow: 0, 709 spinner: "off", 710 autoHeight: "off", 711 fullScreenAutoWidth: "off", 712 fullScreenAlignForce: "off", 713 fullScreenOffsetContainer: "", 714 disableProgressBar: "on", 715 hideThumbsOnMobile: "off", 716 hideSliderAtLimit: 0, 717 hideCaptionAtLimit: 0, 718 hideAllCaptionAtLilmit: 0, 719 debugMode: false, 720 fallbacks: { 721 simplifyAll: "off", 722 disableFocusListener: false 723 } 724 }); 725 726 $("#rev_slider_1064_1").show().revolution({ 727 sliderType:"standard", 728 jsFileLocation:"revolution/js/", 729 sliderLayout:"fullscreen", 730 dottedOverlay:"none", 731 delay:9000, 732 navigation: { 733 keyboardNavigation:"off", 734 keyboard_direction: "horizontal", 735 mouseScrollNavigation:"off", 736 mouseScrollReverse:"default", 737 onHoverStop:"off", 738 touch:{ 739 touchenabled:"on", 740 swipe_threshold: 75, 741 swipe_min_touches: 1, 742 swipe_direction: "vertical", 743 drag_block_vertical: false 744 } 745 }, 746 responsiveLevels:[1240,1024,778,480], 747 visibilityLevels:[1240,1024,778,480], 748 gridwidth:[1240,1024,778,480], 749 gridheight:[868,768,960,720], 750 lazyType:"none", 751 shadow:0, 752 spinner:"off", 753 stopLoop:"on", 754 stopAfterLoops:0, 755 stopAtSlide:1, 756 shuffle:"off", 757 autoHeight:"off", 758 fullScreenAutoWidth:"off", 759 fullScreenAlignForce:"off", 760 fullScreenOffsetContainer: ".header", 761 fullScreenOffset: "", 762 disableProgressBar:"on", 763 hideThumbsOnMobile:"off", 764 hideSliderAtLimit:0, 765 hideCaptionAtLimit:0, 766 hideAllCaptionAtLilmit:0, 767 debugMode:false, 768 fallbacks: { 769 simplifyAll:"off", 770 nextSlideOnWindowFocus:"off", 771 disableFocusListener:false, 772 } 773 }); 774 775 776 777}); 778
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.