matrix-dimension/web/app/widget-wrappers/generic/generic.component.html
Travis Ralston 17656e8cf7 Implement basic postMessage widget API components
This implements a 'screenshot' button on the generic widget wrapper, although there's several bugs with the current Riot implementation that prevent it from working and that is why it is commented out.

Fixes #155. Even if it doesn't work.
2018-05-11 21:58:10 -06:00

13 lines
No EOL
638 B
HTML

<div class="wrapper">
<div class="control-page" *ngIf="isLoading || !canEmbed">
<div class="loading-badge" *ngIf="isLoading">
<my-spinner></my-spinner>
</div>
<div class="embed-failed" *ngIf="!isLoading && !canEmbed">
<p class="ban"><i class="fa fa-ban"></i></p>
<h4>Sorry, this content cannot be embedded</h4>
</div>
</div>
<iframe [src]="embedUrl" *ngIf="!isLoading && canEmbed" frameborder="0" allowfullscreen myScreenshotCapable=""></iframe>
<my-fullscreen-button *ngIf="!isLoading && canEmbed" class="toggleFullscreen"></my-fullscreen-button>
</div>