1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/frontend/app/gallery/lightbox/photo/photo.lightbox.gallery.component.html

30 lines
928 B
HTML
Raw Normal View History

2016-05-13 14:27:00 +02:00
<div class="imgContainer" #imgContainer>
2018-03-30 15:30:30 -04:00
<img *ngIf="showThumbnail()"
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
2018-11-02 10:40:09 +01:00
[src]="thumbnailSrc"/>
2016-05-13 14:27:00 +02:00
2018-11-04 19:28:32 +01:00
<img *ngIf="gridMedia !== null && gridMedia.isPhoto() && loadMedia && photoSrc"
2017-07-15 23:54:17 +02:00
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
2018-11-02 10:40:09 +01:00
[src]="photoSrc"
2017-07-15 23:54:17 +02:00
(load)="onImageLoad()"
(error)="onImageError()"/>
2018-11-04 19:28:32 +01:00
<video *ngIf="gridMedia !== null && gridMedia.isVideo() && loadMedia"
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
(loadeddata)="logevent($event)"
(loadedmetadata)="logevent($event)"
(durationchange)="logevent($event)"
(loadstart)="logevent($event)"
autoplay
controls
(error)="onImageError()">
<source [src]="gridMedia.getPhotoPath()" type="video/mp4">
</video>
2016-05-13 14:27:00 +02:00
</div>