Skip to Content

JavaScript File

URL: https://static.tildacdn.com/js/tilda-animation-sbs-1.0.min.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 13 Jul 2023 08:28:53 GMT
Download Time: Less than a second
Cookies: None
Size: 34 KB
HTTP Headers:  10 headers
Links In:  1 pages
OK Issues: No issues found

1function t_animationSBS__checkVisibilityPage(){"visible"===document.visibilityState&&(t_onReady(t_animationSBS__init),document.removeEventListener("visibilitychange",t_animationSBS__checkVisibilityPage))}

2function t_animationSBS__init(){var t=document.getElementById("allrecords"),e=(e=t?"edit"===t.getAttribute("data-tilda-mode"):null)||Boolean(document.getElementById("for_redactor_toolbar"));/Bot/i.test(navigator.userAgent)||document.documentMode<11||e||(document.querySelector('[data-animate-sbs-event="scroll"]')&&(t.style.overflowX="hidden"),t_animationSBS__isZeroBlocksRendered(function(){t_animationSBS_isInstagramRendered(function(){t_animationSBS__wrapAndUpdateEls(Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]"))),t_animationSBS__initAllRes(e)}

3)}

4))}

5function t_animationSBS__isZeroBlocksRendered(e){var n,i,a=t_animationSBS__getArtboards("396");(a=a.length?a:t_animationSBS__getArtboards("121")).length&&(n=!1,a.every(function(t){return t.classList.contains("rendered")}

6)?e():document.querySelectorAll('script[src*="tilda-blocks-2"], script[src*="tilda-blocks-1"]').length?t_animationSBS__backwardCompatibilityWait(a,Date.now(),e):(i=a.filter(function(t){return t.classList.contains("rendered")}

7),a.forEach(function(t){t.classList.contains("rendered")||t.addEventListener("artBoardRendered",function(){i.push(t),i.length!==a.length||n||e()}

8)}

9),setTimeout(function(){n=!0,i.length!==a.length&&e()}

10,3e3)))}

11function t_animationSBS__getArtboards(t){return Array.prototype.slice.call(document.querySelectorAll('.r[data-record-type="'+t+'"]:not(.t397__off):not(.t395__off):not(.t400__off) .t396__artboard'))}

12function t_animationSBS__backwardCompatibilityWait(t,e,n){t.every(function(t){return t.classList.contains("rendered")}

13)?n():1e4<Date.now()-e?console.warn("all zero-blocks can't be rendered"):setTimeout(function(){t_animationSBS__backwardCompatibilityWait(t,e,n)}

14,500)}

15function t_animationSBS_isInstagramRendered(t){var e;window.animationSBS__isIOS&&-1!==navigator.userAgent.indexOf("Instagram")?e=setTimeout(function(){window.innerWidth!==screen.width&&window.innerHeight>window.innerWidth?t_animationSBS_isInstagramRendered(t):(clearTimeout(e),t())}

16,100):t()}

17function t_animationSBS__wrapAndUpdateEls(t){var a=-1!==navigator.userAgent.indexOf("Chrome");t.forEach(function(t){var e,n,i=t.querySelector(".tn-atom");i&&(-1===navigator.userAgent.indexOf("Chrome")&&(i.style.WebkitBackfaceVisibility="hidden",i.style.backfaceVisibility="hidden"),e=i.closest(".tn-atom__sbs-anim-wrapper"),n=t_animationSBS__getAnimOptions(t,"published",null),!e&&n&&(t_animationSBS__wrapEl(i.closest(".tn-atom__scale-wrapper")||i,"tn-atom__sbs-anim-wrapper"),e=(i=t.querySelector(".tn-atom")).closest(".tn-atom__sbs-anim-wrapper"),t_animationSBS__updateStylesAfterWrapping(i,e,a)))}

18)}

19function t_animationSBS__wrapAndUpdateElOnResize(t){!t.length||(t=t.filter(function(t){return!t.querySelector(".tn-atom__sbs-anim-wrapper")}

20)).length&&t_animationSBS__wrapAndUpdateEls(t)}

21function t_animationSBS__updateStylesAfterWrapping(e,n,i){var a=e.closest(".t396__elem"),t=a?a.getAttribute("data-elem-type"):"",r=window.getComputedStyle(a).getPropertyValue("border-radius"),t=("shape"!==t&&"button"!==t||!parseInt(r,10)||(n.style.borderRadius=r),["filter","backdrop-filter"]),o=(t=(t=t.map(function(t){var e="-webkit-"+t,n=window.getComputedStyle(a).getPropertyValue(t);if("none"!==(n="none"!==n&&""!==n?n:window.getComputedStyle(a).getPropertyValue(e))&&""!==n)return{filter:t,webkitFilter:e,value:n}

22}

23)).filter(function(t){return t}

24),window.getComputedStyle(e).transform),r=(t.forEach(function(t){window.t_animationSBS__isFirefox&&(n.style.backfaceVisibility="visible"),n.style[t.webkitFilter]=t.value,n.style[t.filter]=t.value,a.style[t.webkitFilter]="none",a.style[t.filter]="none",i&&"backdrop-filter"===t.filter&&(e.style[t.webkitFilter]="inherit",e.style[t.filter]="inherit"),"none"===o&&(e.style.transform="translateZ(0)")}

25),t.some(function(t){return"backdrop-filter"===t.filter}

26));i&&r&&t_animationSBS__chromeFixBackdropFilter(e,n)}

27function t_animationSBS__chromeFixBackdropFilter(t,e){var n=window.getComputedStyle(t).getPropertyValue("background-color"),i=window.getComputedStyle(t).getPropertyValue("opacity");"rgba(0, 0, 0, 0)"!==n&&"1"!==i&&(n=n.substring(n.indexOf("(")+1,n.indexOf(")")),e.style.backgroundColor="rgba("+n+","+i+")",t.style.opacity="1",t.style.backgroundColor="transparent")}

28function t_animationSBS__initAllRes(t){var e,n,i,a={elements:Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]")),scrollTop:window.pageYOffset,isEditMode:t,clickedTriggerEls:[],hoverTriggerEls:[]}

29;function r(){clearTimeout(n),n=setTimeout(function(){var t=Array.prototype.slice.call(document.querySelectorAll("[data-animate-sbs-event]"));t_animationSBS__updateAnimatedObjectState(a,"elements",t),t_animationSBS__wrapAndUpdateElOnResize(a.elements),t_animationSBS__cacheAndSetData(a),t_animationSBS__triggerScrollAnim(a),e=t_animationSBS__getAnimElsOnView(a.elements),t_animationSBS__triggerNoScrollAnimation(a,e),t_animationSBS__generateKeyframes(a)}

30,500)}

31a.elements.length&&(t_animationSBS__cacheAndSetData(a),t_animationSBS__generateKeyframes(a),t=!!(t=document.getElementById("allrecords"))&&"yes"===t.getAttribute("data-tilda-lazy"),"y"!==window.lazy&&!t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()}

32),e=t_animationSBS__getAnimElsOnView(a.elements),t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),"ResizeObserver"in window?t_animationSBS__createResizeObserver({breakpoints:i=t_animationSBS__getAllBreakpoints(),currentRes:t_animationSBS__getCurrentRes(i,t),isMobile:t}

33,r):t?window.addEventListener("orientationchange",function(){setTimeout(function(){r()}

34,300)}

35):window.addEventListener("resize",r),i=document.querySelectorAll(".t396"),Array.prototype.forEach.call(i,function(t){t.addEventListener("displayChanged",r)}

36),window.t_animationSBS__isSafari&&window.addEventListener("scroll",function t(){0!==window.pageYOffset&&r();window.removeEventListener("scroll",t)}

37),t_animationSBS__triggerNoScrollAnimation(a,e),document.querySelectorAll('[data-animate-sbs-event="scroll"]').length&&(t_animationSBS__triggerScrollAnim(a),t_animationSBS__checkFrame(a)),window.addEventListener("load",function(){t_animationSBS__changeElValues(a)}

38),setTimeout(function(){"complete"!==document.readyState&&t_animationSBS__changeElValues(a)}

39,3e3))}

40function t_animationSBS__getAnimElsOnView(t){return t.filter(function(t){var e="data-animate-sbs-event";return"intoview"===t.getAttribute(e)||"blockintoview"===t.getAttribute(e)}

...

</html>