parent
da63762a55
commit
eaf21e05a7
@ -1,9 +1,39 @@ |
|||||||
--- |
--- |
||||||
title: Photo Gallery |
title: Photo Gallery |
||||||
--- |
--- |
||||||
<p> |
<script> |
||||||
These are some of my favorite photos I've taken over the course of several years. They were all taken on film, and with the exception of a few, they were completely developed by myself. I develop a negative and then scan it using an Epson scanner and then store them in my digital archive. I use an old Canon Rebel EOS, shooting entirely on manual mode. The color photos were mostly taken on cheap FUJI reels, while the black and white are ILFORD reels. |
let slideIndex = 0; |
||||||
|
let slides; |
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", function() { |
||||||
|
slides = document.querySelectorAll(".photo"); |
||||||
|
slideIndex = Math.floor(Math.random() * slides.length); |
||||||
|
showSlide(slideIndex); |
||||||
|
}); |
||||||
|
|
||||||
|
// Next/previous controls |
||||||
|
function changeSlides(n) { |
||||||
|
slideIndex += n; |
||||||
|
|
||||||
|
if (slideIndex >= slides.length) { |
||||||
|
slideIndex = 0; |
||||||
|
} |
||||||
|
|
||||||
|
if (slideIndex < 0) { |
||||||
|
slideIndex = slides.length - 1; |
||||||
|
} |
||||||
|
|
||||||
I recently acquired a digital version of the Rebel. Some of the photos here were taken using that machine. |
showSlide(slideIndex); |
||||||
|
} |
||||||
|
|
||||||
|
function showSlide(n) { |
||||||
|
slides.forEach((slide, i) => { |
||||||
|
slide.style.display = i === n ? "inherit" : "none"; |
||||||
|
}); |
||||||
|
} |
||||||
|
|
||||||
|
</script> |
||||||
|
|
||||||
|
<p> |
||||||
|
These are some of my favorite photos I've taken over the course of several years. These are mostly self-developed film photos, although some of them are from my new digital camera. My workflow is to develop a negative and then scan it using an Epson scanner; I then store it digitally. I use an old Canon Rebel EOS, shooting entirely on manual mode. The color photos were mostly taken on cheap FUJI reels, while the black and white are ILFORD reels. |
||||||
</p> |
</p> |
||||||
|
@ -1,4 +1,11 @@ |
|||||||
$body$ |
$body$ |
||||||
<div class="gallery"> |
<div class="gallery"> |
||||||
|
<div> |
||||||
|
<a class="prev" onclick="changeSlides(-1)">❮</a> |
||||||
|
</div> |
||||||
$art$ |
$art$ |
||||||
|
<div> |
||||||
|
<a class="next" onclick="changeSlides(1)">❯</a> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
<br/> |
||||||
|
Loading…
Reference in new issue