MCPXLE6LIQRLQA2OBQSVIH4O3HAEZZWKPQMEDERPBHN6IVOAVXVAC
EUMM2RHPFO5XQ6WMZO7PPRQK6A5WVOUTSPP4FSEP4EQWBXJYZN4QC
SXSLASK6UE4R24JBPAHVXH7IT4QVFU76T2ASPDIPI7HYKPF6M46QC
QX7XVNQYOTBDULUCLFRGSATHL7KWBSEV6QWNFY353S7ZIR6UGJWQC
NLSNNB46NE4J26V72TP27OHEZFUFG5REZ5N72FDWDNB5K4TAZQIAC
UW4WSPWD7TVQWURMTLRNW6LKVFLUVQT7NBUP5A4WMAIVHSLUPH7AC
A4YDN3ZM5CNM43BMK4BAEB6I2GVQQZUKBCZYMYCRVZSS6EXRY3VAC
line-height: 3.0em;
padding-right: 36px;
cursor: default;
}
footer .right {
position: absolute;
right: 12px;
top:0;
text-align: right;
width: 45%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
footer .left {
position: absolute;
left: 12px;
top:0;
text-align: left;
width: 45%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
<div class="albumList"
data-sub-html="{{meta.caption_notused}}"
data-download-url="{{relative urls.download}}"
{{~#if isVideo~}}
data-html="#media{{id}}"
{{~else~}}
data-src="{{relative urls.large}}"
{{~/if~}}
data-exthumbimage="{{relative urls.thumbnail}}"
data-filename="{{filename}}"
{{#if meta.exif}}
data-datetimeoriginal="{{meta.exif.DateTimeOriginal}}"
data-fnumber="{{meta.exif.FNumber}}"
data-exposuretime="{{meta.exif.ExposureTime}}"
data-isospeedratings="{{meta.exif.ISO}}"
data-focallength="{{meta.exif.FocalLength}}"
data-lens="{{meta.exif.Lens}}"
data-model="{{meta.exif.Model}}"
data-make="{{meta.exif.Make}}"
data-gpslatitude="{{meta.exif.GPSLatitude}}"
data-gpslongitude="{{meta.exif.GPSLongitude}}"
data-gpslatituderef="{{meta.exif.GPSLatitudeRef}}"
data-gpslongituderef="{{meta.exif.GPSLongitudeRef}}"
data-gpsaltitude="{{meta.exif.GPSAltitude}}"
{{/if}}>
<div {{{photoMeta meta}}} {{~#if isVideo~}} data-html="#media{{id}}"{{~else~}} data-src="{{relative urls.large}}"{{~/if~}} data-exthumbimage="{{relative urls.thumbnail}}" data-filename="{{filename}}">
{{~#if isVideo~}}
<a href="{{relative urls.download}}">
{{~else~}}
<a href="{{relative urls.large}}">
{{~/if~}}
<img src="{{relative urls.small}}" alt="{{#if meta.exif}} {{{meta.exif.DateTimeOriginal}}} {{else}} {{{meta.date}}} {{/if}}" />
<span class="show-gallery icon-zoom-in"></span>
</a>
{{~#if isVideo~}}<a href="{{relative urls.download}}">{{~else~}}<a href="{{relative urls.large}}">{{~/if~}}
<img class="fotopreview" src="{{relative urls.small}}" alt="{{#if meta.exif}} {{{meta.exif.DateTimeOriginal}}} {{else}} {{{meta.date}}} {{/if}}" />
<span class="show-gallery icon-zoom-in"></span></a>
{{!-- Optional footer --}}
{{#if gallery.footer}}
<footer><p>{{{gallery.footer}}}</p></footer>
{{/if}}
{{!-- footer --}}
<footer>
{{#compare album.title '==' 'Home'}}
<div class="left">• {{gallery.title}} •{{album.summary}}</div>
{{else}}
<div class="left">• {{album.title}} •{{album.summary}}</div>
{{/compare}}
<div class="right">{{#if gallery.footer}}{{{gallery.footer}}}: {{/if}} • Copyright © 2019 Peter Siebler. All rights reserved.</div>
</footer>
<a href="{{relative url}}" class="card">
<div class="card-photo" style="background-image: url('{{relative previews.0.urls.large}}')"></div>
<a href="{{relative url}}" class="card" title="Show Gallery {{title}}">
<div class="card-photo" style="background-image: url('{{relative previews.0.urls.small}}')"></div>
/*
* get the meta data for a foto
* @call: photoMeta meta
*/
"use strict";
var attr = {};
module.exports = meta => {
var retval = '';
attr = {};
if (meta) {
attr['class'] = 'albumList';
if (meta.caption)
checkMeta('data-sub-html', meta.caption.trim());
if (meta.exif) {
checkMeta('data-datetimeoriginal', meta.exif.DateTimeOriginal);
checkMeta('data-fnumber', meta.exif.FNumber);
checkMeta('data-exposuretime', meta.exif.ExposureTime);
checkMeta('data-exposuretime', meta.exif.ExposureTime);
checkMeta('data-exposuretime', meta.exif.ExposureTime);
checkMeta('data-isospeedratings', meta.exif.ISO);
checkMeta('data-focallength', meta.exif.FocalLength);
checkMeta('data-lens', meta.exif.Lens);
checkMeta('data-model', meta.exif.Model);
checkMeta('data-make', meta.exif.Make);
checkMeta('data-gpslatitude', meta.exif.GPSLatitude);
checkMeta('data-gpslongitude', meta.exif.GPSLongitude);
checkMeta('data-gpslatituderef', meta.exif.GPSLatitudeRef);
checkMeta('data-gpslongituderef', meta.exif.GPSLongitudeRef);
}
retval = (Object.keys(attr).map(key => key + '="' + attr[key]).join('" ')) + '"';
}
// console.log(retval);
return retval;
}
function checkMeta(name, v) {
var metaval = (v) ? v : null;
if (metaval) attr[name] = metaval;
}