import { mountTitlebar, initTitlebar } from './titlebar.js'; document.addEventListener('DOMContentLoaded', async () => { mountTitlebar(); await initTitlebar(); const currentPage = location.pathname.split('/').pop() || 'scene_dashboard.html'; const navItems = [ { href: 'scene_dashboard.html', label: '홈', svg: '' }, { href: 'scene_swipe.html', label: '정리', svg: '' }, { href: 'scene_gamification.html', label: '업적', svg: '' }, { href: 'scene_ai_classification.html', label: 'AI', svg: '' }, { href: 'scene_visualization.html', label: '시각화', svg: '' }, { href: 'scene_settings.html', label: '설정', svg: '' }, ]; const navHTML = ` `; document.body.insertAdjacentHTML('beforeend', navHTML); document.body.classList.add('md:ml-16'); });