// Sample live collaborations data const liveCollabs = [ { id: 1, title: "Digital Mural Project", type: "art", users: 4, thumb: "http://static.photos/art/320x240/1" }, { id: 2, title: "Ambient Soundscape", type: "music", users: 3, thumb: "http://static.photos/music/320x240/2" }, { id: 3, title: "Poetry & Visuals", type: "writing", users: 2, thumb: "http://static.photos/writing/320x240/3" }, { id: 4, title: "Animation Collab", type: "animation", users: 5, thumb: "http://static.photos/animation/320x240/4" } ]; document.addEventListener('DOMContentLoaded', () => { // Render live collaborations const collabGrid = document.getElementById('liveCollabs'); liveCollabs.forEach(collab => { const collabCard = document.createElement('div'); collabCard.className = 'collab-card'; collabCard.innerHTML = `

${collab.title}

${collab.type}

${Array(collab.users).fill().map((_, i) => `` ).join('')} +${collab.users}
`; collabCard.addEventListener('click', () => { window.location.href = `/collab.html?id=${collab.id}`; }); collabGrid.appendChild(collabCard); }); // Add celebration effect to CTA buttons document.querySelectorAll('.btn').forEach(btn => { btn.addEventListener('click', (e) => { party.confetti(e.target, { count: 40, size: 1.5, spread: 20 }); }); }); });