Spaces:
Running on Zero
Running on Zero
File size: 411 Bytes
1ccd9a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | function switchView(v) {
activeView = v;
document.querySelectorAll('.view-btn').forEach(b => b.classList.toggle('active', b.dataset.view === v));
lastChatsHash = '';
renderChatList(allChats);
}
function setTab(t) {
activeTab = t;
document.querySelectorAll('.ftab').forEach(b => b.classList.toggle('active', b.dataset.tab === t));
lastChatsHash = '';
renderChatList(allChats);
}
|