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

92 lines
3.3 KiB
HTML
Raw Normal View History

<div [hidden]="!isVisible()" #root>
2016-04-30 18:33:07 +02:00
<div class="blackCanvas"
[style.opacity]="blackCanvasOpacity">
</div>
2017-07-10 22:00:22 +02:00
<div class="lightbox" #lightbox>
2018-11-04 19:28:32 +01:00
<app-gallery-lightbox-photo [gridMedia]="activePhoto ? activePhoto.gridPhoto : null"
[loadMedia]="!animating"
2018-05-13 22:10:56 -04:00
[windowAspect]="getWindowAspectRatio()"
2018-05-03 19:17:08 -04:00
#photo>
</app-gallery-lightbox-photo>
</div>
<div
2017-07-17 18:30:16 +02:00
(swipeleft)="nextImage()" (swiperight)="prevImage()" (swipeup)="hide()"
*ngIf="controllersVisible"
2017-07-16 20:49:12 +02:00
id="controllers-container" #controls [style.width.px]="getPhotoFrameWidth()"
[ngClass]="!controllersDimmed ? 'dim-controls': ''">
<div class="controls controls-top">
2018-05-13 22:10:56 -04:00
<a *ngIf="activePhoto"
class="highlight control-button"
[href]="activePhoto.gridPhoto.getPhotoPath()"
2018-11-04 19:28:32 +01:00
[download]="activePhoto.gridPhoto.media.name">
2018-05-13 22:10:56 -04:00
<span class="oi oi-data-transfer-download"
2018-03-29 20:30:23 -04:00
title="download" i18n-title></span>
</a>
2018-05-13 22:10:56 -04:00
<div class=" highlight control-button" (click)="toggleInfoPanel()"
title="info" i18n-title>
<span class="oi oi-info"></span>
</div>
2018-05-13 22:10:56 -04:00
<div *ngIf="fullScreenService.isFullScreenEnabled()"
class=" highlight control-button"
(click)="fullScreenService.exitFullScreen()"
title="toggle fullscreen" i18n-title>
<span class="oi oi-fullscreen-exit">
2018-05-13 16:59:57 -04:00
2018-05-13 22:10:56 -04:00
</span>
</div>
2018-05-13 22:10:56 -04:00
<div *ngIf="!fullScreenService.isFullScreenEnabled()"
class="highlight control-button"
(click)="fullScreenService.showFullScreen(root)"
title="toggle fullscreen" i18n-title>
<span class="oi oi-fullscreen-enter">
</span>
</div>
<div class="highlight control-button"
(click)="hide()"
title="close" i18n-title>
<span class="oi oi-x">
</span>
</div>
2016-04-30 18:33:07 +02:00
</div>
2016-05-13 14:27:00 +02:00
<div class="navigation-arrow highlight"
2018-03-29 20:30:23 -04:00
*ngIf="navigation.hasPrev" title="key: left arrow" id="leftArrow" i18n-title
(click)="prevImage()"><span
2018-05-13 16:59:57 -04:00
class="oi oi-chevron-left"></span></div>
<div class="navigation-arrow highlight"
2018-03-29 20:30:23 -04:00
*ngIf="navigation.hasNext" title="key: right arrow" id="rightArrow" i18n-title
(click)="nextImage()"><span
2018-05-13 16:59:57 -04:00
class="oi oi-chevron-right"></span></div>
<div class="controls controls-playback">
2018-05-13 16:59:57 -04:00
<span class="oi oi-media-pause highlight control-button"
[ngClass]="playBackState == 0 ? 'button-disabled':''"
(click)="pause()"
title="pause"></span>
<span
2018-05-13 16:59:57 -04:00
class="oi oi-media-play highlight control-button"
[ngClass]="playBackState == 1 ? 'button-active':''"
(click)="play()"
title="auto play"></span>
2018-05-13 16:59:57 -04:00
<span class="oi oi-media-skip-forward highlight control-button"
[ngClass]="playBackState == 2 ? 'button-active':''"
(click)="fastForward()"
title="fast auto play"></span>
</div>
</div>
2018-05-03 19:17:08 -04:00
<app-info-panel *ngIf="activePhoto && infoPanelVisible"
id="info-panel"
[style.width.px]="infoPanelWidth"
2018-11-04 19:28:32 +01:00
[media]="activePhoto.gridPhoto.photo"
2018-05-03 19:17:08 -04:00
(onClose)="hideInfoPanel()">
2018-05-03 19:17:08 -04:00
</app-info-panel>
2016-05-12 23:00:38 +02:00
</div>