66 lines
2.4 KiB
HTML
66 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Willkommen</title>
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
</head>
|
|
<body>
|
|
<!-- The modal for the alert -->
|
|
<div id="custom-alert" class="custom-alert">
|
|
<div class="alert-content">
|
|
<span id="alert-message"></span>
|
|
<button id="close-alert" class="close-btn">OK</button>
|
|
</div>
|
|
</div>
|
|
<!-- Header für Benutzer-Info und Buttons -->
|
|
<header class="header">
|
|
<h1 class="header-welcome">Ein simples Chat-Interface.</h1>
|
|
|
|
<div class="header-user-info">
|
|
<p><strong>Benutzername:</strong> <span id="username"></span></p>
|
|
<p><strong>Admin:</strong> <span id="isAdmin"></span></p>
|
|
</div>
|
|
|
|
<div class="header-buttons">
|
|
<button id="adminPermissionsBtn" class="header-btn" style="display: none;">Admin-Einstellungen</button>
|
|
<button id="logoutBtn" class="header-btn">Abmelden</button>
|
|
</div>
|
|
</header>
|
|
<!-- Freier Platz für zukünftige Features -->
|
|
<div class="main-container">
|
|
<!-- Linke Seitenleiste für Chat-Sessions -->
|
|
<div class="sidebar" id="chatSidebar">
|
|
<h3>Gespeicherte Chats</h3>
|
|
<button id="newChatButton">Neuer Chat</button>
|
|
<div id="chatList"></div>
|
|
</div>
|
|
|
|
<!-- Chatbereich -->
|
|
|
|
<div class="chat-container">
|
|
<div id="progress-main-div">
|
|
<div id="progress-container" style="width: 100%; background-color: #f3f3f3; border-radius: 5px; height: 20px;">
|
|
<div id="progress-bar" style="width: 0; background-color: #4caf50; height: 100%; border-radius: 5px;"></div>
|
|
</div>
|
|
<p id="usage-text" style="text-align: center; margin-top: 10px;">0 / 70144 used</p>
|
|
</div>
|
|
<div class="chat-box" id="chatBox">
|
|
<!-- Nachrichten werden hier angezeigt -->
|
|
</div>
|
|
<div class="chat-input-container">
|
|
|
|
<textarea id="chatInput" class="chat-input" placeholder="Schreibe eine Nachricht..."></textarea>
|
|
<button id="sendButton" class="chat-send-button">Senden</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
|
<script type="module" src="js/shared_functions.js"></script>
|
|
<script type="module" src="js/chat.js"></script>
|
|
<script type="module" src="js/main.js"></script>
|
|
</body>
|
|
</html>
|