Skip to Content

JavaScript File

URL: https://static.tildacdn.com/js/tilda-zero-scale-1.0.min.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 04 Jun 2026 12:03:29 GMT
Download Time: Less than a second
Cookies: None
Size: 8 KB
HTTP Headers:  15 headers
Links In:  1 pages
OK Issues: No issues found

1function t396_scaleBlock(e){var t=t396_detectResolution(e),l=document.getElementById("rec"+e);if(l){var a;"function"==typeof window.t396__getCurrentScaleFactor?a=t396__getCurrentScaleFactor(e):(a=window.tn&&window.tn["ab"+e]&&window.tn["ab"+e].scaleFactor)||(a=window.tn_scale_factor);var o=l.querySelector(".t396__artboard"),n=t396_scale__collectScaleData(o,a);if(o){var r=t396_ab__getFieldValue(o,"height"),i=Math.floor(r*a),c,_;if(t396_ab__getFieldValue(o,"height_vh")){var s=t396_ab__getFieldValue(o,"height"),d=t396_ab__getHeight(o),u=s*a;i=u>=d?u:d}

2if(t396_scale__updateArtboardState(o,i),0!==n.length)if(t396_isOnlyScalableBrowser())t396_scale__scaleIsOnlyScalableBlock(n);else{var m=n.filter((function(e){var t=e.elemType;return"text"===t||"button"===t}

3)),h=n.filter((function(e){var t;return"shape"===e.elemType}

4)),p=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),f;p&&t396_scale__schedule__scaleTextElements(m),t396_scale__schedule__scaleShapeElements(h),n.forEach((function(e){var l=e.element,o=e.elementCore,n=e.elemType,r="gallery"===n,i="video"===n;"yes"===l.getAttribute("data-scale-off")||r||(l.style.zoom=a),r&&(l.style.zoom=null),"text"===n&&t<1200&&o&&!p&&(o.style.webkitTextSizeAdjust="auto"),o&&(o.style.transformOrigin="center")}

5)),Array.from(o.querySelectorAll(":scope > .t396__elem, :scope > .t396__group")).forEach((function(e){var t;("left"!==t396_core__getFieldValue(e,"axisx")||"top"!==t396_core__getFieldValue(e,"axisy"))&&(t396_elem__renderViewOneField(e,"left"),t396_elem__renderViewOneField(e,"top"))}

6))}

7}

8}

9}

10function t396_scale__schedule__scaleTextElements(e){window.tn||(window.tn={}

11),window.tn.scheduledTextElementsForScale||(window.tn.scheduledTextElementsForScale=[]),window.tn.scheduledTextElementsForScale=window.tn.scheduledTextElementsForScale.concat(e),clearTimeout(window.tn.textElementsScaleTimer),window.tn.textElementsScaleTimer=setTimeout((function(){t396_scale__scaleTextElements(window.tn.scheduledTextElementsForScale),window.tn.scheduledTextElementsForScale=[]}

12),1)}

13function t396_scale__scaleTextElements(e){var t=t396__initFastDOM();t.write((function(){e.forEach((function(e){e.element.style.zoom=""}

14))}

15)),t.read((function(){e.forEach((function(e){e.cachedFontSize=parseFloat(getComputedStyle(e.elementCore).fontSize),e.cachedTextSizeAdjust=e.elementCore.style.webkitTextSizeAdjust}

16))}

17)),t.write((function(){e.forEach((function(e){e.elementCore.style.webkitTextSizeAdjust="none",e.element.style.zoom=e.scaleFactor}

18))}

19)),t.read((function(){e.forEach((function(e){e.currentFontSize=parseFloat(getComputedStyle(e.elementCore).fontSize)}

20))}

21)),t.write((function(){e.forEach((function(e){var t=Math.abs(e.cachedFontSize-e.currentFontSize);e.elementCore.style.webkitTextSizeAdjust=t>=1?"none":e.cachedTextSizeAdjust,t>=1&&(e.elementCore.style.fontSize=Math.round(e.cachedFontSize*e.scaleFactor)+"px")}

22))}

23))}

24function t396_scale__schedule__scaleShapeElements(e){window.tn||(window.tn={}

25),window.tn.scheduledShapeElementsForScale||(window.tn.scheduledShapeElementsForScale=[]),window.tn.scheduledShapeElementsForScale=window.tn.scheduledShapeElementsForScale.concat(e),clearTimeout(window.tn.shapeElementsScaleTimer),window.tn.shapeElementsScaleTimer=setTimeout((function(){t396_scale__scaleShapeElements(window.tn.scheduledShapeElementsForScale),window.tn.scheduledShapeElementsForScale=[]}

26),1)}

27function t396_scale__scaleShapeElements(e){var t=t396__initFastDOM();t.read((function(){e.forEach((function(e){var t=t396_elem__getFieldValue(e.element,"height");t=t396_elem__getHeight(e.element,t),t=t396_elem__convertPosition__Local__toAbsolute(e.element,"height",t);var l=t396_elem__getFieldValue(e.element,"width");l=t396_elem__getWidth(e.element,l),l=t396_elem__convertPosition__Local__toAbsolute(e.element,"width",l);var a=parseFloat(t396_elem__getFieldValue(e.element,"top"));a=t396_elem__convertPosition__Local__toAbsolute(e.element,"top",a);var o=parseFloat(t396_elem__getFieldValue(e.element,"left"));o=t396_elem__convertPosition__Local__toAbsolute(e.element,"left",o),e.shapeSize={top:a,left:o,width:l,height:t}

28}

29))}

30));var l=e.filter((function(e){return e.shapeSize.width<=2||e.shapeSize.height<=2}

31));t.read((function(){l.forEach((function(e){var t=window.getComputedStyle(e.elementCore);e.borderWidth=t.borderWidth,e.isImage="none"!==t.backgroundImage,e.isAnimated=e.element.getAttribute("data-animate-sbs-event")}

32))}

33)),t.write((function(){l.forEach((function(e){if("0px"===e.borderWidth&&!e.isImage&&!e.isAnimated){e.element.style.removeProperty("zoom");var t=e.shapeSize.width*e.scaleFactor,l=e.shapeSize.height*e.scaleFactor,a=e.shapeSize.top*e.scaleFactor,o=e.shapeSize.left*e.scaleFactor;e.element.style.width=parseFloat(t)+"px",e.element.style.height=parseFloat(l)+"px",e.element.style.top=Math.round(a)+"px",e.element.style.left=Math.round(o)+"px",e.element.setAttribute("data-scale-off","yes")}

34}

35))}

36))}

37function t396_scale__collectScaleData(e,t){var l;return t396_scale__getElementsToScale(e).map((function(e){var l=e.querySelector(".tn-molecule, .tn-atom"),a=t396_scale__getElementType(e),o=t396_elem__getFieldValue(e,"container");if(o||"group"!==a||(o="grid"),l&&"grid"===o)return{element:e,elementCore:l,elemType:a,scaleFactor:t}

38}

39)).filter(Boolean)}

40function t396_scale__scaleIsOnlyScalableBlock(e){e.forEach((function(e){var t=e.element,l=e.elementCore,a=e.elemType,o=l.closest(".tn-atom__scale-wrapper");o||(t396_scale__wrapElement(l,currentScaleFactor,"tn-atom__scale-wrapper"),o=l.closest(".tn-atom__scale-wrapper")),t.style.zoom="",t396_scale__processBackdropFilter(t,l,o),t396_scale__processBackgroundForShape(t,l,a,currentScaleFactor)}

...

</html>