diff --git a/static/js/confettiHeader.js b/static/js/confettiHeader.js new file mode 100644 index 0000000..68a27c1 --- /dev/null +++ b/static/js/confettiHeader.js @@ -0,0 +1,13 @@ +function randomInRange(min, max) { + return Math.random() * (max - min) + min; +} + +function doTheConfetti() { + // Create confetti + confetti({ + angle: randomInRange(90, 110), + spread: randomInRange(70, 120), + particleCount: randomInRange(100, 200), + origin: { y: 0.6, x: randomInRange(0.4, 0.8) }, + }); +}