<script> document.getElementById('theme-switcher').addEventListener('click', function() { var currentTheme = document.body.getAttribute('data-theme'); if (currentTheme === 'light') { document.body.setAttribute('data-theme', 'dark'); } else { document.body.setAttribute('data-theme', 'light'); } }); </script>