various bug fixes Sunday 20260301 5:15pm
This commit is contained in:
@@ -170,15 +170,6 @@ function escHtml(s) {
|
||||
}
|
||||
|
||||
|
||||
// ---- Mobile More Panel ----
|
||||
|
||||
function toggleMobileMore() {
|
||||
const panel = document.getElementById('mobile-more-panel');
|
||||
const btn = document.getElementById('mobile-more-btn');
|
||||
if (panel) panel.classList.toggle('open');
|
||||
if (btn) btn.classList.toggle('active');
|
||||
}
|
||||
|
||||
// ---- Timer Pill (topbar running timer) ----
|
||||
|
||||
let timerStartAt = null;
|
||||
@@ -243,3 +234,19 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
pollTimer();
|
||||
setInterval(pollTimer, 30000);
|
||||
});
|
||||
|
||||
// ---- Mobile More Panel ----
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var btn = document.getElementById('mobMoreBtn');
|
||||
var panel = document.getElementById('mobMore');
|
||||
var overlay = document.getElementById('mobOverlay');
|
||||
if (!btn || !panel || !overlay) return;
|
||||
btn.addEventListener('click', function() {
|
||||
panel.classList.toggle('open');
|
||||
overlay.classList.toggle('open');
|
||||
});
|
||||
overlay.addEventListener('click', function() {
|
||||
panel.classList.remove('open');
|
||||
overlay.classList.remove('open');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user