document.addEventListener('DOMContentLoaded', function() { const events = document.querySelectorAll('.event'); // Använd rätt klassnamn från EventIgniter const now = new Date(); const upcomingContainer = document.querySelector('#upcoming-events'); const pastContainer = document.querySelector('#past-events'); events.forEach(event => { const eventDate = new Date(event.getAttribute('data-date')); // Kolla om EventIgniter sätter data-attribut för datum // Jämför datumet med dagens datum if (eventDate >= now) { upcomingContainer.appendChild(event); } else { pastContainer.appendChild(event); } }); });
Gemenskap – Din godhet ska följa mig

Gemenskap – Din godhet ska följa mig

Gemenskap Din godhet ska följa mig Gemenskap (Community) is the name of an appreciated series of hymns, where the focus is on acoustic and quiet songs. Different singers and musicians participate on the albums each time, so the focus is rather on the songs, than on...
Hawk Division – We are the Hawk Division

Hawk Division – We are the Hawk Division

Hawk Division We Are The Hawk Division These two young gentlemen sent me some ideas that they had recorded on a cellphone, and asked me to turn it into a song. Not only that. They also wanted me to take photos and design a cover, so I did and we had a great time...