Improve image handling & fix shadows
This commit is contained in:
parent
bc5074b28d
commit
2bb2117a59
47 changed files with 330 additions and 329 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue