1 |
- function getData(e){try{return JSON.parse($('script[type="text/json"]#'+e).eq(0).text())}catch(e){return null}}!function(e){"use strict";e("input[type='tel']").inputmask({mask:"+7 (999) 999-99-99"}),e('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var i=e(this.hash);if((i=i.length?i:e("[name="+this.hash.slice(1)+"]")).length)return e("html, body").animate({scrollTop:i.offset().top},1e3,"easeInOutExpo"),!1}}),e(".js-scroll-trigger").click(function(){e(".navbar-collapse").collapse("hide")});var i=function(){e("#sidebar").removeClass("active"),e("body").removeClass("overlayed")};if(e("#sidebar .btn-close, .sidebar-overlay").on("click",function(){return i(),!1}),e("[data-action=show-menu]").on("click",function(){return e("#sidebar").addClass("active"),e("body").addClass("overlayed"),!1}),e(".grid-services").length){var o=e(".grid-services").isotope({});e(".grid-services-filter").on("click","button",function(){e(".grid-services-filter .btn").removeClass("active");var i=e(this).attr("data-filter");o.isotope({filter:i}),e(this).addClass("active")})}if(e(".grid-gallery").length){var s=e(".grid-gallery").isotope({}),l=function(i,o){var l=s.data("isotope");if(s.find(".gallery-hidden").removeClass("gallery-hidden"),l.filteredItems.length>i?e("[data-action=more-gallery]").show():e("[data-action=more-gallery]").hide(),!o&&i>0){var t=l.filteredItems.slice(i,l.filteredItems.length).map(function(e){return e.element});e(t).addClass("gallery-hidden")}else e("[data-action=more-gallery]").hide();s.isotope("layout")};e(".grid-gallery-filter").on("click","button",function(){e(".grid-gallery-filter .btn").removeClass("active");var i=e(this).attr("data-filter");s.isotope({filter:i}),e(this).addClass("active"),l(9,!1)}),l(9,!1)}e("[data-action=more-gallery]").on("click",function(){return l(0,!0),!1}),e("input[name=calculation]").on("change",function(){var i=e(this).closest("form").find("input[name=email]");e(this).is(":checked")?(i.attr("required",!0),i.prop("required",!0)):(i.attr("required",!1),i.prop("required",!1))}),e("input[name=privacy]").on("change",function(){var i=e(this).closest("form").find("button[type=submit]");console.log(i),e(this).is(":checked")?(i.attr("disabled",!1),i.prop("disabled",!1),i.removeClass("disabled")):(i.attr("disabled",!0),i.prop("disabled",!0),i.addClass("disabled"))}),e("body").on("click",'a[href="#popup-order"]',function(o){var s=e(this).data("mark"),l=e(this).data("pagepart");return e.magnificPopup.open({items:{src:e("#popup-order")},type:"inline",closeOnContentClick:!1,callbacks:{beforeOpen:function(){i()},open:function(){e("#popup-order div.mark").text(s),e("#popup-order input[name=mark]").val(s),e("#popup-order input[name=current_page_part]").val(l)},close:function(){}}}),!1}),e("body").on("click",'a[href="#popup-order2"]',function(o){var s=e(this).data("mark"),l=e(this).data("pagepart");return e.magnificPopup.open({items:{src:e("#popup-order2")},type:"inline",closeOnContentClick:!1,callbacks:{beforeOpen:function(){i()},open:function(){e("#popup-order2 div.mark").text(s),e("#popup-order2 input[name=mark]").val(s),e("#popup-order2 input[name=current_page_part]").val(l)},close:function(){}}}),!1}),e("input[name='tel']").on("keyup",function(){e(this).attr("maxlength");var i=e(this).val();i=i.replace(/\D/g,""),e(this).val(i)}),e(".slider").length&&e(".slider").not(".slick-initialized").slick({nav:!0,dots:!0,infinite:!1,speed:800}),e(".video-carousel").length&&e(".video-carousel").slick({slidesToShow:1,slidesToScroll:1,arrows:!0,centerMode:!0,speed:800,dots:!0,infinite:!0,centerPadding:"450px",responsive:[{breakpoint:2500,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"450px"}},{breakpoint:1600,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"250px"}},{breakpoint:959,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"150px"}},{breakpoint:767,settings:{arrows:!1,slidesToShow:1,slidesToScroll:1,centerPadding:""}}]}),e(".video-carousel-v2").length&&e(".video-carousel-v2").slick({slidesToShow:5,slidesToScroll:2,arrows:!0,speed:800,dots:!0,infinite:!0,responsive:[{breakpoint:2500,settings:{slidesToShow:5,slidesToScroll:2,centerPadding:"75px"}},{breakpoint:1600,settings:{slidesToShow:4,slidesToScroll:2,centerPadding:"50px"}},{breakpoint:959,settings:{arrows:!1,slidesToShow:3,slidesToScroll:1,centerPadding:"30px"}},{breakpoint:767,settings:{arrows:!1,slidesToShow:1,slidesToScroll:1,centerPadding:""}}]}),e("body").on("click","[data-youtube-id]",function(i){var o=e(this).data("youtube-id");if(!o)return!1;var s="http://www.youtube.com/watch?v="+o;return console.log(s),e.magnificPopup.open({items:{src:s,type:"iframe"},callbacks:{open:function(){},close:function(){}}}),!1}),e(".team-carousel").length&&e(".team-carousel").not(".slick-initialized").slick({accessibility:!1,slidesToShow:4,slidesToScroll:1,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:959,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".clients-carousel").length&&e(".clients-carousel").not(".slick-initialized").slick({accessibility:!1,slidesToShow:5,slidesToScroll:2,arrows:!0,dots:!1,infinite:!1,centerPadding:"100px",responsive:[{breakpoint:959,settings:{slidesToShow:3,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".clients-mobile-carousel").length&&e(".clients-mobile-carousel").not(".slick-initialized").slick({accessibility:!1,slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!1,centerPadding:"100px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".reviews-carousel").length&&e(".reviews-carousel").not(".slick-initialized").slick({accessibility:!1,lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".counters-carousel").length&&e(".counters-carousel").not(".slick-initialized").slick({accessibility:!1,lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".priceblocks-carousel").length&&e(".priceblocks-carousel").not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".photogallery-grid-carousel").length&&e(".photogallery-grid-carousel").not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".benefits-carousel").length&&e(".benefits-carousel").not(".slick-initialized").slick({accessibility:!1,lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".offers-carousel").length&&e(".offers-carousel").not(".slick-initialized").slick({accessibility:!1,lazyLoad:"ondemand",slidesToShow:4,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:959,settings:{slidesToShow:3,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".pubs-carousel").length&&e(".pubs-carousel").not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!0,infinite:!1,centerPadding:"80px",responsive:[{breakpoint:2500,settings:"unslick"},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]}),e(".gallery-wrapper").length&&e(".gallery-wrapper").lightGallery({selector:".fancybox",thumbnail:!1}),e(".photogallery-carousel").length&&(e(".photogallery-carousel").on("init",function(i,o){e(".photogallery-carousel-count>span").html("<strong>"+parseInt(o.currentSlide+1)+"</strong> из <strong>"+o.slideCount+"</strong>")}),e(".photogallery-carousel").not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!1,draggable:!1,swipe:!1,touchMove:!1,nextArrow:".photogallery-next",prevArrow:".photogallery-prev"}).on("beforeChange",function(i,o,s){e(".photogallery-carousel-count>span").html("<strong>"+parseInt(o.currentSlide+1)+"</strong> из <strong>"+o.slideCount+"</strong>")}).on("afterChange",function(i,o,s){e(".photogallery-carousel-count>span").html("<strong>"+parseInt(o.currentSlide+1)+"</strong> из <strong>"+o.slideCount+"</strong>")})),e(".photogallery-images-nav").length&&e(".photogallery-images-nav").each(function(){var i=e(this),o=i.data("id");i.not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:5,slidesToScroll:1,arrows:!1,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-images-"+o,responsive:[{breakpoint:959,settings:{asNavFor:null,slidesToShow:5,slidesToScroll:1}},{breakpoint:767,settings:{asNavFor:null,slidesToShow:4,slidesToScroll:1}},{breakpoint:459,settings:{asNavFor:null,slidesToShow:3,slidesToScroll:1}}]})}),e(".photogallery-images").length&&e(".photogallery-images").each(function(){var i=e(this),o=i.data("id");i.not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!1,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-images-nav-"+o})}),e("body").on("click",".photogallery-images-nav .slick-slide",function(i){i.preventDefault();var o=e(this).data("id"),s=e(this).data("slick-index");e(".photogallery-images#photogallery-images-"+o).slick("slickGoTo",s)}),e(".photogallery-images-large-nav").length&&e(".photogallery-images-large-nav").each(function(){var i=e(this),o=i.data("id");i.not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:8,slidesToScroll:1,arrows:!1,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-images-large-"+o,responsive:[{breakpoint:959,settings:{asNavFor:null,slidesToShow:8,slidesToScroll:1}},{breakpoint:767,settings:{asNavFor:null,slidesToShow:6,slidesToScroll:1}},{breakpoint:459,settings:{asNavFor:null,slidesToShow:3,slidesToScroll:1}}]})}),e(".photogallery-images-large").length&&e(".photogallery-images-large").each(function(){var i=e(this),o=i.data("id");i.not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!0,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-images-large-nav-"+o})}),e("body").on("click",".photogallery-images-large-nav .slick-slide",function(i){i.preventDefault();var o=e(this).data("id"),s=e(this).data("slick-index");e(".photogallery-images-large#photogallery-images-large-"+o).slick("slickGoTo",s)}),e("body").on("click","[data-action=more-reviews]",function(i){return i.preventDefault(),e(this).parent().hide(),e(".review-hidden").removeClass("d-sm-none").slideDown("slow"),!1}),e("body").on("click","[data-action=toggle-map]",function(i){i.preventDefault();var o=e(this).data("mapid");return e("[data-action=toggle-map]").removeClass("active"),e(".map-obj").removeClass("active"),e(".map-obj#bar-map-"+o).addClass("active"),e(this).addClass("active"),!1}),e("body").on("click",'a[href="#popup-service-content"]',function(i){return e.magnificPopup.open({items:{src:e("#popup-service-content")},type:"inline",closeOnContentClick:!1,callbacks:{open:function(){},close:function(){}}}),!1}),screen.width>991&&e(".counterUp").counterUp({delay:10,time:1e3}),screen.width<575&&e(".review-hidden").removeClass("d-sm-none"),e(".photogallery-images").lightGallery({selector:".photogallery-medium",thumbnail:!0,share:!1,autoplay:!1,exThumbImage:"data-exthumbimage"}),e(".photogallery-images-large").lightGallery({selector:".photogallery-medium",thumbnail:!0,share:!1,autoplay:!1,exThumbImage:"data-exthumbimage"}),e("[data-open-gallery]").on("click",function(){var i=getData(e(this).data("open-gallery"));return e(this).lightGallery({share:!1,autoplay:!1,thumbnail:!0,dynamic:!0,dynamicEl:i}),!1}),e("[data-sort-carousel]").on("click",function(){var i=e(this).data("sort-carousel"),o=e(this).data("sort-by");return e("[data-sort-carousel='"+i+"']").removeClass("active"),e(this).addClass("active"),e(i).slick("slickUnfilter"),e(i).slick("slickFilter",o),!1}),e(".collapse").on("shown.bs.collapse",function(){var i=e(this).find(".slick-slider");i.length&&e.each(i,function(i,o){e(o)[0].slick.refresh()})}),e("[data-gallery-popup]").on("click",function(){var i=e(this).data("gallery-popup"),o="popup-gallery-"+i;return e("#"+o).length||(e("body").prepend('<div class="popup zoom-in-popup mfp-hide popup-photogallery" style="width:800px;" id="'+o+'"><div class="popup-content"></div></div>'),e.get(ajax_url,{action:"gallery_ajax",gallery_id:i},function(s){var l=s;e.magnificPopup.open({items:{src:e("#"+o)},type:"inline",closeOnContentClick:!1,callbacks:{beforeOpen:function(){e("#"+o+" .popup-content").html(l)},open:function(){e("#photogallery-popup-"+i).not(".slick-initialized").slick({lazyLoad:"ondemand",slidesToShow:1,slidesToScroll:1,arrows:!0,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-popup-nav-"+i}),e("#photogallery-popup-nav-"+i).not(".slick-initialized").slick({slidesToShow:5,slidesToScroll:1,arrows:!1,nav:!1,dots:!1,infinite:!1,asNavFor:"#photogallery-popup-"+i,responsive:[{breakpoint:959,settings:{asNavFor:null,slidesToShow:4,slidesToScroll:1}},{breakpoint:767,settings:{asNavFor:null,slidesToShow:3,slidesToScroll:1}},{breakpoint:459,settings:{asNavFor:null,slidesToShow:2,slidesToScroll:1}}]})},close:function(){e("#"+o).remove()}}})})),e("body").on("click","#photogallery-popup-nav-"+i+" .slick-slide",function(o){o.preventDefault();var s=e(this).data("slick-index");e("#photogallery-popup-"+i).slick("slickGoTo",s)}),!1}),e("[data-action=application-next]").length&&e("[data-action=application-next]").click(function(){var i=e(this).data("current");i=parseInt(i);var o=e(this).data("next");o=parseInt(o);var s=e("#application-step-"+i),l=e("#application-step-"+o);return s.length&&s.removeClass("animate animated zoomIn zoomOut").addClass("animate animated faster fadeIn").hide(),l.length&&l.removeClass("animate animated zoomIn zoomOut").addClass("animate animated faster fadeIn").show(),!1})}(jQuery),new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0}).init();
|