diff --git a/homepage/index.html b/homepage/index.html index b645cbb..0aa54d8 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -293,6 +293,20 @@ body{ + + +
@@ -446,17 +460,20 @@ function showLoggedIn(username){ document.getElementById('logged-in-bar').style.display='flex'; document.getElementById('user-name').textContent=username; document.getElementById('user-avatar').textContent=username[0].toUpperCase(); + document.getElementById('frost-entry').style.display='block'; } function goToRepo(){const u=localStorage.getItem('current_user');window.location.href='/code/'+u;} function dismissRepo(){} +function goToShuangyan(){window.location.href='https://guanghubingshuo.com/agent-api/';} function logout(){ localStorage.removeItem('current_user');localStorage.removeItem('is_admin'); localStorage.removeItem('logged_in');localStorage.removeItem('login_time'); document.getElementById('logged-in-bar').style.display='none'; + document.getElementById('frost-entry').style.display='none'; document.getElementById('login-bar').style.display='flex'; document.getElementById('login-user').value=''; } -(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true')showLoggedIn(u)})(); +(function(){const u=localStorage.getItem('current_user');if(u&&localStorage.getItem('logged_in')==='true'){showLoggedIn(u);document.getElementById('frost-entry').style.display='block'}})(); /* ── 对话记忆 ── */ let chatHistory={};