UNPKG

claude-code-web

Version:

Web-based interface for Claude Code CLI accessible via browser

18 lines (15 loc) 517 B
// Smooth scroll for internal anchor links and dynamic year (function(){ const yearEl = document.getElementById('year'); if (yearEl) yearEl.textContent = new Date().getFullYear(); document.addEventListener('click', (e) => { const a = e.target.closest('a[href^="#"]'); if (!a) return; const id = a.getAttribute('href'); const target = document.querySelector(id); if (target) { e.preventDefault(); target.scrollIntoView({ behavior: 'smooth', block: 'start' }); } }); })();