Skip to Content

JavaScript File

URL: https://karta-abhazii.ru/wp-content/themes/reboot/assets/js/scripts.min.js?ver=51a3950c5050
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Mon, 29 Dec 2025 11:42:26 GMT
Download Time: Less than a second
Cookies: None
Size: 54 KB
HTTP Headers:  7 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1!function(t){"function"==typeof define&&define.amd?define("scripts",t):t()}

2((function(){"use strict";function t(t,e,n){var o;if(n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toGMTString()}

3else o="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+o+"; path=/"}

4function e(t){return 0===t?"":t}

5window.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window.isSearchBot=/Bot/i.test(navigator.userAgent),window.addEventListener("DOMContentLoaded",(function(){window.isMobile&&document.body.classList.add("is-mobile")}

6)),jQuery((function(t){var e=t(window).width(),n=t(".js-scrolltop");n.on("click",(function(){return t("body,html").animate({scrollTop:0}

7,500)}

8)),t(window).on("scroll",(function(){t(this).scrollTop()>100?e<991?"on"===n.data("mob")&&n.fadeIn():n.fadeIn():n.fadeOut()}

9))}

10)),jQuery((function(t){t(document).on("click",".js-spoiler-box-title",(function(){t(this).toggleClass("active").next().slideToggle()}

11))}

12)),function(t,e,n){n&&(n.fn.wpshoplightbox=function(o){var i=n(this),a=n('<div class="wpshoplightbox-container" role="dialog" tabindex="-1"><div class="wpshoplightbox-bg"></div><div class="wpshoplightbox-inner"><div class="wpshoplightbox-close"><svg width="17" height="17" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M-1-1h19v19h-19z"/><path fill="#fff" d="M8.485 7.071l-7.071-7.071-1.414 1.414 7.071 7.071-7.071 7.071 1.414 1.414 7.071-7.071 7.071 7.071 1.414-1.414-7.071-7.071 7.071-7.071-1.414-1.414-7.071 7.071z"/></svg></div><div class="wpshoplightbox-body"><div class="wpshoplightbox-image"></div></div><div class="wpshoplightbox-caption"></div></div></div>');i.on("click",(function(){var o=n(this).attr("href"),i=e.createElement("img"),r=n(i);if(o.match(/(\.jpg|\.gif|\.jpeg|\.png|\.webp|\.svg)$/i))return r.attr("src",o),a.appendTo("body")[0],n("head").append('<style id="wpshoplightbox-scroll-style" type="text/css">.wpshoplightbox-scroll{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}

13</style>"),n("body").addClass("wpshoplightbox-scroll"),a.find(".wpshoplightbox-image").html(r),setTimeout((function(){a.addClass("wpshoplightbox--open")}

14),10),!1}

15)),n(e).on("click",".wpshoplightbox-body, .wpshoplightbox-close",(function(){n(e).find(".wpshoplightbox-container").removeClass("wpshoplightbox--open"),setTimeout((function(){n(e).find(".wpshoplightbox-container").remove()}

16),400),n("body").removeClass("wpshoplightbox-scroll"),n("#wpshoplightbox-scroll-style").remove()}

17))}

18)}

19(window,document,jQuery),jQuery((function(t){var e=window.wpshop_ajax||window.wps_ajax;void 0!==e?(t(document).on("click",".js-star-rating-item",(function(){var n=t(this),o=n.parent(),i=n.data("score"),a=o.data("post-id"),r=o.data("rating-count"),s=o.data("rating-sum"),c=o.data("rating-value");if(!o.hasClass("disabled")){o.addClass("disabled process");var l={action:"wpshop_star_rating_submit",nonce:e.nonce,post_id:a,score:i,rating_count:r,rating_sum:s,rating_value:c}

20;jQuery.post(e.url,l,(function(e){if(e.success){r++,c=((s+=i)/r).toFixed(2);var a="assessment",l=t("html").attr("lang");"undefined"!=typeof rating_count_text_filter?a=rating_count_text_filter:("ru-RU"===l&&(a=d(r,["оценка","оценки","оценок"])),"uk"===l&&(a=d(r,["оцінка","оцінки","оцінок"]))),n.parent().parent().find(".star-rating-text").html("<em>( <strong>"+r+"</strong> "+a+", "+settings_array.rating_text_average+" <strong>"+c+"</strong> "+settings_array.rating_text_from+" <strong>5</strong> )</em></div>")}

21else e.data,console.log(e);o.removeClass("process")}

22))}

23function d(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}

24}

25)),t(".js-star-rating-item").on({mouseenter:function(){t(this).parent().hasClass("disabled")||(t(this).parent().addClass("hover"),t(this).addClass("hover").prevAll().addClass("hover"))}

26,mouseleave:function(){t(this).parent().hasClass("disabled")||(t(this).parent().removeClass("hover"),t(".js-star-rating-item").removeClass("hover"))}

27}

28)):console.error("Unable to find ajax parameters for rating scrips")}

29)),jQuery(document).ready((function(t){function e(e){if(0!==e.length){var n=t(window).scrollTop(),o=n+t(window).height();if(t("body").is(":animated"))for(console.log("animated"),s=0;s<e.length;s++)e[s].curTopOffset<=n&&(console.log("body anim"),t(e[s]).removeClass("w-animate w-animate_no-hover"));!function(e,n){if(e.length)for(var o=0;o<e.length;o++){var a=i(t(e[o]),n);e[o].curTopOffset<a&&(t(e[o]).removeClass("w-animate--wait"),t(e[o]).addClass("w-animate--started"))}

30}

31(e,o)}

32}

33function n(){var n=t(".w-animate");function r(){!function(e){for(var n=0;n<e.length;n++)e[n].curTopOffset=t(e[n]).offset().top}

34(n)}

35!function(e){var n=t(window).scrollTop(),a=n+t(window).height();e.each((function(){var e=t(this),r=e.offset().top;r<n-450&&e.removeClass("w-animate w-animate_no-hover");var s=i(e,a);!function(t,e,n){var i=t.attr("data-animate-style"),a=t.attr("data-animate-distance");0!==a&&""!==a&&(void 0===a&&(a="40"),a=a.replace("px",""),t.css({"transition-duration":"0s","transition-delay":"0s"}

36),"fadeinup"===i&&t.css("transform","translate3d(0,"+a+"px,0)"),"fadeindown"===i&&t.css("transform","translate3d(0,-"+a+"px,0)"),"fadeinleft"===i&&t.css("transform","translate3d("+a+"px,0,0)"),"fadeinright"===i&&t.css("transform","translate3d(-"+a+"px,0,0)"),o(t,e,n),t.css({"transition-duration":"","transition-delay":""}

37));var r=t.attr("data-animate-scale");0!==r&&""!==r&&(t.css({"transition-duration":"0s","transition-delay":"0s"}

38),t.css("transform","scale("+r+")"),o(t,e,n),t.css({"transition-duration":"","transition-delay":""}

39));var s=t.attr("data-animate-delay");0!==s&&""!==s&&(void 0===s&&(s=Math.random()/4),t.css("transition-delay",s+"s"));var c=t.attr("data-animate-duration");void 0===c&&(c="1.5");0!==c&&""!==c&&t.css("transition-duration",c+"s")}

40(e,r,a),r<s&&(e.addClass("w-animate--started"),e.is('[data-animate-style="animatednumber"]')),r>=s&&e.addClass("w-animate--wait")}

...

</html>