This commit is contained in:
Schmelczer András 2020-01-23 10:08:16 +01:00
parent 86fc18bbc9
commit ce14794eb6
20 changed files with 269 additions and 153 deletions

View file

@ -8,16 +8,16 @@ export class Video implements Primitive {
private readonly webm: url,
private readonly options?: string
) {}
public toHTML(disableInnerShadow = false): string {
public toHTML(noContainer = false): string {
return `
${!disableInnerShadow ? `<div class="figure-container">` : ''}
${!noContainer ? `<div class="figure-container">` : ''}
<video ${this.options} ${
this.poster ? `poster="${this.poster}` : ''
}" >
<source src="${this.webm}" type="video/webm"/>
<source src="${this.mp4}" type="video/mp4"/>
</video>
${!disableInnerShadow ? `</div>` : ''}
${!noContainer ? `</div>` : ''}
`;
}
}