The radio shows the device card on the left and the speak and history cards on the right from 45 to 61 rem of height, stacking below that; only the history scrolls. History rows get stable keys (sent-row id, else time, sender and occurrence), and focus moves to the nearest row when the focused one disappears. Tests run once on unify/skills-20261114 after the merge (operator order 2026-11-14). 🎯 Fix: 85 % 💥 Break: 12 % 💸 Tokens: 60 % ⏱️ Velocity: 45 % 🛡️ Security: 100 % 🏆 Score: 100 🚦 Gate: ⛔ fix 85 % < 90, break 12 % > 5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
2.4 KiB
JavaScript
68 lines
2.4 KiB
JavaScript
document.getElementById("palette").addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closePalette();
|
|
}
|
|
});
|
|
document.getElementById("sheet").addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closeSheet();
|
|
}
|
|
});
|
|
popupDialog().addEventListener("click", (event) => {
|
|
if (event.target === event.currentTarget) {
|
|
closePopup();
|
|
}
|
|
});
|
|
document.getElementById("palette-open").addEventListener("click", openPalette);
|
|
document.getElementById("settings-open").addEventListener("click", settingsSheet);
|
|
document.getElementById("bubbles-toggle").addEventListener("click", toggleBubbles);
|
|
document.addEventListener("click", (event) => closeMenus(event.target instanceof Element ? event.target.closest(MENUS) : null));
|
|
document.addEventListener("scroll", placeStations, {capture: true, passive: true});
|
|
document.addEventListener("fullscreenchange", () => {
|
|
if (!document.fullscreenElement) {
|
|
document.body.classList.remove("leitstand");
|
|
}
|
|
window.setTimeout(measure, 50);
|
|
});
|
|
document.addEventListener("pointerdown", context, {once: true});
|
|
document.addEventListener("keydown", context, {once: true});
|
|
document.addEventListener("pointerdown", unlock);
|
|
document.addEventListener("keydown", keyboard);
|
|
document.addEventListener("contextmenu", feedbackMenu);
|
|
document.addEventListener("selectionchange", feedbackButton);
|
|
document.addEventListener("visibilitychange", refresh);
|
|
window.addEventListener("focus", refresh);
|
|
window.addEventListener("hashchange", apply);
|
|
window.addEventListener("resize", measure);
|
|
window.addEventListener("resize", redrawSky);
|
|
window.addEventListener("resize", refresh3d);
|
|
window.addEventListener("resize", placePopup);
|
|
window.addEventListener("resize", placeStations);
|
|
skyPanel();
|
|
radioSpot();
|
|
radio.element = radioElement();
|
|
drawSky();
|
|
musicButton();
|
|
syncBubbles();
|
|
syncMusic();
|
|
syncRadio();
|
|
timeBar();
|
|
notifyLabel();
|
|
announce();
|
|
measure();
|
|
homeBoot();
|
|
apply();
|
|
drawTime();
|
|
motion.asOf = ui.asOf;
|
|
relayout(0);
|
|
window.setInterval(poll, 10000);
|
|
window.setInterval(follow, 3000);
|
|
window.setInterval(() => relayout(MOVE), RELAYOUT);
|
|
window.setInterval(() => live() && drawSky(), 30000);
|
|
window.setInterval(syncRadio, 20000);
|
|
window.setInterval(() => {
|
|
if (tree.dom && !document.hidden) {
|
|
fetchTree();
|
|
}
|
|
}, 60000);
|