Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main-deployment-branch' into mai…
Browse files Browse the repository at this point in the history
…n-deployment-branch
  • Loading branch information
hoangsonww committed Nov 5, 2024
2 parents 04cb859 + 303143e commit 622418b
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<link rel="preload" href="https://movie-verse.com/fonts/Poppins-Light.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
<link rel="preload" href="https://movie-verse.com/fonts/Poppins-Regular.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
<link rel="preload" href="https://movie-verse.com/fonts/Poppins-SemiBold.ttf" as="font" type="font/ttf" crossorigin="anonymous" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
Expand Down Expand Up @@ -1696,32 +1695,5 @@ <h2 id="other" style="cursor: pointer">Timeless Classics: Trending Classic Movie
searchInput.addEventListener('blur', clearSelection);
});
</script>
<script>
let confettiTriggered = false;

function launchConfetti() {
const confettiInstance = confetti.create(null, { resize: true });
confettiInstance({
particleCount: 150,
spread: 70,
origin: { y: 0.6 },
});

const canvas = document.querySelector('canvas');

if (canvas) {
canvas.style.zIndex = '9999999999';
canvas.style.position = 'fixed';
}
}

document.addEventListener('DOMContentLoaded', function () {
if (!confettiTriggered) {
launchConfetti();

confettiTriggered = true;
}
});
</script>
</body>
</html>

0 comments on commit 622418b

Please sign in to comment.