PageSourceSearch

https://gethints.io/js/tilda-blocks-page23672170.min.js?t=1780085739

js gethints.io collected 2026-10-06 06:46:46 UTC 8,569 bytes, 30 lines download raw bytes

1window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
2function 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)},threshhold)}else{last=now;fn.apply(context,args)}}}
3function t594_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
4function t404_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var titles=container.querySelectorAll('.t404__title');var descrs=container.querySelectorAll('.t404__descr');var maxHeight=0;for(var j=0;j<titles.length;j++){var title=titles[j];title.style.height='';var titleStyle=getComputedStyle(title,null);var titlePaddingTop=parseInt(titleStyle.paddingTop)||0;var titlePaddingBottom=parseInt(titleStyle.paddingBottom)||0;var titleHeight=title.clientHeight-(titlePaddingTop+titlePaddingBottom);if(titleHeight>maxHeight)maxHeight=titleHeight}
5if(window.innerWidth>=960){for(var j=0;j<titles.length;j++){titles[j].style.height=maxHeight+'px'}}else{for(var j=0;j<titles.length;j++){titles[j].style.height='auto'}}
6maxHeight=0;for(var j=0;j<descrs.length;j++){var descr=descrs[j];descr.style.height='';var descrStyle=getComputedStyle(descr,null);var descrPaddingTop=parseInt(descrStyle.paddingTop)||0;var descrPaddingBottom=parseInt(descrStyle.paddingBottom)||0;var descrHeight=descr.clientHeight-(descrPaddingTop+descrPaddingBottom);if(descrHeight>maxHeight)maxHeight=descrHeight}
7if(window.innerWidth>=960){for(var j=0;j<descrs.length;j++){descrs[j].style.height=maxHeight+'px'}}else{for(var j=0;j<descrs.length;j++){descrs[j].style.height='auto'}}}}
8function t404_unifyHeightsTextwrapper(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var textWrappers=container.querySelectorAll('.t404__textwrapper');var maxHeight=0;for(var j=0;j<textWrappers.length;j++){var textWrapper=textWrappers[j];textWrapper.style.height='auto';var textWrapperStyle=getComputedStyle(textWrapper,null);var textWrapperPaddingTop=parseInt(textWrapperStyle.paddingTop)||0;var textWrapperPaddingBottom=parseInt(textWrapperStyle.paddingBottom)||0;var textWrapperHeight=textWrapper.clientHeight-(textWrapperPaddingTop+textWrapperPaddingBottom);if(textWrapperHeight>maxHeight)maxHeight=textWrapperHeight}
9if(window.innerWidth>=960){for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height=maxHeight+'px'}}else{for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height='auto'}}}}
10function t404_showMore(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t404');if(!container)return;var cols=container.querySelectorAll('.t-col');var allRecords=document.getElementById('allrecords');for(var i=0;i<cols.length;i++){cols[i].style.display='none'}
11var cardsLength=cols.length;var cardsCount=parseInt(container.getAttribute('data-show-count'),10);if(cardsCount>500)cardsCount=500;var startIndexShowBlock=cardsCount;var countShowBlock=cardsCount;var colsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<colsShow.length;i++){colsShow[i].style.display='block'}
12var showMoreBtn=rec.querySelector('.t404__showmore');if(showMoreBtn){showMoreBtn.addEventListener('click',function(){startIndexShowBlock=startIndexShowBlock+countShowBlock<=cardsLength?startIndexShowBlock+countShowBlock:cardsLength;var newColsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<newColsShow.length;i++){newColsShow[i].style.display='block'}
13if(startIndexShowBlock===cardsLength){showMoreBtn.style.display='none'}
14t404__triggerEvent(container,'displayChanged');if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}}
15function t404__getShowBlocks(elements,index){var newElements=[];for(var i=0;i<elements.length;i++){if(i<=index-1)newElements.push(elements[i])}
16return newElements}
17function t404__triggerEvent(el,eventName){var event;if(typeof window.CustomEvent==='function'){event=new CustomEvent(eventName)}else if(document.createEvent){event=document.createEvent('HTMLEvents');event.initEvent(eventName,!0,!1)}else if(document.createEventObject){event=document.createEventObject();event.eventType=eventName}
18event.eventName=eventName;if(el.dispatchEvent){el.dispatchEvent(event)}else if(el.fireEvent){el.fireEvent('on'+event.eventType,event)}else if(el[eventName]){el[eventName]()}else if(el['on'+eventName]){el['on'+eventName]()}}
19window.requestAnimationFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)})})();function t270_scroll(hash,offset){if(!hash)return;t270_checkLoad(hash,offset);var excludeHashes=['#!/tproduct/','#!/tab/','#opencart'];if(excludeHashes.includes(hash)){return!0}
20var isHistoryChangeAllowed=window.location.hash!==hash;var wrapperBlock=document.querySelector('.t270');var dontChangeHistory=wrapperBlock?Boolean(wrapperBlock.getAttribute('data-history-disabled')):!1;t270_scrollToEl(hash,offset);if(!dontChangeHistory&&isHistoryChangeAllowed){if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash}
21isHistoryChangeAllowed=!1}
22return!0}
23function t270_checkLoad(hash,offset){if(window.t270_loadChecked)return;var sliderWrappers=document.body.querySelectorAll('.t-slds__items-wrapper');if(!sliderWrappers.length)return;var lastWrapper=sliderWrappers[sliderWrappers.length-1];var sliderImgs=lastWrapper?lastWrapper.querySelectorAll('.t-slds__bgimg'):[];var lastImg=sliderImgs[sliderImgs.length-1];var imageUrl=lastImg?window.getComputedStyle(lastImg).backgroundImage:'';imageUrl=imageUrl.substring(5,imageUrl.length-2);var preloaderImg=document.createElement('img');preloaderImg.src=imageUrl?imageUrl:'';preloaderImg.addEventListener('load',function(){t270_scroll(hash,offset);window.t270_loadChecked=!0})}
24function t270_scrollToEl(hash,offset){var SCROLL_DURATION_MS=500;var body=document.body;if(body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(isNaN(scrollTargetY))return;var canSmoothScroll=window.CSS&&window.CSS.supports('scroll-behavior','smooth')&&'scrollBehavior' in document.documentElement.style;var userAgent=navigator.userAgent.toLowerCase();var isAndroid=userAgent.indexOf('android')!==-1;if(window.isMobile&&!isAndroid&&canSmoothScroll){body.setAttribute('data-scroll','true');window.scrollTo({left:0,top:scrollTargetY,behavior:'smooth',});setTimeout(function(){body.removeAttribute('data-scroll')},SCROLL_DURATION_MS)}else{t270_smoothScrollTo(scrollTargetY,SCROLL_DURATION_MS)}}
25function t270_smoothScrollTo(targetY,duration=500){var body=document.body;var startY=window.scrollY||window.pageYOffset;var deltaY=targetY-startY;var startTime=performance.now();function easeInOutQuad(t){return Math.pow(t,2)}
26function scroll(){var currentTime=performance.now();var elapsedTime=Math.min((currentTime-startTime)/duration,1);var ease=easeInOutQuad(elapsedTime);window.scrollTo(0,startY+deltaY*ease);if(elapsedTime<1){requestAnimationFrame(scroll)}else{body.removeAttribute('data-scroll');body.removeAttribute('data-scrollable');window.scrollTo(0,targetY)}}
27body.setAttribute('data-scroll','true');body.setAttribute('data-scrollable','true');requestAnimationFrame(scroll)}
28function t270_getTarget(hash,offset){var target;try{if(hash.substring(0,1)==='#'){target=document.getElementById(hash.substring(1))}else{target=document.querySelector(hash)}}catch(event){console.log('Exception t270: '+event.message);return}
29if(!target){target=document.querySelector('a[name="'+hash.substr(1)+'"], div[id="'+hash.substr(1)+'"]');if(!target)return}
30target=parseInt(target.getBoundingClientRect().top+window.pageYOffset-offset,10);target=Math.max(target,0);return target}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.