●
●
●
●
●
●
All form elements
document.addEventListener('DOMContentLoaded', function () { const params = new URLSearchParams(window.location.search); const theme = params.get('theme'); const validThemes = ['corporate', 'non-corporate', 'non-corporate-elegant']; // Remove any existing theme classes validThemes.forEach(t => document.body.classList.remove('theme-' + t)); // Add the selected theme if valid if (validThemes.includes(theme)) { document.body.classList.add('theme-' + theme); } else { // Default to light if no valid theme is found document.body.classList.add('theme-corporate'); } });