Update iOS webapp styling and backend target

This commit is contained in:
2026-10-13 06:23:12 +00:00
parent 37d148bdd6
commit 7258714ca7
58 changed files with 7172 additions and 3894 deletions

View File

@@ -0,0 +1,44 @@
const navContent = `
<div class="topbar">
<div class="brand">
<div class="logo"></div>
<span data-i18n="siteName">iiot-factory.com</span>
</div>
<nav class="nav">
<a class="pill" href="index.html" data-i18n="nav.home">Home</a>
<a class="pill" href="iiot.html" data-i18n="nav.iiot">IIoT</a>
<a class="pill" href="trends.html" data-i18n="nav.trends">Trends</a>
<a class="pill" href="cv.html" data-i18n="nav.aboutMe">Über Mich</a>
<a class="pill" href="guide.html" data-i18n="nav.guide">Guide</a>
<a class="pill" href="cra.html" data-i18n="nav.cra">Cyber Resilience Act</a>
<a class="pill" href="oee.html" data-i18n="nav.oeeCalc">OEE Rechner</a>
<a class="pill" href="fpy.html" data-i18n="nav.fpyCalc">FPY Rechner</a>
<a class="pill" href="opcua.html" data-i18n="nav.opcua">OPC UA</a>
<a class="pill" href="mqtt.html" data-i18n="nav.mqtt">MQTT</a>
<a class="pill" href="contact.html" data-i18n="nav.contact">Kontakt</a>
<div class="lang-switcher">
<button class="lang-switch" data-lang="de">DE</button>
<button class="lang-switch" data-lang="en">EN</button>
<button class="lang-switch" data-lang="fr">FR</button>
<button class="lang-switch" data-lang="zh">中文</button>
</div>
</nav>
</div>
`;
document.addEventListener("DOMContentLoaded", function() {
const navContainer = document.getElementById('global-nav');
if(navContainer) {
navContainer.innerHTML = navContent;
// Markiert automatisch die aktuelle Seite
const currentPage = window.location.pathname.split("/").pop() || 'index.html';
const links = navContainer.querySelectorAll('.pill');
links.forEach(link => {
if (link.getAttribute('href') === currentPage) {
link.style.borderColor = "var(--accent)";
link.style.background = "rgba(79,124,255,0.1)";
}
});
}
});