Skip to Content

JavaScript File

URL: https://static.tildacdn.com/js/tilda-zero-1.1.min.js
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Wed, 01 Feb 2023 09:17:55 GMT
Download Time: Less than a second
Cookies: None
Size: 23 KB
HTTP Headers:  9 headers
Links In:  1 pages
OK Issues: No issues found

1function t396_init(t){var e,i,n,o,a=document.getElementById("rec"+t),r=a?a.querySelector(".t396"):null,l=a?a.querySelector(".t396__artboard"):null;l&&(t396_initTNobj(t,l),o=t396_detectResolution(t),e=document.getElementById("allrecords"),window.tn_window_width=document.documentElement.clientWidth,window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),t396_switchResolution(t,o),t396_updateTNobj(t),t396_artboard_build("",t),i="ontouchend"in document,window.addEventListener("resize",function(){tn_console(">>>> t396: Window on Resize event >>>>"),l.classList.add("t396_resizechange"),l&&l.classList.contains("t396_fullscreenchange")?l.classList.remove("t396_fullscreenchange"):t396_waitForFinalEvent(function(){(!window.t396__isMobile&&!i||document.documentElement.clientWidth!==window.tn_window_width)&&(t396_doResize(t),l.classList.remove("t396_resizechange"))}

2,500,"resizeruniqueid"+t)}

3),window.addEventListener("orientationchange",function(){tn_console(">>>> t396: Orient change event >>>>"),t396_waitForFinalEvent(function(){t396_doResize(t)}

4,600,"orientationuniqueid"+t)}

5),window.addEventListener("load",function(){t396_allelems__renderView(l);var t=l?window.getComputedStyle(l).getPropertyValue("overflow"):"";"function"==typeof t_lazyload_update&&"auto"===t&&l&&l.addEventListener("scroll",t_throttle(function(){var t=e?e.getAttribute("data-tilda-lazy"):null;"y"!==window.lazy&&"yes"!==t||t_onFuncLoad("t_lazyload_update",function(){t_lazyload_update()}

6)}

7,500)),""!==window.location.hash&&"visible"===t&&(l&&(l.style.overflow="hidden"),setTimeout(function(){l&&(l.style.overflow="visible")}

8,1))}

9),l&&l.addEventListener("fullscreenchange",function(){l.classList.add("t396_fullscreenchange")}

10),document.querySelector(".t830")&&window.addEventListener("load",function(){["t830__allrecords_padd","t830__allrecords_padd-small"].some(function(t){return e.classList.contains(t)}

11)?t396_doResize(t):e.addEventListener("allRecPaddingInit",function(){t396_doResize(t)}

12)}

13),a&&r&&l&&"yes"===a.getAttribute("data-connect-with-tab")&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(l),t396_doResize(t)}

14),setTimeout(function(){a&&a.closest("#allrecordstable")&&r&&l&&r.addEventListener("displayChanged",function(){t396_allelems__renderView(l),t396_doResize(t)}

15)}

16,1e3),o=!!document.querySelector(".t635__textholder"),a&&o&&r&&l&&r.addEventListener("animationInited",function(){t396_allelems__renderView(l),t396_doResize(t)}

17),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&r&&r.classList.add("t396_safari"),o="window"===t396_ab__getFieldValue(l,"upscale"),n=e?"edit"===e.getAttribute("data-tilda-mode"):null,o&&!n&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}

18),n&&r&&l&&(o=l.getAttribute("data-artboard-ovrflw"),r.style.position="relative",r.style.zIndex="auto"===o||"visible"===o?"2":"1"))}

19function t396_isOnlyScalableBrowser(){var t=-1!==navigator.userAgent.search("Firefox"),e=!!window.opr&&!!window.opr.addons||!!window.opera||-1!==navigator.userAgent.indexOf(" OPR/");return t||e}

20function t396_doResize(t){var e=t396_isOnlyScalableBrowser(),i=document.getElementById("rec"+t),n=document.getElementById("allrecords"),o=t396_detectResolution(t),e=(t396_removeElementFromDOM(i?i.querySelector(".t396__scale-style"):null),e?(e=i?i.querySelectorAll(".tn-atom"):[],Array.prototype.forEach.call(e,function(t){var e=t.closest(".tn-atom__scale-wrapper"),i=e?e.parentNode:null;i&&i.removeChild(e),i&&i.appendChild(t)}

21)):(e=i?i.querySelectorAll(".t396__elem"):[],Array.prototype.forEach.call(e,function(t){t.style.zoom="";t=t.querySelector(".tn-atom");t&&(t.style.transformOrigin="")}

22)),i?i.querySelector(".t396__artboard"):null),i=e?e.clientWidth:0,i=(window.tn_window_width=document.documentElement.clientWidth,window.tn_scale_factor=parseFloat((window.tn_window_width/o).toFixed(3)),window.tn_scale_offset=(i*window.tn_scale_factor-i)/2,t396_switchResolution(t,o),t396_updateTNobj(t),t396_ab__renderView(e),n?n.getAttribute("data-tilda-mode"):"");"window"===t396_ab__getFieldValue(e,"upscale")&&"edit"!==i&&t_onFuncLoad("t396_scaleBlock",function(){t396_scaleBlock(t)}

23),t396_allelems__renderView(e)}

