Your IP : 172.70.178.33


Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/js/landing/
Upload File :
Current File : /var/www/element/data/www/revenuestory.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");const t=[].slice.call(document.getElementsByClassName("block-wrapper"));if(!!t&&t.length){t.forEach((function(e){var t=new BX.Landing.Event.Block({block:e});BX.onCustomEvent("BX.Landing.Block:init",[t])}))}if(BX.Landing.EventTracker){BX.Landing.EventTracker.getInstance().run()}const n=[].slice.call(document.querySelectorAll('[data-pseudo-url*="{"]'));if(n.length){n.forEach((e=>{const t=BX.Landing.Utils.data(e,"data-pseudo-url");if(t.href&&t.enabled){if(t.target==="_self"||t.target==="_blank"){e.addEventListener("click",(e=>{e.preventDefault();let n;try{n=new URL(t.href)}catch(e){n=null}if(n&&n.hostname===window.location.host&&n.pathname!==window.location.pathname&&n.searchParams.get("IFRAME")!=="Y"){BX.addClass(document.body,"landing-page-transition");n.searchParams.append("transition",true);t.href=n.href;setTimeout((()=>{d(t,e)}),400);setTimeout((()=>{BX.removeClass(document.body,"landing-page-transition")}),3e3)}else{d(t,e)}}))}const n=e.getElementsByTagName("a");if(n.length>0){[].slice.call(n).map((function(e){r(e)}))}if(BX.hasClass(e,"g-bg-cover")){const t=e.firstElementChild;if(t){r(t)}}}}))}const a=[].slice.call(document.querySelectorAll("[data-stop-propagation]"));if(a.length){a.forEach((function(e){r(e)}))}if(typeof BXMobileApp!=="undefined"){var e=[].slice.call(document.querySelectorAll("a"));if(e.length){e.forEach((function(e){if(e.href){e.addEventListener("click",(function(t){t.preventDefault();BXMobileApp.PageManager.loadPageBlank({url:e.href,cache:false,bx24ModernStyle:true})}))}}))}}const o=[].slice.call(document.querySelectorAll('a[href*="#"]'));if(!!o&&o.length){o.forEach((e=>{const t=e.getAttribute("href");if(e.target==="_self"&&l(t)){e.addEventListener("click",f)}}))}const i=[].slice.call(document.querySelectorAll("a"));i.forEach((function(e){const t=e.getAttribute("href");if(e.target==="_self"&&!l(t)){e.addEventListener("click",(t=>{const n=new URL(e.href);if(n.hostname===window.location.host&&n.pathname!==window.location.pathname&&n.searchParams.get("IFRAME")!=="Y"){t.preventDefault();n.searchParams.append("transition",true);BX.addClass(document.body,"landing-page-transition");setTimeout((()=>{top.open(n.href,e.target)}),400);setTimeout((()=>{BX.removeClass(document.body,"landing-page-transition")}),3e3)}}))}}));function r(e){e.addEventListener("click",(function(e){e.stopPropagation()}))}function l(e){if(e!==null){if(e==="#"||e.startsWith("#/")){return false}}const t=new URL(e,document.location);return t.hash!==""&&t.pathname===document.location.pathname&&t.hostname===document.location.hostname}let c=0;const s=document.querySelector(".u-header.u-header--sticky");if(!!s){const u=s.querySelector(".navbar");if(!!u){const h=BX.findParent(u,{class:"u-header__section"});c=!!h?h.offsetHeight:u.offsetHeight}}if(c&&l(document.URL)){document.addEventListener("DOMContentLoaded",(()=>{if(window.pageYOffset>0){window.scrollTo({top:window.pageYOffset-c})}}))}function f(e){try{e.preventDefault();let t=null;let n=null;const a=e.currentTarget;if(a.tagName==="A"){t=a.hash;n=a.href}else if(a.hasAttribute("data-pseudo-url")){const e=BX.Landing.Utils.data(a,"data-pseudo-url");const o=new URL(e.href);t=o.hash;n=o.href}if(!t||!n){return}const o=document.querySelector(t);window.scrollTo({top:o.offsetTop-c,behavior:"smooth"});a.blur();history.pushState({},"",n)}catch(e){}}function d(e,t){if(typeof BXMobileApp!=="undefined"){BXMobileApp.PageManager.loadPageBlank({url:e.href,cache:false,bx24ModernStyle:true})}else{if(e.target==="_self"&&l(e.href)){f(t)}else if(document.location.href.indexOf("IFRAME=Y")===-1){if(e.query){e.href+=e.href.indexOf("?")===-1?"?":"&";e.href+=e.query}top.open(e.href,e.target)}}}}}))})();
//# sourceMappingURL=public.map.js