Refactor
This commit is contained in:
parent
86fc18bbc9
commit
ce14794eb6
20 changed files with 269 additions and 153 deletions
|
|
@ -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>` : ''}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue