Skip to content

Commit

Permalink
feat: add gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
imantsk authored Sep 2, 2024
1 parent 1647af7 commit 93df3d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/flowbite.min.js"></script>
<script src="https://cdn.tailwindcss.com?plugins=typography,aspect-ratio,container-queries"></script>
<script src="js/tconfig.js?v1.3" uncache></script>
<script src="js/main.js?v2.4" uncache></script>
<script src="js/main.js?v2.5" uncache></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down
14 changes: 0 additions & 14 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ document.addEventListener("DOMContentLoaded", function () {
const playStopBtn = document.getElementById("playStop");
const muteUnmuteBtn = document.getElementById("muteUnmute");
const detailsElements = document.querySelectorAll("details");
const albumFrame = document.getElementById("album_2023");

let audioContext, analyser, source, bufferLength, dataArray;
let isAudioInitialized = false;
Expand Down Expand Up @@ -132,17 +131,4 @@ document.addEventListener("DOMContentLoaded", function () {
}
});
});

function cleanAlbumizr(albumIframe) {
const iframeDocument =
albumIframe.contentDocument || albumIframe.contentWindow.document;
const elementToRemove = iframeDocument.getElementById("albumizrTag");
if (elementToRemove) {
elementToRemove.remove();
}
}

albumFrame.addEventListener("load", function () {
cleanAlbumizr(albumFrame);
});
});

0 comments on commit 93df3d1

Please sign in to comment.