PageSourceSearch

https://s3.elespanol.com/assets_js/web/v2/CarouselGiffs-YHOFOH57.js

js elespanol.com collected 2026-09-24 09:09:26 UTC 1,644 bytes, 1 lines download raw bytes

1import{a as m,b as a}from"./chunk-CT2JIFVJ.js";import{b as s,c as e}from"./chunk-3HNU7EMR.js";import"./chunk-ZANRA25L.js";import"./chunk-MN6ULYMF.js";import{t as n}from"./chunk-O2BB4VPE.js";n();var o=class{constructor(i,t){this.imagesToLoad=t.imagesToLoad||[],this.timerInterval=t.timerInterval||5,this.imgElementSupport=document.getElementById(t.elementId),this.containerElement=document.getElementById(i),this.captionElement=document.getElementById("media_"+t.captionId),this.dataCaption=t.captionToLoad||[],this.position=1,this.initialPosition=0,this.timer=new a(this.timerInterval*1e3),this.loadTimer=!1}init(){this.containerElement&&this.imgElementSupport&&(this.imgElementSupport.src=this.imagesToLoad[this.initialPosition],e(this.imgElementSupport,s.ON_DOM_LOAD,this.onLoadFirstImgElement,this))}changeCaption(){if(this.captionElement&&this.dataCaption[this.position]){var i=this.captionElement.querySelector(".caption-author"),t=this.captionElement.querySelector(".caption-provider"),r=this.captionElement.querySelector(".caption-location");i&&(i.innerHTML=this.dataCaption[this.position][0]),t&&(t.innerHTML=this.dataCaption[this.position][1]),r&&(t.innerHTML=this.dataCaption[this.position][2])}}onTimerRefreshImages(){this.imgElementSupport.getAttribute("srcset")&&this.imgElementSupport.removeAttribute("srcset"),this.imgElementSupport.src=this.imagesToLoad[this.position],this.changeCaption(),this.position++,this.position===this.imagesToLoad.length&&(this.position=0)}onLoadFirstImgElement(){this.loadTimer||(e(this.timer,m.ON_TM_TIMER,this.onTimerRefreshImages,this),this.timer.start(),this.loadTimer=!0)}};export{o as default};

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.