Current Path : /var/www/axolotl/data/www/arhangelsk.axolotls.ru/bitrix/js/landing/ |
Current File : /var/www/axolotl/data/www/arhangelsk.axolotls.ru/bitrix/js/landing/public.min.js |
(function(){"use strict";BX(function(){if(typeof BX.Landing==="undefined"||typeof BX.Landing.Main==="undefined"){BX.namespace("BX.Landing");BX.Landing.getMode=function(){return window.top===window?"view":"design"};var e=[].slice.call(document.getElementsByClassName("block-wrapper"));if(!!e&&e.length){e.forEach(function(e){var n=new BX.Landing.Event.Block({block:e});BX.onCustomEvent("BX.Landing.Block:init",[n])})}if(BX.Landing.EventTracker){BX.Landing.EventTracker.getInstance().run()}var n=[].slice.call(document.querySelectorAll('[data-pseudo-url*="{"]'));if(n.length){n.forEach(function(e){var n=BX.Landing.Utils.data(e,"data-pseudo-url");if(n.href&&n.target!=="_popup"&&n.enabled){e.addEventListener("click",function(e){e.preventDefault();if(typeof BXMobileApp!=="undefined"){BXMobileApp.PageManager.loadPageBlank({url:n.href,cache:false,bx24ModernStyle:true})}else{if(window.top===window){if(n.query){n.href+=n.href.indexOf("?")===-1?"?":"&";n.href+=n.query}top.open(n.href,n.target)}}})}})}if(typeof BXMobileApp!=="undefined"){var t=[].slice.call(document.querySelectorAll("a"));if(t.length){t.forEach(function(e){if(e.href){e.addEventListener("click",function(n){n.preventDefault();BXMobileApp.PageManager.loadPageBlank({url:e.href,cache:false,bx24ModernStyle:true})})}})}}var a=[].slice.call(document.querySelectorAll("[data-stop-propagation]"));if(a.length){a.forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation()})})}var o=[].slice.call(document.querySelectorAll('a[href*="#"]'));if(!!o&&o.length){o.forEach(function(e){if(e.getAttribute("href")!=="#"&&e.pathname===document.location.pathname&&e.hostname===document.location.hostname){var n=document.querySelector(e.hash);if(n){e.addEventListener("click",function(e){e.preventDefault();window.scrollTo({top:n.offsetTop,behavior:"smooth"})})}}})}}})})(); //# sourceMappingURL=public.map.js