Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
malacoscolicine
/
dev2024_old_skip
/
wp-content
/
plugins
/
presto-player
/
dist
/
components
/
components
:
presto-timestamp.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import{proxyCustomElement,HTMLElement,h}from"@stencil/core/internal/client";const prestoTimestampCss=":host{display:inline}",PrestoTimestamp$1=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.time=void 0}handleClick(e){e.preventDefault();const t=document.body.querySelector("presto-player");t&&t.goToAndPlay(this.timeToSeconds(this.time))}timeToSeconds(e){let t,s=e.split(":");return s.length>1&&(t=60*parseInt(s[0])),parseInt(s[1])+parseInt(t)}render(){return h("a",{href:"#",class:"presto-timestamp",onClick:e=>this.handleClick(e)},h("slot",null,this.time))}static get style(){return prestoTimestampCss}},[4,"presto-timestamp",{time:[1]}]);function defineCustomElement$1(){"undefined"!=typeof customElements&&["presto-timestamp"].forEach((e=>{"presto-timestamp"===e&&(customElements.get(e)||customElements.define(e,PrestoTimestamp$1))}))}defineCustomElement$1();const PrestoTimestamp=PrestoTimestamp$1,defineCustomElement=defineCustomElement$1;export{PrestoTimestamp,defineCustomElement};