Improve image handling & fix shadows

This commit is contained in:
Andras Schmelczer 2022-09-28 14:18:17 +02:00
parent bc5074b28d
commit 2bb2117a59
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
47 changed files with 330 additions and 329 deletions

View file

@ -1,18 +0,0 @@
import { PageElement } from '../page-element';
import { VideoParameters } from './video-parameters';
import { generate } from './video.html';
export class Video extends PageElement {
public constructor(options: VideoParameters) {
super(generate(options));
this.query('.start-button').addEventListener('click', this.startVideo.bind(this));
}
private async startVideo() {
this.query('.start-button').style.visibility = 'hidden';
this.htmlRoot.classList.add('loaded');
await (this.query('video') as HTMLVideoElement).play();
}
}