mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-10 00:42:20 +02:00
Squash Odysseus development history
This commit is contained in:
+1
-24
@@ -78,7 +78,7 @@ document.addEventListener('DOMContentLoaded', markComposerUserEdited, { once: tr
|
||||
// Research — sidebar tool + the in-input deep-research toggle.
|
||||
hideOn('#tool-research-btn, #research-toggle-btn', privs.can_use_research);
|
||||
// Memory & skills (rail/tool button only — UI/API entry).
|
||||
hideOn('#tool-memory-btn', privs.can_manage_memory);
|
||||
hideOn('#tool-memory-btn, #rail-memory, #tool-skills-btn, #rail-skills', privs.can_manage_memory);
|
||||
// Agent mode toggle — force chat mode by hiding the Agent toggle button.
|
||||
if (privs.can_use_agent === false) {
|
||||
const _agent = document.getElementById('mode-agent-btn');
|
||||
@@ -372,29 +372,6 @@ document.addEventListener('DOMContentLoaded', markComposerUserEdited, { once: tr
|
||||
});
|
||||
}
|
||||
|
||||
// Fade welcome screen when mobile keyboard opens (input focus/blur)
|
||||
if ('ontouchstart' in window) {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var _msgInput = document.getElementById('message');
|
||||
if (!_msgInput) return;
|
||||
_msgInput.addEventListener('focus', function() {
|
||||
var welcome = document.getElementById('welcome-screen');
|
||||
if (welcome && !welcome.classList.contains('hidden')) {
|
||||
welcome.style.transition = 'opacity 0.2s ease, transform 0.2s ease';
|
||||
welcome.style.opacity = '0';
|
||||
welcome.style.transform = 'translate(-50%, -50%) scale(0.92)';
|
||||
}
|
||||
});
|
||||
_msgInput.addEventListener('blur', function() {
|
||||
var welcome = document.getElementById('welcome-screen');
|
||||
if (welcome && !welcome.classList.contains('hidden')) {
|
||||
welcome.style.transition = 'opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)';
|
||||
welcome.style.opacity = '';
|
||||
welcome.style.transform = '';
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Release welcome-screen entrance animations once the page is settled ──
|
||||
|
||||
Reference in New Issue
Block a user