PageSourceSearch

https://www.taize.fr/assets/controllers/simple-player_controller-ZfFPny6.js

js taize.fr collected 2026-09-24 09:06:36 UTC 754 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["audio","btn","time"];toggle(){this.audioTarget.paused?(this.audioTarget.play(),this.btnTarget.textContent="⏸"):(this.audioTarget.pause(),this.btnTarget.textContent="▶")}audioTargetConnected(){const e=this.audioTarget;e.addEventListener("ended",()=>{this.btnTarget.textContent="▶",this.timeTarget.textContent=this.format(e.duration)}),e.addEventListener("loadedmetadata",()=>{this.timeTarget.textContent=this.format(e.duration)}),e.addEventListener("timeupdate",()=>{this.timeTarget.textContent=this.format(e.currentTime)})}format(e){if(!isFinite(e))return"0:00";const t=Math.floor(e/60);return`${t}:${Math.floor(e%60).toString().padStart(2,"0")}`}}

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.