GET PAID TO CHAT WITH LONELY PEOPLE
Ready to Earn by Making a Difference?
];
function updateRadioStyles() { radioOptions.forEach(option => { const input = option.querySelector('input'); if (input.checked) { option.classList.add('selected'); } else { option.classList.remove('selected'); } }); }
function updateButtonState() { const isSelected = Array.from(radioButtons).some(radio => radio.checked); if (isSelected) { startButton.classList.remove('disabled'); const randomIndex = Math.floor(Math.random() * randomLinks.length); startButton.href = randomLinks[randomIndex]; } else { startButton.classList.add('disabled'); startButton.href = "#"; } }
updateRadioStyles(); updateButtonState();
radioButtons.forEach(radio => { radio.addEventListener('change', () => { updateRadioStyles(); updateButtonState(); }); });
