1.1 - speed buttons, and 'h' to hide
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 1m20s
Details
Build and Publish Docker Image / Build and Push Docker Image (push) Successful in 1m20s
Details
This commit is contained in:
parent
6d2a5f1a8a
commit
a165e5f408
|
|
@ -201,6 +201,25 @@ document.getElementById('btn-auto-rotate').addEventListener('click', () => {
|
|||
}
|
||||
});
|
||||
|
||||
document.getElementById('btn-speed-down').addEventListener('click', () => {
|
||||
if (controls) {
|
||||
controls.autoRotateSpeed = Math.max(0.1, controls.autoRotateSpeed - 0.5);
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById('btn-speed-up').addEventListener('click', () => {
|
||||
if (controls) {
|
||||
controls.autoRotateSpeed += 0.5;
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.target.tagName.toLowerCase() === 'input') return;
|
||||
if (e.key === 'h' || e.key === 'H') {
|
||||
document.body.classList.toggle('ui-hidden');
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById('pod-search').addEventListener('input', (e) => {
|
||||
currentSearchTerm = e.target.value.toLowerCase().trim();
|
||||
podMeshes.forEach(mesh => {
|
||||
|
|
|
|||
|
|
@ -474,3 +474,14 @@ body {
|
|||
color: var(--text-main);
|
||||
}
|
||||
|
||||
body.ui-hidden .header,
|
||||
body.ui-hidden .legend-panel,
|
||||
body.ui-hidden .navigation-hint,
|
||||
body.ui-hidden .version-overlay {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.header, .legend-panel, .navigation-hint, .version-overlay {
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,6 +52,16 @@
|
|||
</svg>
|
||||
<span id="auto-rotate-text">Auto Rotate</span>
|
||||
</button>
|
||||
<button class="icon-btn" id="btn-speed-down" title="Slow Down Rotation">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M15 18l-6-6 6-6"/>
|
||||
</svg>
|
||||
</button>
|
||||
<button class="icon-btn" id="btn-speed-up" title="Speed Up Rotation">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M9 18l6-6-6-6"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[metadata]
|
||||
version = 1.0
|
||||
version = 1.1
|
||||
|
|
|
|||
Loading…
Reference in New Issue