mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
|
|
{
|
||
|
|
class AudioPlayer extends HTMLElement{
|
||
|
|
constructor(){
|
||
|
|
super()
|
||
|
|
|
||
|
|
this.attachShadow({ mode: 'open' });
|
||
|
|
this.render();
|
||
|
|
}
|
||
|
|
|
||
|
|
render(){
|
||
|
|
this.shadowRoot.innerHTML = `
|
||
|
|
<audio *ngIf="audioRecorded" controls src="assets/audio/Audiorecord.mp3"></audio>
|
||
|
|
`;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
customElements.define('audio-player', AudioPlayer)
|
||
|
|
}
|