1$.widget("max7.homepagecarousel",{options:{interval:7e3,animationduration:600,framewidth:768,gap:8},_create:function(){var n=this;n.animation_element=$(n.element).children(".home-page-carousel-animation-container");n.items_element=$(n.animation_element).children(".home-page-carousel-items");n.getFrameDelta=function(){return $(n.items_element).children().first().outerWidth()+n.options.gap};$(n.element).find(".home-page-carousel-left-button").on("click",function(){n.manualAdvance(max7app.languageIsRightToLeft?1:-1)});$(n.element).find(".home-page-carousel-right-button").on("click",function(){n.manualAdvance(max7app.languageIsRightToLeft?-1:1)});$(n.items_element).children().each(function(n,t){$(t).css("order",n)});n.is_animating=!1;n.is_increasing=!0;n.animation_element.on("transitionend",()=>{this.cleanupTransition()});n.timeoutHandle=null;n.startTimer()},cleanupTransition:function(){this.is_animating&&(this.is_animating=!1,this.is_increasing>0&&(this.adjustItemOrders(-1),this.animation_element.css({"transition-property":"none",transform:`translateX(0)`})),this.startTimer())},advanceCarousel:function(n){var t=this,i,r,u;t.is_animating||(i=t.getFrameDelta(),n<0&&(t.adjustItemOrders(1),r=-i,u=0),n>0&&(r=0,u=-i),t.animation_element.css({"transition-property":"none",transform:`translateX(${r}px)`}),setTimeout(()=>{t.is_animating=!0,t.is_increasing=n>0,t.animation_element.css({"transition-duration":`${t.options.animationduration}ms`,"transition-property":"transform",transform:`translateX(${u}px)`}),setTimeout(()=>{this.cleanupTransition()},Math.round(t.options.animationduration*1.1))},1))},adjustItemOrders:function(n){var r=this,i=$(r.items_element).children(),t=i.length;i.each(function(i,r){var u=parseInt($(r).css("order"))+n;$(r).css("order",(u%t+t)%t)})},manualAdvance:function(n){var t=this;t.timeoutHandle&&(clearTimeout(t.timeoutHandle),t.timeoutHandle=null);t.nextIntervalMultiplier=1.5;t.advanceCarousel(n)},startTimer:function(){var n=this,t;/[?&]nocarousel=1\b/.test(window.location.search)||(t=n.nextIntervalMultiplier||1,n.nextIntervalMultiplier=1,n.timeoutHandle=setTimeout(function(){n.advanceCarousel(1)},n.options.interval*t))}});max7app.loadHomePageResourceBannerData=function(n){var t=this;max7app.apiCall({method:"SimpleResourceLists3/GetByCodes",parameters:{codes:n.join(","),user:max7app.userEntityId,culture:max7app.filterCultureCode,context:max7app.channelGuid,language:max7app.languageCode,altLanguage:max7app.filterCultureCode,includeDescription:max7app.services.displayedContent.includeDescription},success:function(n){n.forEach(function(n){max7app.updateHomePageResourceBanner(n.UniqueCode,n.Title,n.Categories,n.ResourceType==max7app.RESOURCETYPE_LIBRARY,n.LibraryResourceCount)})},error:function(){}})};max7app.updateHomePageResourceBanner=function(n,t,i,r,u){var f=$(`.home-page-carousel-item-content.home-page-carousel-resource-${n}`);f.find(".home-page-carousel-item-content-text").removeClass("unresolved").prepend(max7app.createCategoryLabelHtml(i,r,u));f.find(".title").text(t);f.find(".banner-image").attr("alt",t)}
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.