Fix idoc sequence and collapse menus

This commit is contained in:
2026-10-13 07:40:22 +00:00
parent 9285371808
commit 0de0c8e927
16 changed files with 149 additions and 53 deletions

View File

@@ -125,8 +125,8 @@
<div id="container">
<nav class="touch-nav" aria-label="Workbench Navigation">
<section class="nav-section">
<h2>TR</h2>
<details class="nav-section" open>
<summary>TR</summary>
<button type="button" class="nav-item active" data-page="Workorder.html">
<span>Workorder</span>
<small>Aktivierung</small>
@@ -135,9 +135,9 @@
<span>Station</span>
<small>Fertigungsbaum</small>
</button>
</section>
<section class="nav-section">
<h2>PM</h2>
</details>
<details class="nav-section">
<summary>PM</summary>
<button type="button" class="nav-item" data-page="pm_seite1.html">
<span>Seite 1</span>
<small>PM</small>
@@ -146,9 +146,9 @@
<span>Seite 2</span>
<small>PM</small>
</button>
</section>
<section class="nav-section">
<h2>Import</h2>
</details>
<details class="nav-section">
<summary>Import</summary>
<button type="button" class="nav-item" data-page="PARTImport.html">
<span>PART</span>
<small>Material</small>
@@ -169,7 +169,7 @@
<span>UserImport</span>
<small>Benutzer</small>
</button>
</section>
</details>
</nav>
<!-- Use an IFRAME instead of a <div id="content"> -->
<iframe id="contentFrame" name="contentFrame" width="100%" height="100%"></iframe>
@@ -221,6 +221,10 @@
function openPage(button) {
navItems.forEach(item => item.classList.remove("active"));
button.classList.add("active");
const section = button.closest(".nav-section");
if (section) {
section.open = true;
}
frame.src = button.dataset.page;
}