Skip to content

Commit

Permalink
switch lightbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge0rges committed Feb 1, 2025
1 parent 2ac1cc2 commit 5185b85
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions photography.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">

<!-- Lightbox CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.5/css/lightbox.css" rel="stylesheet">

<!-- Custom CSS -->
<style>
:root {
Expand Down Expand Up @@ -131,7 +128,7 @@ <h1><a href="#" id="back-link">Georges Kanaan</a></h1>
</div>

<!-- Lightbox JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.5/js/lightbox-plus-jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.bundle.min.js"></script>

<!-- JavaScript to Load Images from GitHub -->
<script>
Expand Down Expand Up @@ -168,7 +165,7 @@ <h1><a href="#" id="back-link">Georges Kanaan</a></h1>
const fullResImgSrc = `https://raw.githubusercontent.com/${GITHUB_USER}/${REPO_NAME}/${BRANCH}/${FOLDER_PATH}/${fileName}`;

const imgElement = `
<a href="${fullResImgSrc}" data-lightbox="gallery">
<a href="${fullResImgSrc}" data-toggle="lightbox">
<img src="${compressedImgSrc}" alt="${fileName}">
</a>
`;
Expand Down

0 comments on commit 5185b85

Please sign in to comment.