24function t396_detectResolution(t){var e,i;if(t)return e=window.t396__isMobile?document.documentElement.clientWidth:window.innerWidth,window.tn["ab"+t].screens.forEach(function(t){t<=e&&(i=t)}

25),i}

26function t396_initTNobj(t,e){e&&(tn_console("func: initTNobj"),void 0===window.tn&&(window.tn={}

27,window.tn.ab_fields=["height","width","bgcolor","bgimg","bgattachment","bgposition","filteropacity","filtercolor","filteropacity2","filtercolor2","height_vh","valign"]),t396_setScreensTNobj(t,e))}

28function t396_setScreensTNobj(t,e){var i="ab"+t,t=(window.tn[i]={}

29,window.tn[i].screens=[],e.getAttribute("data-artboard-screens"));t?(t=t.split(",")).forEach(function(t){t=parseInt(t,10),window.tn[i].screens.push(t)}

30):window.tn[i].screens=[320,480,640,960,1200]}

31function t396_updateTNobj(t){tn_console("func: updateTNobj");var e="ab"+t,t=document.getElementById("allrecords"),i=t&&window.getComputedStyle(t).paddingLeft||"0",i=parseInt(i,10),n=t&&window.getComputedStyle(t).paddingRight||"0",n=parseInt(n,10);window.zero_window_width_hook&&"allrecords"===window.zero_window_width_hook&&t?window.tn.window_width=t.clientWidth-(i+n):window.tn.window_width=document.documentElement.clientWidth,window.tn.window_height=window.t396__isMobile?document.documentElement.clientHeight:window.innerHeight;for(var o=window.tn[e].screens.slice().reverse(),a=0;a<o.length;a++)window.tn[e].curResolution===o[a]&&(window.tn[e].canvas_min_width=o[a],window.tn[e].canvas_max_width=0===a?window.tn.window_width:o[a-1]);window.tn[e].grid_width=window.tn[e].canvas_min_width,window.tn[e].grid_offset_left=(window.tn.window_width-window.tn[e].grid_width)/2}

32window.t396__isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||-1<navigator.userAgent.indexOf("Instagram");var t396_waitForFinalEvent=function(){var n={}

33;return function(t,e,i){n[i=i||"Don't call this twice without a uniqueId"]&&clearTimeout(n[i]),n[i]=setTimeout(t,e)}

34}

35();function t396_switchResolution(t,e){tn_console("func: switchResolution");var t="ab"+t,i=window.tn[t].screens[window.tn[t].screens.length-1];window.tn[t].curResolution=e,window.tn[t].curResolution_max=i,window.tn.curResolution=e,window.tn.curResolution_max=i}

36function t396_artboard_build(t,e){tn_console("func: t396_artboard_build. Recid:"+e),tn_console(t);var t=document.getElementById("rec"+e),i=document.getElementById("allrecords"),n=t?t.querySelector(".t396__artboard"):null;if(!n)return!1;t396_ab__renderView(n);var o=document.createEvent("Event"),a=(o.initEvent("artBoardRendered",!0,!0),n.querySelectorAll(".tn-elem")),a=(Array.prototype.forEach.call(a,function(t){switch(t.getAttribute("data-elem-type")){case"text":t396_addText(n,t);break;case"image":t396_addImage(n,t);break;case"shape":t396_addShape(n,t);break;case"button":t396_addButton(n,t);break;case"video":t396_addVideo(n,t);break;case"html":t396_addHtml(n,t);break;case"tooltip":t396_addTooltip(n,t);break;case"form":t396_addForm(n,t,e);break;case"gallery":t396_addGallery(n,t,e);break;case"vector":t396_addVector(n,t)}

37}

38),n.classList.remove("rendering"),n.classList.add("rendered"),n.dispatchEvent(o),n.getAttribute("data-artboard-ovrflw"));"visible"!==a&&"visibleX"!==a||!i||(i.style.overflow="hidden"),"auto"===a&&0!==(o=Math.abs(n.offsetHeight-n.clientHeight))&&(n.style.paddingBottom=o+"px"),(window.t396__isMobile||"ontouchend"in document&&-1!==navigator.userAgent.indexOf("AppleWebKit"))&&((i=document.createElement("style")).textContent="@media only screen and (min-width:1366px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:2) {.t396__carrier {background-attachment:scroll!important;}

39}

40",t.insertAdjacentElement("beforeend",i))}

...

</html>