PageSourceSearch

https://medievalme.nl/_astro/Quote.astro_astro_type_script_index_0_lang.Bm-YaOXg.js

js medievalme.nl collected 2026-10-09 23:48:21 UTC 1,518 bytes, 1 lines download raw bytes

1import{g as n}from"./index.CH_iu5NA.js";import{S as l}from"./SplitText.Cpc1cBKW.js";class c extends HTMLElement{carouselSlides;slideTimelines=[];currentIndex=0;autoplayInterval=7e3;timerId=null;firstPlay=!0;connectedCallback(){this.carouselSlides=this.querySelectorAll(".content"),this.init()}async init(){await document.fonts.ready,this.initAnimations()}initAnimations(){this.carouselSlides.forEach((e,t)=>{const i=n.timeline({paused:!0}),s=e.querySelectorAll(".quote"),r=e.querySelectorAll(".name"),o=new l(s,{type:"lines"}),a=new l(r,{type:"lines"}),u=[...o.lines,...a.lines];i.fromTo(u,{opacity:0,y:20},{opacity:1,y:0,duration:1,stagger:.15,ease:"power4.out"}),this.slideTimelines.push(i)}),setTimeout(()=>{this.slideTimelines[this.currentIndex]?.play(),this.startAutoplay()},4e3),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&(this.slideTimelines.forEach((e,t)=>{e.pause(0)}),this.currentIndex=0,this.slideTimelines[0].play())})}startAutoplay(){n.to(this,{opacity:1}),this.timerId=window.setInterval(()=>{const e=(this.currentIndex+1)%this.slideTimelines.length;this.goToSlide(e)},this.autoplayInterval)}stopAutoplay(){this.timerId!==null&&(clearInterval(this.timerId),this.timerId=null)}goToSlide(e){if(e===this.currentIndex)return;const t=this.slideTimelines[this.currentIndex],i=this.slideTimelines[e];t?.timeScale(2).reverse();const s=t?.duration()?t.duration()/2:.5;n.delayedCall(s,()=>{i?.restart()}),this.currentIndex=e}}customElements.define("quote-carousel",c);

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.