Spaces:
Running
Running
Update index.html
Browse files211 unmodified lines212213214215216217373 unmodified lines5915925935945955961 unmodified line598599600601602603211 unmodified lines</head><body class="h-screen flex overflow-hidden text-pearl"><!-- SIDEBAR OVERLAY (mobile) --><div id="overlay" class="fixed inset-0 bg-black/60 z-20 hidden opacity-0" onclick="closeSidebar()"></div>373 unmodified lines// ββ Init βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββfunction init() {if (localStorage.getItem('nexus_theme') === 'light') toggleTheme(); // β add thisloadSettings();1 unmodified lineupdateModelBadge();newChat();}function toggleTheme() {const isLight = document.body.classList.toggle('light');document.getElementById('theme-icon-dark').classList.toggle('hidden', isLight);211 unmodified lines212213214215216217218219220221222223224225226227228229230231232233234235236373 unmodified lines6106116126136146156166171 unmodified line619620621622623624625626627628629630211 unmodified lines</head><body class="h-screen flex overflow-hidden text-pearl"><!-- Privacy notice --><div id="privacy-modal" class="fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm"><div class="bg-smoke border border-ash rounded-xl p-6 max-w-sm w-full mx-4 shadow-2xl"><div class="flex items-start gap-3 mb-4"><svg class="w-5 h-5 text-amber flex-shrink-0 mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg><h2 class="text-cream font-display italic text-lg font-bold">Before you start</h2></div><p class="text-ghost text-xs font-mono leading-relaxed mb-2">Your API key, messages, and settings are saved as <span class="text-amber">plaintext in your browser's localStorage</span> β not sent anywhere except directly to OpenRouter when you chat.</p><p class="text-ghost text-xs font-mono leading-relaxed mb-5">Do not use this on a shared or public computer if you want to keep your API key private.</p><button onclick="dismissPrivacyNotice()" class="w-full px-4 py-2.5 bg-amber hover:bg-ember text-ink text-sm font-mono rounded-md transition-colors">Got it, let's go</button></div></div><!-- SIDEBAR OVERLAY (mobile) --><div id="overlay" class="fixed inset-0 bg-black/60 z-20 hidden opacity-0" onclick="closeSidebar()"></div>373 unmodified lines// ββ Init βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββfunction init() {if (localStorage.getItem('nexus_privacy_seen')) dismissPrivacyNotice();if (localStorage.getItem('nexus_theme') === 'light') toggleTheme(); // β add thisloadSettings();1 unmodified lineupdateModelBadge();newChat();}function dismissPrivacyNotice() {document.getElementById('privacy-modal').remove();localStorage.setItem('nexus_privacy_seen', '1');}function toggleTheme() {const isLight = document.body.classList.toggle('light');document.getElementById('theme-icon-dark').classList.toggle('hidden', isLight);
index.html+27