1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/lightbox/lightbox.gallery.component.html

73 lines
3.2 KiB
HTML
Raw Normal View History

2016-07-06 18:53:49 +08:00
<div [hidden]="!visible" #root>
2016-05-01 00:33:07 +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"
[windowAspect]="getPhotoFrameWidth()/getPhotoFrameHeight()"
#photo>
</app-gallery-lightbox-photo>
</div>
<div
2017-07-18 00:30:16 +08:00
(swipeleft)="nextImage()" (swiperight)="prevImage()" (swipeup)="hide()"
*ngIf="controllersVisible"
2017-07-17 02:49:12 +08:00
id="controllers-container" #controls [style.width.px]="getPhotoFrameWidth()"
[ngClass]="!controllersDimmed ? 'dim-controls': ''">
<div class="controls controls-top">
<a *ngIf="activePhoto" [href]="activePhoto.gridPhoto.getPhotoPath()"
[download]="activePhoto.gridPhoto.photo.name">
<span class="glyphicon glyphicon-download-alt highlight control-button"
2018-03-30 08:30:23 +08:00
title="download" i18n-title></span>
</a>
<span class="glyphicon glyphicon-info-sign highlight control-button" (click)="toggleInfoPanel()"
2018-03-30 08:30:23 +08:00
title="info" i18n-title></span>
<span class=" glyphicon glyphicon-resize-small highlight control-button"
*ngIf="fullScreenService.isFullScreenEnabled()"
2018-03-30 08:30:23 +08:00
(click)="fullScreenService.exitFullScreen()" title="toggle fullscreen" i18n-title></span>
<span class="glyphicon glyphicon-fullscreen highlight control-button"
*ngIf="!fullScreenService.isFullScreenEnabled()"
2018-03-30 08:30:23 +08:00
(click)="fullScreenService.showFullScreen(root)" title="toggle fullscreen" i18n-title></span>
2018-05-04 06:23:48 +08:00
<span class="glyphicon glyphicon-remove highlight control-button" (click)="hide()" title="close"
i18n-title></span>
2016-05-01 00:33:07 +08:00
</div>
2016-05-13 20:27:00 +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
(click)="prevImage()"><span
class="glyphicon glyphicon-chevron-left"></span></div>
<div class="navigation-arrow highlight"
2018-03-30 08:30:23 +08:00
*ngIf="navigation.hasNext" title="key: right arrow" id="rightArrow" i18n-title
(click)="nextImage()"><span
class="glyphicon glyphicon-chevron-right"></span></div>
<div class="controls controls-playback">
<span class="glyphicon glyphicon-pause highlight control-button"
[ngClass]="playBackState == 0 ? 'button-disabled':''"
(click)="pause()"
title="pause"></span>
<span
class="glyphicon glyphicon-play highlight control-button"
[ngClass]="playBackState == 1 ? 'button-active':''"
(click)="play()"
title="auto play"></span>
<span class="glyphicon glyphicon-forward highlight control-button"
[ngClass]="playBackState == 2 ? 'button-active':''"
(click)="fastForward()"
title="fast auto play"></span>
</div>
</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()">
2018-05-04 07:17:08 +08:00
</app-info-panel>
2016-05-13 05:00:38 +08:00
</div>