2023-11-05 18:28:17 +11:00
<!DOCTYPE html>
< html >
< meta name = "viewport" content = "width=device-width, initial-scale=1" >
< style >
body {
font-family: Arial;
margin: 0;
background: #222;
}
* {
box-sizing: border-box;
}
img {
vertical-align: middle;
}
/* Position the image container (needed to position the left and right arrows) */
.container {
align-items: center;
max-width: 900px;
align-items: center;
margin: 0 auto;
justify-content: space-evenly;
}
/* Hide the images by default */
.mySlides {
display: none;
}
/* Add a pointer when hovering over the thumbnail images */
.cursor {
cursor: pointer;
}
/* Position the "next button" to the right */
.next {
cursor: pointer;
width: 5px;
padding: 8px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
position:sticky;left: 300px;
}
/* Next & previous buttons */
.prev {
cursor: pointer;
top: 50%;
left: -50px;
width: 5px;
margin-top: -22px;
padding: 8px;
color: white;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
/* Container for image text */
.caption-container {
text-align: center;
background-color: #222;
padding: 2px 2px;
width: auto;
height: 100px;
color: white;
}
.row:after {
content: "";
display: flex;
clear: both;
align-items: center;
}
/* columns side by side */
.column {
width: 10%;
justify-content: space-evenly;
padding: 2%;
text-align: center;
float: left;
}
/* Add a transparency effect for thumnbail images */
.demo {
opacity: 0.6;
}
.active,
.demo:hover {
opacity: 1;
}
/* small computer screens */
@media only screen and (max-width: 992px) {
.container {
width: 550px;
}
}
/* tablets */
@media only screen and (max-width: 768px) {
.container {
width: 400px;
}
}
/* phones */
@media only screen and (max-width: 600px) {
.container {
width: auto;
margin: 1em;
}
}
< / style >
< body >
< h2 style = "color: rgb(255, 255, 255);text-align:center" > Trams Slideshow Gallery< / h2 >
< div class = "container" >
< div class = "mySlides" >
< div class = "numbertext" > 1 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0302.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 2 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0354.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 3 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0363.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 4 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0372.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 5 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0378.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 6 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0389.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 7 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0422.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 8 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0424.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 9 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0443.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 10 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0466.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 11 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0473.JPG" style = "width:100%" >
< / div >
< div class = "mySlides" >
< div class = "numbertext" > 12 / 12< / div >
< img src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0493.JPG" style = "width:100%" >
< / div >
< / div >
< div class = "caption-container" >
< p id = "caption" > < / p >
< a class = "prev" onclick = "plusSlides(-1)" > Prev ❮ < / a >
< a class = "next" onclick = "plusSlides(1)" > ❯ Next< / a >
< / div >
< div class = "row" >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0302.JPG" style = "width:100%" onclick = "currentSlide(1)" alt = "Tram 2016 at Elizabeth Street Terminus" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0354.JPG" style = "width:100%" onclick = "currentSlide(2)" alt = "Tram #880 Bendigo Tramways" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0363.JPG" style = "width:100%" onclick = "currentSlide(3)" alt = "Tram #880 Bendigo Tramways passing Tram #610 bound for Joss House in Bendigo" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0372.JPG" style = "width:100%" onclick = "currentSlide(4)" alt = "Bendigo Tramways Tram #880 at Stop #2 Mitchell ST/View ST" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0378.JPG" style = "width:100%" onclick = "currentSlide(5)" alt = "Bendigo Tramways Tram #880 at Stop #2 Mitchell ST/View ST" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0389.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Rear of Bendigo Tramways Tram #880 at Stop #2 Mitchell ST/View ST" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0389.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Rear of Bendigo Tramways Tram #880 at Stop #2 Mitchell ST/View ST" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0424.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Bendigo Tramways Tram #918 'Dja Dja Wurrung' Bound for Joss House" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0443.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Bendigo Tramways Tram #918 'Dja Dja Wurrung' at a Terminus Bound for Joss House" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0466.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Inside the cabin of Bendigo Tramways Tram #918 'Dja Dja Wurrung'" >
< / div >
< div class = "column" >
< img class = "demo cursor" src = "https://raw.githubusercontent.com/HeyJKSN/Photos.HeyJKSN.com/main/trams/DSCN0466.JPG" style = "width:100%" onclick = "currentSlide(6)" alt = "Inside the Tram of Bendigo Tramways Tram #918 'Dja Dja Wurrung'" >
< / div >
< / div >
< / div >
< script >
let slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
let i;
let slides = document.getElementsByClassName("mySlides");
let dots = document.getElementsByClassName("demo");
let captionText = document.getElementById("caption");
if (n > slides.length) {slideIndex = 1}
if (n < 1 ) { slideIndex = slides.length}
for (i = 0; i < slides.length ; i + + ) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length ; i + + ) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
captionText.innerHTML = dots[slideIndex-1].alt;
}
< / script >
2023-11-05 18:33:01 +11:00
< p > < center > made with ❤️ by Harper Innes < a href = "https://geekdom.social/@harper" > Mastodon< / a > < a href = "https://gitea.whisper.cat/harper" > Gitea< / a > < / p > < / center >
2023-11-05 18:28:17 +11:00
< / body >
< / html >