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