PageSourceSearch

https://www.bentoengine.com/wp-content/cache/min/1/wp-content/uplo…/logo-marquee.js?ver=1790019272

js bentoengine.com collected 2026-09-28 08:40:54 UTC 3,253 bytes, 41 lines download raw bytes

1function UCMarquee(marquee){var g_marquee;function cloneSlider(){Array.prototype.forEach.call(g_marquee,item=>{var parent=item
2var slide=item.children
3Array.prototype.forEach.call(slide,item=>{parent.appendChild(item.cloneNode(!0))})})}
4function wrapSlides(){Array.prototype.forEach.call(g_marquee,item=>{item.innerHTML='<div class="uc-logo-wrapper">'+item.innerHTML+'</div>'})}
5function setWidth(){Array.prototype.forEach.call(g_marquee,parentItem=>{parentItem.style.display="flex";var parentWidth=parentItem.offsetWidth;var slide=parentItem.querySelectorAll('.uc_logo_marquee_holder');var viewportWidth=parseInt(jQuery(window).width());var isBreakPoint=function(breakpoint){var breakpointsArray=[319,767,1024,1920];var breakpointsArrayLength=breakpointsArray.length;var min,max;for(var i=0;i<breakpointsArrayLength;i++){if(breakpointsArray[i]===breakpoint){min=breakpointsArray[i-1]||0
6max=breakpointsArray[i]
7break}}
8return viewportWidth>min&&viewportWidth<=max}
9var dataHeight=parseInt(jQuery(parentItem).attr('data-height'));var dataMargin=jQuery(parentItem).data('margin');var dataItemsNumberMobile=jQuery(parentItem).data('mobile-items');var dataItemsNumberTablet=jQuery(parentItem).data('tablet-items');var dataItemsNumberDesktop=jQuery(parentItem).data('desktop-items');var direction=jQuery(parentItem).data('direction');if(direction=='up'||direction=='down'){if(isBreakPoint(767))
10parentItem.style.height=(dataHeight+dataMargin)*dataItemsNumberMobile+'px'
11if(isBreakPoint(1024))
12parentItem.style.height=(dataHeight+dataMargin)*dataItemsNumberTablet+'px'
13if(isBreakPoint(1920)||viewportWidth>1920)
14parentItem.style.height=(dataHeight+dataMargin)*dataItemsNumberDesktop+'px'}
15parentItem.style.display="none";Array.prototype.forEach.call(slide,item=>{if(direction=='right'||direction=='left')
16item.style.marginRight=dataMargin+'px'
17if(direction=='up'||direction=='down')
18item.style.marginTop=dataMargin+'px'
19if(direction=='right'||direction=='left'){if(isBreakPoint(767))
20item.style.width=(parentWidth/dataItemsNumberMobile)-dataMargin+'px'
21if(isBreakPoint(1024))
22item.style.width=(parentWidth/dataItemsNumberTablet)-dataMargin+'px'
23if(isBreakPoint(1920)||(viewportWidth>1920))
24item.style.width=(parentWidth/dataItemsNumberDesktop)-dataMargin+'px'}})
25setTimeout(function(){parentItem.style.display="flex"},200)})}
26function setAnimationOptions(){Array.prototype.forEach.call(g_marquee,item=>{var speed=jQuery(item).data('speed');var marqueeList=item.children[0]
27var slidesAmount=marqueeList.children.length/4
28var marqueeSpeed=speed*slidesAmount
29marqueeList.style.animationDuration=marqueeSpeed/1000+'s'
30marqueeList.style.WebkitAnimationDuration=marqueeSpeed/1000+'s'
31var paused=jQuery(item).data('paused');if(paused){marqueeList.onmouseenter=(event)=>{event.target.style.animationPlayState='paused'
32event.target.style.WebkitAnimationPlayState='paused'}
33marqueeList.onmouseleave=(event)=>{event.target.style.animationPlayState=''
34event.target.style.WebkitAnimationPlayState=''}}})}
35function init(){g_marquee=marquee;cloneSlider()
36cloneSlider()
37setWidth()
38wrapSlides()
39setAnimationOptions()
40var width=jQuery(window).width();window.addEventListener('resize',function(){if(jQuery(this).width()!=width){width=jQuery(this).width();setWidth()}})}
41init()}

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.