Improve image handling & fix shadows
This commit is contained in:
parent
bc5074b28d
commit
2bb2117a59
47 changed files with 330 additions and 329 deletions
19
src/page/figure/video/video.ts
Normal file
19
src/page/figure/video/video.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { Figure } from '../figure';
|
||||
import { VideoParameters } from './video-parameters';
|
||||
import { generate } from './video.html';
|
||||
|
||||
export class Video extends Figure {
|
||||
public constructor(options: VideoParameters) {
|
||||
super(generate(options), {
|
||||
hasButton: true,
|
||||
invertButton: options.invertButton,
|
||||
});
|
||||
}
|
||||
|
||||
protected async onClick() {
|
||||
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