// Document ready function document.addEventListener('DOMContentLoaded', function() { // Add any JavaScript functionality here console.log('Excel Code Wizard is ready!'); // Example: Copy code to clipboard const copyButtons = document.querySelectorAll('.copy-btn'); copyButtons.forEach(button => { button.addEventListener('click', () => { const codeBlock = button.parentElement.querySelector('code'); navigator.clipboard.writeText(codeBlock.textContent) .then(() => { const originalText = button.textContent; button.textContent = 'Copied!'; setTimeout(() => { button.textContent = originalText; }, 2000); }); }); }); });