Mercurial
view react_games/public/landing_page.js @ 261:b401627fc49e
Add JRPG mock flows and interactive previews
Add scripted mock SSE commands, custom event forwarding, animated chat turns, full-height message navigation, and a cyberpunk resume dossier.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <mrjunejune@users.noreply.github.com> |
|---|---|
| date | Wed, 05 Aug 2026 20:38:32 -0700 |
| parents | fb9bcd3145cb |
| children |
line wrap: on
line source
const createStars = (x, y) => { const star = document.createElement("div"); star.style.position = 'fixed'; star.style.left = x + 'px'; star.style.top = y + 'px'; star.style.width = '4px'; star.style.height = '4px'; star.style.background = 'white'; star.style.borderRadius = '50%'; star.style.pointerEvents = 'none'; star.style.zIndex = '1000'; star.style.animation = 'sparkleAnim 1s ease-out forwards'; document.body.appendChild(star); setTimeout(() => { star.remove(); }, 1000); } document.addEventListener('mousemove', (e) => { if (Math.random() > 0.99) { createStars(e.clientX, e.clientY); } });