! function (e) { e(function () { e('.header-menu a[href="proxy.php?url=#"]').on("click", function (e) { e.preventDefault() }); var t = e(".main-header"); if (t.length) new Waypoint.Sticky({ element: t[0], stuckClass: "sticking", offset: -1 }); e(window).on("scroll", function () { // e(".main-header").hasClass("sticking") ? e(".main-header").addClass("fadeInDown animated") : e(".main-header").removeClass("fadeInDown animated") }), e("form").parsley(); var a = e(".main-banner"); a.on("click", ".goDown", function () { var t = a.next(); t.length && e("html, body").animate({ scrollTop: t.offset().top - 50 }, 500) }), e(".comment-content > a").on("click", function () { var t = e(".comment-form"); t.length && (e("html, body").animate({ scrollTop: t.offset().top - 120 }, 500), t.find("textarea").focus()) }), e(".single-post.post-style--2").on("mouseover", function () { e(this).find(".post-hover a").addClass("animated fadeInUp") }), e(".single-post.post-style--2").on("mouseleave", function () { e(".post-hover a").removeClass("animated fadeInUp") }); new Swiper(".review-slider", { slidesPerView: 3, spaceBetween: 30, autoplay: { delay: 5e3, disableOnInteraction: !0 }, pagination: { el: ".review-pagination", clickable: !0 }, breakpoints: { 575: { slidesPerView: 1 }, 991: { slidesPerView: 2 } } }), new Swiper(".review-slider--2", { slidesPerView: 1, loop: !0, spaceBetween: 10, autoplay: { delay: 5e3, disableOnInteraction: !0 }, navigation: { prevEl: ".prev-review", nextEl: ".next-review" } }), new Swiper(".review-slider--3", { slidesPerView: 1, loop: !0, autoplay: { delay: 5e3, disableOnInteraction: !0 }, navigation: { prevEl: ".prev-review", nextEl: ".next-review" } }); var o = e(".open-popup-link"); o.length && o.magnificPopup({ type: "inline", midClick: true }); var n = e(".back-to-top"); if (n.length) { var i = function () { e(window).scrollTop() > 400 ? n.addClass("show") : n.removeClass("show") }; i(), e(window).on("scroll", function () { i() }), n.on("click", function (t) { t.preventDefault(), e("html,body").animate({ scrollTop: 0 }, 700) }) } var r = e("a.back-top--2, a.back-top--3"); e(window).on("scroll", function () { e(window).scrollTop() > 650 ? r.addClass("back-top-visible") : r.removeClass("back-top-visible") }), r.on("click", function () { return e("html, body").animate({ scrollTop: 0 }, 700), !1 }); var l = e(".happy-counter li"); if (l.length) { var s = 0; e(window).scroll(function () { var t = l.offset().top - window.innerHeight; 0 == s && e(window).scrollTop() > t && (e("[data-count]").each(function () { var t = e(this), a = t.attr("data-count"); e({ countNum: t.text() }).animate({ countNum: a }, { duration: 2e3, easing: "swing", step: function () { t.text(Math.floor(this.countNum)) }, complete: function () { t.text(this.countNum) } }) }), s = 1) }).scroll() } var f, c = e('[data-trigger="map"]'); if (c.length) { f = c.data("map-options"), window.initMap = function () { c.css("min-height", "410px"), c.each(function () { var t, a, o, n, i = e(this); f = i.data("map-options"), a = parseFloat(f.latitude, 10), o = parseFloat(f.longitude, 10), n = parseFloat(f.zoom, 10), t = new google.maps.Map(i[0], { center: { lat: a, lng: o }, zoom: n, scrollwheel: !1, disableDefaultUI: !0, zoomControl: !0, styles: [{ featureType: "water", elementType: "geometry", stylers: [{ color: "#e9e9e9" }, { lightness: 17 }] }, { featureType: "landscape", elementType: "geometry", stylers: [{ color: "#f5f5f5" }, { lightness: 20 }] }, { featureType: "road.highway", elementType: "geometry.fill", stylers: [{ color: "#ffffff" }, { lightness: 17 }] }, { featureType: "road.highway", elementType: "geometry.stroke", stylers: [{ color: "#ffffff" }, { lightness: 29 }, { weight: .2 }] }, { featureType: "road.arterial", elementType: "geometry", stylers: [{ color: "#ffffff" }, { lightness: 18 }] }, { featureType: "road.local", elementType: "geometry", stylers: [{ color: "#ffffff" }, { lightness: 16 }] }, { featureType: "poi", elementType: "geometry", stylers: [{ color: "#f5f5f5" }, { lightness: 21 }] }, { featureType: "poi.park", elementType: "geometry", stylers: [{ color: "#dedede" }, { lightness: 21 }] }, { elementType: "labels.text.stroke", stylers: [{ visibility: "on" }, { color: "#ffffff" }, { lightness: 16 }] }, { elementType: "labels.text.fill", stylers: [{ saturation: 36 }, { color: "#333333" }, { lightness: 40 }] }, { elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "transit", elementType: "geometry", stylers: [{ color: "#f2f2f2" }, { lightness: 19 }] }, { featureType: "administrative", elementType: "geometry.fill", stylers: [{ color: "#fefefe" }, { lightness: 20 }] }, { featureType: "administrative", elementType: "geometry.stroke", stylers: [{ color: "#fefefe" }, { lightness: 17 }, { weight: 1.2 }] }] }), t = new google.maps.Marker({ position: { lat: a, lng: o }, map: t, animation: google.maps.Animation.DROP, draggable: !0, icon: "img/marker.png" }) }) }; var p = document.createElement("script"); p.type = "text/javascript", p.src = "https://maps.googleapis.com/maps/api/js?key=" + f.api_key + "&callback=initMap", e("body").append(p) } jQuery("img.svg").each(function () { var e = jQuery(this), t = e.attr("id"), a = e.attr("class"), o = e.attr("src"); jQuery.get(o, function (o) { var n = jQuery(o).find("svg"); void 0 !== t && (n = n.attr("id", t)), void 0 !== a && (n = n.attr("class", a + " replaced-svg")), !(n = n.removeAttr("xmlns:a")).attr("viewBox") && n.attr("height") && n.attr("width") && n.attr("viewBox", "0 0 " + n.attr("height") + " " + n.attr("width")), e.replaceWith(n) }, "xml") }) }), e(window).on("load", function () { setTimeout(function () { e(".preLoader").fadeOut() }, 250) }), e(window).on("load", function () { e("[data-animate]").each(function () { var t = e(this), a = t.data("animate"), o = t.data("duration"), n = t.data("delay"); o = void 0 === o ? "0.6" : o, n = void 0 === n ? "0" : n, t.waypoint(function () { t.addClass("animated " + a).css({ "animation-duration": o + "s", "animation-delay": n + "s" }) }, { offset: "93%" }) }) }), e("[data-bg-img]").css("background-image", function () { return "url(" + e(this).data("bg-img") + ")" }), e(window).width() <= 991 && e(".mega-menu").prependTo(".mega-drop-down > ul > li"); var t = document.getElementById("c"); if (t) { var a = t.getContext("2d"); t.height = window.innerHeight, t.width = window.innerWidth; var o = "01"; o = o.split(""); for (var n = 10, i = t.width / n, r = [], l = 0; l < i; l++) r[l] = 1; setInterval(function () { a.fillStyle = "rgba(23,100,227, .2)", a.fillRect(0, 0, t.width, t.height), a.fillStyle = "rgba(255,255,255,.3)", a.font = n + "px arial"; for (var e = 0; e < r.length; e++) { var i = o[Math.floor(Math.random() * o.length)]; a.fillText(i, e * n, r[e] * n), r[e] * n > t.height && Math.random() > .975 && (r[e] = 0), r[e]++ } }, 33) } e(".footer-form form, .contact-form form").on("submit", function (t) { t.preventDefault(); var a = e(this); e.post(a.attr("action"), a.serialize(), function (e) { var t = JSON.parse(e); console.log(e); a.parent(".footer-form, .contact-form").find(".form-response").html("" + t[1] + "") }) }) $('.footer-form form').submit(function(){ $(this).find(':input[type=submit]').prop('disabled', true).val('Message Sent!'); }); }(jQuery);