document.addEventListener('DOMContentLoaded', function () { // Ensure viewport meta tag exists if (!document.querySelector('meta[name="viewport"]')) { const meta = document.createElement('meta'); meta.name = 'viewport'; meta.content = 'width=device-width, initial-scale=1.0'; document.head.appendChild(meta); } // Add CSS styles const style = document.createElement('style'); style.textContent = ` html, body { overflow-x: hidden; margin: 0; padding: 0; } footer { background-color: #ffffff; border-top: 1px solid #e5e7eb; padding: 12px 0; width: 100%; font-family: sans-serif; font-size: 12px; color: #6b7280; } .heart-icon { height: 16px; width: 16px; vertical-align: middle; margin: 0 4px; } .footer-container { max-width: 1200px; margin: 0 auto; padding: 0 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; } .footer-row { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 8px; } .footer-left, .footer-center, .footer-right { display: flex; align-items: center; gap: 8px; } .footer-left img { height: 24px; width: 24px; display: none; } .footer-center { font-style: italic; } .footer-center svg { height: 12px; width: 12px; fill: #16a34a; } .footer-right a { color: #6b7280; text-decoration: none; transition: color 0.2s ease; } .footer-right a:hover { color: #16a34a; } .footer-right svg { width: 16px; height: 16px; fill: currentColor; } @media (min-width: 640px) { footer { padding: 16px 0; font-size: 14px; } .footer-container { flex-direction: row; justify-content: space-between; } .footer-left img { display: block; height: 28px; width: 28px; } .footer-center svg { height: 16px; width: 16px; } .footer-right svg { width: 20px; height: 20px; } } `; document.head.appendChild(style); // Footer HTML const year = new Date().getFullYear(); const footerHTML = ` `; document.body.insertAdjacentHTML('beforeend', footerHTML); });