-
Notifications
You must be signed in to change notification settings - Fork 0
/
photos.liquid
133 lines (111 loc) · 4.86 KB
/
photos.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
{% capture baseRoot %}
{% relativeUrl "/" %}{% endcapture %}
<head>
<link rel="stylesheet" href={{baseRoot | append: "/css/slideshow.css" }}>
<link rel="stylesheet" href={{baseRoot | append: "/css/header.css"}}>
<link rel="stylesheet" href={{baseRoot | append: "/css/footer.css"}}>
{% comment %}
<script src={{baseRoot | append: "/scripts/slideControls.js" }}></script>
{% endcomment %}
<meta charset="utf-8">
<title>Orphan Train Passengers</title>
<script>
// Used for the slideshow features
let slideIndex = 1;
// Next/previous controls
function moveSlides(n) {
showSlides(slideIndex += n);
}
// Thumbnail image controls
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("slide");
if (n > slides.length) {
slideIndex = 1
}
if (n < 1) {
slideIndex = slides.length
}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slides[slideIndex - 1].style.display = "block";
}
// load the picture at the beginning of the site
window.onload = function() {
showSlides(slideIndex);
}
</script>
</head>
<body>
{% comment %}
This contains all photos and links to the pages
{% endcomment %}
{% render 'header', urlRoot: baseRoot %}
<div class="slideshow-wrapper">
<div class="slide">
<div class="counter">1/6</div>
<img src={{ baseRoot | append: "/images/17954-resized.webp" }} alt="Photo of Panzer Brothers" />
<p class="caption">Photo of the Panzer Brothers, 1930.</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne01405/index.html" }} class="passengerLink">Robert A. Panzer</a>
<a href={{ baseRoot | append: "/people/otr.ne01404/index.html" }} class="passengerLink">John C. Panzer</a>
<a href={{ baseRoot | append: "/people/otr.ne01402/index.html" }} class="passengerLink">George Oliver Panzer</a>
<a href={{ baseRoot | append: "/people/otr.ne01401/index.html" }} class="passengerLink">Edward Joseph Clarence Panzer</a>
<a href={{ baseRoot | append: "/people/otr.ne01403/index.html" }} class="passengerLink">Harold J. Panzer</a>
</div>
</div>
<div class="slide">
<div class="counter">2/6</div>
<img src={{ baseRoot | append: "/images/17955-resized.webp" }} alt="Photo of Robert Panzer" />
<p class="caption">Robert Panzer, New York, 1921.</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne01405/index.html" }} class="passengerLink">Robert A. Panzer</a>
</div>
</div>
<div class="slide">
<div class="counter">3/6</div>
<img src={{ baseRoot | append: "/images/17956-resized.webp" }} alt="Photo of Harold Panzer" />
<p class="caption">Harold Panzer, New York, 1921.</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne01403/index.html" }} class="passengerLink">Harold J. Panzer</a>
</div>
</div>
<div class="slide">
<div class="counter">4/6</div>
<img src={{ baseRoot | append: "/images/17957-resized.webp" }} alt="Photo of John Panzer" />
<p class="caption">John Panzer, New York, 1921.</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne01404/index.html" }} class="passengerLink">John C. Panzer</a>
</div>
</div>
<div class="slide">
<div class="counter">5/6</div>
<img src={{ baseRoot | append: "/images/17958-resized.webp" }} alt="Photo of George Panzer" />
<p class="caption">John Panzer, New York, 1921.</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne01402/index.html" }} class="passengerLink">George Oliver Panzer</a>
</div>
</div>
<div class="slide">
<div class="counter">6/6</div>
<img src={{ baseRoot | append: "/images/24422-resized.webp" }} alt="Photo of Toni Weiler" />
<p class="caption">Black and White Photographic Print of a Portrait of Toni Weiler. circa 1915</p>
<div class="links">
Look here for more information: <br/>
<a href={{ baseRoot | append: "/people/otr.ne00894/index.html" }} class="passengerLink">Toni Weiler (Birth name Mary Brown)</a>
</div>
</div>
<button class="prev" onclick="moveSlides(-1)">❮</button>
<button class="next" onclick="moveSlides(1)">❯</button>
</div>
{% render 'footer', urlRoot: baseRoot %}
</body>
</html>