Files
Web-RDM/WebRDM/map.html
2026-04-02 16:09:55 +02:00

51 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html lang="de" data-theme="light">
<head>
<meta charset="UTF-8">
<title>Netzwerk Topologie - Web RDM</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
</head>
<body>
<!-- LOGIN SCREEN (Wird von app.js gesteuert) -->
<div id="login-overlay">
<div class="login-box">
<h3 class="mb-4"><i class="bi bi-shield-lock-fill text-primary"></i> Web RDM Map</h3>
<div id="login-error" class="alert alert-danger d-none small"></div>
<div id="step-login">
<input type="text" id="l_user" class="form-control mb-3" placeholder="Benutzername">
<input type="password" id="l_pass" class="form-control mb-4" placeholder="Passwort" onkeypress="if(event.key === 'Enter') doLogin()">
<button class="btn btn-primary w-100" onclick="doLogin()">Anmelden</button>
</div>
<div id="step-2fa" class="d-none">
<p class="small text-muted-custom">Bitte gib deinen 6-stelligen Google Authenticator Code ein.</p>
<input type="text" id="l_2fa" class="form-control mb-4 text-center fs-4" placeholder="000000" maxlength="6" onkeypress="if(event.key === 'Enter') verify2FA()">
<button class="btn btn-primary w-100" onclick="verify2FA()">Verifizieren</button>
</div>
</div>
</div>
<nav class="navbar py-2">
<div class="container-fluid">
<a href="index.html" class="navbar-brand mb-0 h1">
<i class="bi bi-arrow-left-circle-fill text-primary me-2"></i> Zurück zum RDM
</a>
<div class="d-flex align-items-center gap-3">
<span class="badge bg-secondary" id="user-badge"></span>
<span class="text-muted small"><i class="bi bi-info-circle"></i> Physische Layer-1/2 Map. Knoten ziehen zum Sortieren.</span>
<button class="btn btn-sm btn-outline-secondary" onclick="toggleTheme()" title="Tag/Nacht Modus"><i id="theme-icon" class="bi bi-moon"></i></button>
<button class="btn-nav-icon m-0 text-danger border-danger" onclick="doLogout()" title="Abmelden"><i class="bi bi-box-arrow-right"></i></button>
</div>
</div>
</nav>
<div id="mynetwork"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>