1
window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
2
3
window.isiOS=!1;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){window.isiOS=!0}
4
5
window.isiOSVersion='';if(window.isiOS){var version=(navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);if(version!==null){window.isiOSVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}
6
}
7
8
window.isSafari=!1;if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){window.isSafari=!0}
9
10
window.isSafariVersion='';if(window.isSafari){var version=(navigator.appVersion).match(/Version\/(\d+)\.(\d+)\.?(\d+)? Safari/);if(version!==null){window.isSafariVersion=[parseInt(version[1],10),parseInt(version[2],10),parseInt(version[3]||0,10)]}
11
}
12
13
function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)}
14
,threshhold)}
15
else{last=now;fn.apply(context,args)}
16
}
17
}
18
19
function t678_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)}
20
)}
21
22
function t746_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;rec.setAttribute('data-animationappear','off');rec.style.opacity='1';var popup=rec.querySelector('.t-popup');var iframeBody=rec.querySelectorAll('.t746__frame');var hook=popup?popup.getAttribute('data-tooltip-hook'):'';var analitics=popup?popup.getAttribute('data-track-popup'):'';t746_imageHeight(recid);t746_arrowWidth(recid);t746_show(recid);t746_hide(recid);window.addEventListener('resize',t_throttle(function(){t746_arrowWidth(recid)}
23
,200));window.addEventListener('orientationchange',function(){setTimeout(function(){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)}
24
)}
25
,500)}
26
);if(hook){t_onFuncLoad('t_popup__addAttributesForAccessibility',function(){t_popup__addAttributesForAccessibility(hook)}
27
);if(popup){popup.addEventListener('click',function(e){if(e.target===popup){Array.prototype.forEach.call(iframeBody,function(iframeB){iframeB.innerHTML='';iframeB.style.zIndex=''}
28
);t746_closePopup(recid)}
29
}
30
)}
31
32
var popupClose=rec.querySelector('.t-popup__close');if(popupClose){popupClose.addEventListener('click',function(){Array.prototype.forEach.call(iframeBody,function(iframeB){iframeB.innerHTML='';iframeB.style.zIndex=''}
33
);t746_closePopup(recid)}
34
)}
35
36
document.addEventListener('keydown',function(e){if(e.keyCode===27){Array.prototype.forEach.call(iframeBody,function(iframeB){iframeB.innerHTML='';iframeB.style.zIndex=''}
37
);t746_closePopup(recid)}
38
}
39
);var allRec=document.getElementById('allrecords');var lazyMode=allRec?allRec.getAttribute('data-tilda-lazy'):'';var isInitSlds=!1;document.addEventListener('click',function(e){var href=e.target.closest('a[href="'+hook+'"]');if(href){e.preventDefault();t746_showPopup(recid);if(isInitSlds){t_onFuncLoad('t_slds_updateSlider',function(){t_slds_updateSlider(recid)}
40
)}
...
</html>