2 lines
18 KiB
JavaScript
Executable File
2 lines
18 KiB
JavaScript
Executable File
function t_onReady(t){"loading"!=document.readyState?t():document.addEventListener("DOMContentLoaded",t)}function t_addClass(t,e){document.body.classList?t.classList.add(e):t.className+=(t.className?" ":"")+e}function t_removeClass(t,e){document.body.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function t_removeEl(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function t_outerWidth(t){var e=getComputedStyle(t),n=e.width,t=e.marginLeft,e=e.marginRight;return"auto"===n&&(n=0),"auto"===t&&(t=0),"auto"===e&&(e=0),n=parseInt(n)+parseInt(t)+parseInt(e)}var version;function t_throttle(i,o,a){var r,d;return o=o||250,function(){var t=a||this,e=+new Date,n=arguments;r&&e<r+o?(clearTimeout(d),d=setTimeout(function(){r=e,i.apply(t,n)},o)):(r=e,i.apply(t,n))}}function t_onFuncLoad(n,i,o){var a,r;"function"==typeof window[n]?i():(a=Date.now(),r=new Error(n+" is undefined"),setTimeout(function t(){var e=Date.now();"function"!=typeof window[n]?("complete"===document.readyState&&5e3<e-a&&"function"!=typeof window[n]&&function(){throw r}(),setTimeout(t,o||100)):i()}))}function t_scrollBarWidthCompensator__setObject(){window.scrollBarWidthCompensator={};var a=window.scrollBarWidthCompensator;a.isInited=!1,a.scrollBarWidth=Math.abs(window.innerWidth-document.documentElement.clientWidth),a.delay=0;var t=document.querySelectorAll("*");a.fixedElements=[],Array.prototype.forEach.call(t,function(t){var e,n,i,o;t.classList.contains("t975")||(n=(e=window.getComputedStyle(t)).getPropertyValue("position"),i=e.getPropertyValue("width"),o=e.getPropertyValue("height"),i="100%"===i||i===window.innerWidth+"px"||i===window.innerWidth-a.scrollBarWidth+"px"||"100vw"===i,o="100%"===o||o===window.innerHeight+"px"||o===window.innerHeight-a.scrollBarWidth+"px"||"auto"===o||"100vh"===o,("fixed"===n||"absolute"===n&&i&&!o)&&a.fixedElements.push({el:t,computedStyle:e}))})}function t_scrollBarWidthCompensator__init(){window.scrollBarWidthCompensator||t_scrollBarWidthCompensator__setObject();var t,e,r,d=window.scrollBarWidthCompensator;d.scrollBarWidth=Math.abs(window.innerWidth-document.documentElement.clientWidth),!d.isInited&&d.scrollBarWidth&&(d.isInited=!0,t=window.getComputedStyle(document.body).getPropertyValue("padding-right"),t=parseInt(t.replace("px",""),10),(e=document.body.style.paddingRight)&&document.body.setAttribute("data-tilda-initial-padding-right",e),document.body.style.paddingRight=d.scrollBarWidth+t+"px",document.body.style.height="100vh",document.body.style.minHeight="100vh",document.body.style.overflow="hidden",r=[],Array.prototype.forEach.call(d.fixedElements,function(t){var e,n,i,o,a=t.el;!document.body.contains(a)||a.classList.contains("t975")||a.classList.contains("t975")||("fixed"!==(e=(i=t.computedStyle).getPropertyValue("position"))&&"absolute"!==e||((o=i.getPropertyValue("transition-duration")).indexOf("ms")+1?(o=parseInt(o.replace("ms",""),10),r.push(o)):o.indexOf("s")+1&&(o=1e3*parseFloat(o.replace("s","")),r.push(o)),n=i.getPropertyValue("right"),n=parseInt(n.replace("px",""),10),t=i.getPropertyValue("width"),o=i.getPropertyValue("height"),(i=a.style.right)&&a.setAttribute("data-tilda-initial-right",i),(i=a.style.width)&&a.setAttribute("data-tilda-initial-width",i),t="100%"===t||t===window.innerWidth+"px"||t===window.innerWidth-d.scrollBarWidth+"px"||"100vw"===t,o="100%"===o||o===window.innerHeight+"px"||o===window.innerHeight-d.scrollBarWidth+"px"||"auto"===o||"100vh"===o,!n&&0!==n||"auto"===a.style.right||"absolute"===e||t?t&&!o&&(a.style.width="calc(100vw - "+d.scrollBarWidth+"px)"):a.style.right=d.scrollBarWidth+n+"px"))}),r.length&&(d.delay=Math.max.apply(null,r)))}function t_scrollBarWidthCompensator__cancel(){var t=window.scrollBarWidthCompensator;t&&t.isInited&&(t.isInited=!1,t.delay=0,document.body.hasAttribute("data-tilda-initial-padding-right")?(document.body.style.paddingRight=document.body.getAttribute("data-tilda-initial-padding-right"),document.body.removeAttribute("data-tilda-initial-padding-right")):document.body.style.removeProperty("padding-right"),document.body.style.removeProperty("height"),document.body.style.removeProperty("min-height"),document.body.style.removeProperty("overflow"),Array.prototype.forEach.call(t.fixedElements,function(t){t=t.el;t.hasAttribute("data-tilda-initial-right")?(t.style.right=t.getAttribute("data-tilda-initial-right"),t.removeAttribute("data-tilda-initial-right")):t.style.removeProperty("right"),t.hasAttribute("data-tilda-initial-width")?(t.style.width=t.getAttribute("data-tilda-initial-width"),t.removeAttribute("data-tilda-initial-width")):t.style.removeProperty("width")}))}window.isSearchBot=!1,/Bot/i.test(navigator.userAgent)&&(window.isSearchBot=!0),window.isMobile=!1,window.$isMobile=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(window.isMobile=!0,window.$isMobile=!0),window.isTablet=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(navigator.userAgent),window.isiOS=!1,/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(window.isiOS=!0),window.isiOSChrome=!!navigator.userAgent.match("CriOS"),window.isFirefox=/firefox/i.test(navigator.userAgent),window.isOpera=!!window.opr&&!!window.opr.addons||!!window.opera||0<=navigator.userAgent.indexOf(" OPR/"),window.isiOSVersion="",window.isiOS&&null!==(version=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&(window.isiOSVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]),window.isSafari=!1,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&(window.isSafari=!0),window.isIE=!!document.documentMode,window.isSafariVersion="",window.isSafari&&null!==(version=navigator.appVersion.match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/))&&(window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]),window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2),window.tildaBrowserLang=window.browserLang,t_onReady(function(){var t,e=document.getElementById("allrecords");e&&(t=e.getAttribute("data-tilda-project-lang")),t&&(window.browserLang=t)}),t_onReady(function(){var t=window.navigator.userAgent,e=-1!==t.indexOf("Instagram"),n=-1!==t.indexOf("FBAV"),i=-1!==t.indexOf("YaSearchBrowser"),o=-1!==t.indexOf("SamsungBrowser"),a=-1!==t.indexOf("DuckDuckGo");-1!==t.indexOf("Android")&&(n||e||i||o||a)&&((o=document.createElement("p")).style.lineHeight="100px",o.style.padding="0",o.style.margin="0",o.style.height="auto",o.style.position="absolute",o.style.opacity="0.001",o.innerText="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",document.body.appendChild(o),a=100/o.getBoundingClientRect().height,o.parentNode.removeChild(o),a<.98&&document.body.insertAdjacentHTML("beforeend",'<style>.t396 [data-elem-type="text"] .tn-atom {zoom: '+100*a+"%;}</style>")),window.isiOS&&!window.MSStream&&(document.body.style.setProperty("-webkit-text-size-adjust","100%"),document.body.style.setProperty("text-size-adjust","100%"))}),t_onReady(function(){setTimeout(function(){var t=document.querySelector("html"),e=document.querySelector(".t-tildalabel"),n=t.offsetHeight;if(document.body&&(n=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.body.clientHeight,t.offsetHeight)),(document.getElementById("tildacopy")||e)&&e.querySelectorAll("div"))n+70>window.innerHeight&&e&&e.setAttribute("style","display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 1 !important");else{for(var i=document.body.childNodes,o=[],a=0;a<i.length;a++){var r=i[a];8===r.nodeType&&o.push(r)}for(a=0;a<o.length;a++)-1!==o[a].nodeValue.indexOf("'t remove this l")&&document.getElementById("allrecords").insertAdjacentHTML("afterend",'<div class="t-tildalabel t-tildalabel-free" style="display: block !important; visibility: visible !important; position: relative !important; width: 100% !important; pointer-events: all !important; opacity: 1 !important; margin: 0 !important; z-index: 99900 !important"><div class="t-tildalabel-free__main"><a href="https://tilda.cc" target="_blank" style="padding-bottom:12px; display: block;"><img style="width:40px;" src="https://static.tildacdn.com/img/tildacopy.png"></a><div style="padding-bottom: 15px;">This site was made on <a href="https://tilda.cc" target="_blank" style="text-decoration: none; color:inherit;">Tilda — a website builder</a> that helps to create a website without any code</div><a href="https://tilda.cc/registration/" target="_blank" style="display: inline-block; padding: 10px 20px; font-size: 13px; border-radius: 50px; background-color: #fa8669; color: #fff; text-decoration: none;">Create a website</a></div><div class="t-tildalabel-free__links-wr"><a class="t-tildalabel-free__txt-link" href="https://help'+("RU"===window.browserLang?"-ru":"")+'.tilda.cc/white-label" target="_blank">'+("RU"===window.browserLang?"Как удалить этот лейбл":"How to remove this block")+"?</a></div></div>")}},500)}),t_onReady(function(){var t=document.getElementById("allrecords");if(!window.isMobile&&t&&"yes"!==t.getAttribute("data-blocks-animationoff")&&!1===window.isSearchBot){for(var e=document.querySelectorAll(".r"),n=0;n<e.length;n++){var i=(a=e[n]).getAttribute("style");i&&-1!==i.indexOf("background-color")&&a.setAttribute("data-animationappear","off")}for(var o=Array.prototype.slice.call(e).filter(function(t){return!t.getAttribute("data-animationappear")&&!t.getAttribute("data-screen-min")&&!t.getAttribute("data-screen-max")}),n=0;n<o.length;n++){var a,r=(a=o[n]).getBoundingClientRect().top+window.pageYOffset,d=window.pageYOffset+window.innerHeight+300;t_addClass(a,1e3<r&&d<r?"r_hidden":"r_showed"),t_addClass(a,"r_anim")}function l(){for(var t=o.length-1;0<=t;t--){var e=o[t];e.getBoundingClientRect().top+window.pageYOffset<(e.offsetHeight<=100?window.pageYOffset+window.innerHeight:window.pageYOffset+window.innerHeight-100)&&(t_removeClass(e,"r_hidden"),t_addClass(e,"r_showed"),(o=Array.prototype.slice.call(o)).splice(t,1))}}o.length&&(window.addEventListener("scroll",t_throttle(function(){l()},200)),setTimeout(function(){l()}))}var s=document.querySelector("html"),c=document.body;"none"===s.style.display&&(s.style.display="block");t=document.querySelector(".t-tildalabel"),s=c?Math.max(c.scrollHeight,c.offsetHeight,c.clientHeight,s.offsetHeight):s.offsetHeight;s+70<window.innerHeight?t&&(t.style.display="none"):t&&t.setAttribute("style","display: block !important")}),function(){function t(){window.winWidth=window.innerWidth,window.winHeight=window.innerHeight}function e(){var t,e,n,i=window.isMobile?document.documentElement.clientWidth:window.innerWidth,o=document.querySelectorAll(".r[data-screen-max], .r[data-screen-min]");-1!==navigator.userAgent.indexOf("Instagram")&&(i=screen.width);for(var a=0;a<o.length;a++){var r=o[a];if("yes"===r.getAttribute("data-connect-with-tab"))return;n=getComputedStyle(r).display,t=(t=r.getAttribute("data-screen-max"))||1e4,e=(e=r.getAttribute("data-screen-min"))||0,t=parseInt(t),(e=parseInt(e))<=t&&(i<=t&&e<i?"block"!==n&&(r.style.display="block"):"none"!==n&&(r.style.display="none"))}}t_onReady(function(){t(),e(),window.addEventListener("resize",t_throttle(function(){t()},200)),window.addEventListener("resize",t_throttle(function(){e()},200))})}(),function(){var h=-1!==navigator.userAgent.indexOf("Instagram");function t(){for(var t,e,n,i,o=document.querySelectorAll(".t-cover__carrier"),a=0,r=0;r<o.length;r++)-1<(l=(d=o[r]).style).height.indexOf("vh")&&(a=parseInt(l.height,10)/100,(e=document.createElement("div")).id="tempDiv",e.style.cssText="position:absolute;top:0;left:0;width:100%;height:100vh;visibility:hidden;",document.body.appendChild(e),n=document.getElementById("tempDiv"),i=parseInt(getComputedStyle(n).height.replace("px","")),t_removeEl(n),t=Math.round(i*a)+"px",(e=d.closest(".t-cover"))&&(n=e.querySelector(".t-cover__filter"),i=e.querySelector(".t-cover__wrapper"),e.style.height=t,n&&(n.style.height=t),i&&(i.style.height=t)),l.height=t);for(var d,l,s=document.querySelectorAll("[data-height-correct-vh]"),c=window.innerHeight,a=0,r=0;r<s.length;r++)-1<(l=(d=s[r]).style).height.indexOf("vh")&&(a=parseInt(l.height)/100,t=c+"px",l.height=t)}function e(){var t=h?screen.width:window.innerWidth;window.isMobile&&!h&&(t=document.documentElement.clientWidth);for(var e=document.querySelectorAll('.r:not([data-record-type="396"]):not([data-record-type="1003"])'),n=[],i=0;i<e.length;i++){var o=e[i],a=getComputedStyle(o);"none"!==a.display&&"hidden"!==a.visibility&&"0"!==a.opacity&&n.push(o)}for(var r=0;r<n.length;r++)for(var d=n[r],l=d.querySelectorAll('div:not([data-auto-correct-mobile-width="false"]):not(.tn-elem):not(.tn-atom):not(.tn-atom__sbs-anim-wrapper):not(.tn-atom__prx-wrapper):not(.tn-atom__videoiframe):not(.tn-atom__sticky-wrapper):not(.t-store__relevants__container):not(.t-slds__items-wrapper):not(.js-product-controls-wrapper):not(.js-product-edition-option):not(.t-product__option-variants)'),s=0;s<l.length;s++){var c=l[s];d.style.wordBreak="";var u=t_outerWidth(c);if(t<u){if("yes"===c.getAttribute("[data-customstyle]")&&"false"===c.parentNode.getAttribute("[data-auto-correct-mobile-width]"))return;console.log("Block not optimized for mobile width. Block width:"+u+" Block id:"+d.getAttribute("id")),console.log(c),d.style.overflow="auto",d.style.wordBreak=t<u-3?"break-word":""}}}function o(t){for(var e=document.querySelectorAll('.t-text:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-name:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-title:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-descr:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-heading:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-text-impact:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-subtitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-uptitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"])'),n=0;n<e.length;n++){var i,o,a=e[n],r=a.getAttribute("style");r&&(i="rem"===a.getAttribute("data-auto-correct-font-size"),document.documentElement.clientWidth>t?(o=(o=r.replace("lineheight","line-height")).replace("fontsize","font-size"),a.setAttribute("style",o)):-1!==r.indexOf("font-size")&&(parseInt(getComputedStyle(a).fontSize.replace("px",""))<30||(o=r.replace("line-height","lineheight"),o=i?o.replace(/font-size.*px;/gi,"font-size: 1.6rem;"):o.replace("font-size","fontsize"),a.setAttribute("style",o))))}}(window.isMobile||window.parent.isPagePreview)&&(t_onReady(function(){setTimeout(t,400)}),window.addEventListener("load",function(){setTimeout(t,400)}),window.innerWidth<480||window.isMobile&&document.documentElement.clientWidth<480||h&&screen.width<480?(t_onReady(function(){for(var t=document.querySelectorAll('[data-customstyle="yes"]'),e=document.querySelectorAll("[field] span, [field] strong, [field] em"),n=0;n<t.length;n++){var i=t[n];26<parseInt(getComputedStyle(i).fontSize.replace("px",""))&&(i.style.fontSize=null,i.style.lineHeight=null)}for(n=0;n<e.length;n++){i=e[n];26<parseInt(getComputedStyle(i).fontSize.replace("px",""))&&(i.style.fontSize=null)}o(480),window.addEventListener("orientationchange",function(){setTimeout(function(){o(480)},500)})}),window.addEventListener("load",e),window.addEventListener("orientationchange",function(){setTimeout(function(){e()},500)})):(window.innerWidth<900||window.isMobile&&document.documentElement.clientWidth<900||h&&screen.width<900)&&t_onReady(function(){for(var t=document.querySelectorAll('[data-customstyle="yes"]'),e=document.querySelectorAll("[field] span, [field] strong, [field] em"),n=0;n<t.length;n++){var i=t[n];30<parseInt(getComputedStyle(i).fontSize.replace("px",""))&&(i.style.fontSize=null,i.style.lineHeight=null)}for(n=0;n<e.length;n++){i=e[n];30<parseInt(getComputedStyle(i).fontSize.replace("px",""))&&(i.style.fontSize=null)}for(var o=document.querySelectorAll('.t-text:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-name:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-title:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-descr:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-heading:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-text-impact:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-subtitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"]), .t-uptitle:not(.tn-elem):not(.tn-atom):not([data-auto-correct-line-height="false"])'),n=0;n<o.length;n++){var a=(i=o[n]).getAttribute("style");a&&-1<a.indexOf("font-size")&&30<parseInt(getComputedStyle(i).fontSize.replace("px",""))&&(a=("rem"===i.getAttribute("data-auto-correct-font-size")?a.replace(/font-size.*px;/gi,"font-size: 1.6rem;"):a.replace("font-size","fontsize")).replace("line-height","lineheight"),i.setAttribute("style",a))}}))}(),t_onReady(function(){setTimeout(function(){for(var t=document.querySelectorAll('a[href^="http"][target="_blank"]'),e=0;e<t.length;e++){var n=t[e],i=n.getAttribute("rel")||"";""===i?n.setAttribute("rel","noopener"):-1===i.indexOf("noopener")&&n.setAttribute("rel",i+" noopener")}},2500)}),function(a){a.onerror=function(t,e,n,i,o){"object"!=typeof a.t_jserrors&&(a.t_jserrors=[]),a.t_jserrors.push({message:t,filename:e,lineno:n,colno:i,error:o})}}(window,Math),t_onReady(function(){document.body.addEventListener("popupShowed",t_scrollBarWidthCompensator__init),document.body.addEventListener("popupHidden",function(){window.scrollBarWidthCompensator&&window.setTimeout(t_scrollBarWidthCompensator__cancel,Math.min(300,window.scrollBarWidthCompensator.delay))})});
|