You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
6.1 KiB
HTML
173 lines
6.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>source</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta charset="utf-8">
|
|
|
|
<link href="fastgallery.css" rel="stylesheet">
|
|
|
|
<link href="primer.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body class="bg-gray">
|
|
<div id="thumbnails">
|
|
<h1 class="px-2 pb-2 my-0 m-md-3 m-lg-4">source</h1>
|
|
|
|
<!-- Thumbnail view. First subfolders. -->
|
|
<div class="container-xl m-0 m-md-2 m-lg-3">
|
|
|
|
|
|
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<a href="subdir">
|
|
<img class="box border border-gray box-shadow width-fit" src="folder.png" alt="subdir">
|
|
</a>
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">subdir</span>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/cranes.jpg" alt="cranes.jpg" onclick="changePicture(0);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">cranes.jpg</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/dog.jpg" alt="dog.heic" onclick="changePicture(1);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">dog.heic</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/panorama.jpg" alt="panorama.heic" onclick="changePicture(2);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">panorama.heic</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/screenshot.jpg" alt="screenshot.png" onclick="changePicture(3);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">screenshot.png</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/street.jpg" alt="street.jpg" onclick="changePicture(4);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">street.jpg</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/tablet.jpg" alt="tablet.heic" onclick="changePicture(5);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">tablet.heic</span>
|
|
</div>
|
|
|
|
<div class="col-4 col-md-3 col-lg-2 float-left p-md-2 p-lg-3">
|
|
<img class="box border border-gray box-shadow width-fit" src="_thumbnail/video.jpg" alt="video.mp4" onclick="changePicture(6);displayModal(true);">
|
|
<span class="px-2 pb-2 width-fit css-truncate css-truncate-target">video.mp4</span>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal which shows individual pictures full-screen.
|
|
Covers thumbnail view. Hidden by default, unless URL contains
|
|
hashtag and thumbnail name. -->
|
|
<div class="position-fixed top-0 left-0 width-full height-full d-flex flex-column flex-justify-center flex-items-center box border border-gray box-shadow bg-gray" id="modal" hidden>
|
|
<div class="bg-gray clearfix position-absolute top-0 p-1" id="modalHeader">
|
|
<div class="float-right modalControl float-left" onclick="displayModal(false);">
|
|
<i data-feather="x"></i>
|
|
</div>
|
|
<div class="float-right modalControl float-left">
|
|
<a href="#" id="modalDownload" download>
|
|
<i data-feather="download"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div id="modalMedia" class="d-flex flex-justify-center"></div>
|
|
<div class="bg-gray position-absolute bottom-0 d-flex flex-justify-center p-1" id="modalFooter">
|
|
<div class="float-left modalControl float-left" onclick="prevPicture();">
|
|
<i data-feather="chevron-left"></i>
|
|
</div>
|
|
<div class="mx-auto float-left width-fit css-truncate css-truncate-target" id="modalDescription"></div>
|
|
<div class="float-right modalControl float-left" onclick="nextPicture();">
|
|
<i data-feather="chevron-right"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Statically generated javascript array of pictures on this page -->
|
|
<script>
|
|
const pictures = [
|
|
|
|
|
|
{
|
|
thumbnail: "_thumbnail/cranes.jpg",
|
|
fullsize: "_fullsize/cranes.jpg",
|
|
original: "_original/cranes.jpg",
|
|
filename: "cranes.jpg"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/dog.jpg",
|
|
fullsize: "_fullsize/dog.jpg",
|
|
original: "_original/dog.heic",
|
|
filename: "dog.heic"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/panorama.jpg",
|
|
fullsize: "_fullsize/panorama.jpg",
|
|
original: "_original/panorama.heic",
|
|
filename: "panorama.heic"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/screenshot.jpg",
|
|
fullsize: "_fullsize/screenshot.jpg",
|
|
original: "_original/screenshot.png",
|
|
filename: "screenshot.png"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/street.jpg",
|
|
fullsize: "_fullsize/street.jpg",
|
|
original: "_original/street.jpg",
|
|
filename: "street.jpg"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/tablet.jpg",
|
|
fullsize: "_fullsize/tablet.jpg",
|
|
original: "_original/tablet.heic",
|
|
filename: "tablet.heic"
|
|
}
|
|
|
|
,
|
|
{
|
|
thumbnail: "_thumbnail/video.jpg",
|
|
fullsize: "_fullsize/video.mp4",
|
|
original: "_original/video.mp4",
|
|
filename: "video.mp4"
|
|
}
|
|
|
|
]
|
|
</script>
|
|
|
|
<script src="fastgallery.js"></script>
|
|
|
|
<script src="feather.min.js"></script>
|
|
|
|
<script src="serviceWorker.js"></script>
|
|
|
|
<script>
|
|
feather.replace()
|
|
</script>
|
|
|
|
</body>
|
|
</html> |