var $search, $searchInput, $menu, $navigation, $map, $mapToggler, $slider, $slideIndex, $sliderCycle, $searchInterval, $searchResult, $lang, $slideCount; function sliderCycle() { clearTimeout($sliderCycle), setSlider(), ($sliderCycle = setTimeout(function () { nextSlide(); }, 11000)); } function nextSlide() { ++$slideIndex >= $slideCount && ($slideIndex = 0), sliderCycle(); } function prevSlide() { --$slideIndex < 0 && ($slideIndex = $slideCount - 1), sliderCycle(); } function setSlider(e) { void 0 !== e && (sliderCycle(), ($slideIndex = e)); var t = $slider.find(".slide-info").removeClass("active").eq($slideIndex).addClass("active"); if ($(window).width() < 960) { $slider.find(".slide-indicator").removeClass("active").eq($slideIndex).addClass("active"), $slider.find(".slide-photo").css( "background", 'url("' + t.data("image") + '")'); } else { $slider.find(".slide-indicator").removeClass("active").eq($slideIndex).addClass("active"), $slider.find(".slide-photo").css( "background", 'url("' + t.data("webp") + '")'); } } function showMap() { $map.toggleClass("show-map"), $mapToggler.toggleClass("see-map"); } function toggleSearch() { $search.toggleClass("active"); } function openSearch() { $search.addClass("active"); } function toggleMenu() { $menu.toggleClass("show-menu"); } function initMap() { var e = { zoom: 16, center: new google.maps.LatLng(41.710959, 44.741432), styles: [ { featureType: "all", elementType: "labels.text.fill", stylers: [{ saturation: 36 }, { color: "#333333" }, { lightness: 40 }] }, { featureType: "all", elementType: "labels.text.stroke", stylers: [{ visibility: "on" }, { color: "#ffffff" }, { lightness: 16 }] }, { featureType: "all", elementType: "labels.icon", stylers: [{ visibility: "off" }] }, { featureType: "administrative", elementType: "geometry.fill", stylers: [{ color: "#fefefe" }, { lightness: 20 }] }, { featureType: "administrative", elementType: "geometry.stroke", stylers: [{ color: "#fefefe" }, { lightness: 17 }, { weight: 1.2 }] }, { featureType: "administrative", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "administrative.province", elementType: "labels.text.fill", stylers: [{ color: "#eeeeee" }] }, { featureType: "administrative.locality", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "administrative.neighborhood", elementType: "labels.text.fill", stylers: [{ color: "#a3a3a3" }] }, { featureType: "administrative.land_parcel", elementType: "labels.text.fill", stylers: [{ color: "#a3a3a3" }] }, { featureType: "landscape", elementType: "geometry", stylers: [{ color: "#f5f5f5" }, { lightness: 20 }] }, { featureType: "landscape", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "poi", elementType: "geometry", stylers: [{ color: "#dddddd" }, { lightness: 21 }] }, { featureType: "poi", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "poi.park", elementType: "geometry", stylers: [{ color: "#eeeeee" }, { lightness: 21 }] }, { featureType: "poi.school", elementType: "labels.text", stylers: [{ weight: "0.68" }, { visibility: "on" }, { color: "#ff0000" }] }, { featureType: "poi.school", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }, { weight: "0.92" }, { visibility: "simplified" }] }, { featureType: "road.highway", elementType: "geometry.fill", stylers: [{ color: "#dddddd" }, { lightness: 17 }] }, { featureType: "road.highway", elementType: "geometry.stroke", stylers: [{ color: "#dddddd" }, { lightness: 29 }, { weight: 0.2 }] }, { featureType: "road.highway", elementType: "labels.text", stylers: [{ color: "#cd282b" }] }, { featureType: "road.arterial", elementType: "geometry", stylers: [{ color: "#dddddd" }, { lightness: 18 }] }, { featureType: "road.arterial", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "road.local", elementType: "geometry", stylers: [{ color: "#eeeeee" }, { lightness: 16 }] }, { featureType: "road.local", elementType: "geometry.stroke", stylers: [{ color: "#cd282b" }] }, { featureType: "road.local", elementType: "labels.text", stylers: [{ hue: "#ff0000" }] }, { featureType: "road.local", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "road.local", elementType: "labels.text.stroke", stylers: [{ visibility: "on" }] }, { featureType: "transit", elementType: "geometry", stylers: [{ color: "#f2f2f2" }, { lightness: 19 }] }, { featureType: "transit", elementType: "labels.text.fill", stylers: [{ color: "#cd282b" }] }, { featureType: "water", elementType: "geometry", stylers: [{ color: "#eeeeee" }, { lightness: 17 }] }, ], }, t = document.getElementById("map"), l = new google.maps.Map(t, e); new google.maps.Marker({ position: new google.maps.LatLng(41.710959, 44.741432), map: l, title: "Snazzy!" }); } !(function (e) { "use strict"; e("#icon").click(function () { e("#icon span").toggleClass("open"); }), e(".thumb").each(function () { var t = e(this).attr("data-image-src"); void 0 !== t && !1 !== t && e(this).css("background-image", "url(" + t + ")"); }), e(window).scroll(function () { e(window).scrollTop() >= 50 ? e(".hostings-title").addClass("fixed") : e(".hostings-title").removeClass("fixed"); }), e(".nav2").each(function () { var t = e(".nav2 li a"); t.click(function (t) { e("body,html").animate({ scrollTop: e(this.hash).offset().top }); }), e(window).scroll(function () { var l = e(this).scrollTop(); t.each(function () { e(this.hash).offset().top - 20 <= l && (e(this).parent().addClass("active"), e(this).parent().siblings().removeClass("active")); }); }); }), e(".dropdown i").click(function () { e(this).parent().next("ul").toggle(); }), e(".show-menu").click(function () { e(".mobnav").toggle(); }); new Swiper(".partners", { slidesPerView: 5, spaceBetween: 10, autoplay: !0, pagination: { el: ".swiper-pagination", clickable: !0 }, breakpoints: { 640: { slidesPerView: 2, spaceBetween: 20 }, 768: { slidesPerView: 4, spaceBetween: 40 }, 1024: { slidesPerView: 5, spaceBetween: 50 } }, }); e(".bot").on("click", function (t) { e(this).find("i").addClass("icofont-check"), e(this).find("p").addClass("chk"), e(this).find("i").removeClass("icofont-circle"), e(".bot").css("pointer-events", "none"), e(".alert").addClass("hidden"), e("form.callback").append(""), setTimeout(function () { e(".bot").animate({ opacity: "0.2" }, 500), this.trigger("reset"); }, 600); }), e("#icon").on("click", function () { e(this).toggleClass("is-active"), e("body").toggleClass("aside-open"); }); })(jQuery), $(function () { ($lang = $("body").data("lang")), ($slider = $(".slider-container")), ($search = $(".search")), ($searchInput = $search.find("input")), ($searchResult = $(".search-result").find("ul")), ($menu = $(".main-menu")), ($navigation = $(".main-menu-and-search")), ($map = $(".map")), ($mapToggler = $(".see-location")), ($slideIndex = 0), ($slideCount = $slider.find(".slide-info").length), $searchInput.on("keypress", function () { clearTimeout($searchInterval), ($searchInterval = setTimeout(function () { $searchResult.empty(), $.get("/" + $lang + "/article/search", { q: $searchInput.val() }, function (e) { $.each(e.data, function (e, t) { var l = $("