53 lines
1.9 KiB
HTML
53 lines
1.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="ru">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Список Чат-Комнат</title>
|
||
|
<link rel="stylesheet" href="form.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<h1 style="color: white;">Выберите Чат-Комнату</h1>
|
||
|
<ul class="room-list">
|
||
|
<!-- Здесь будет список комнат -->
|
||
|
</ul>
|
||
|
<button class="create-room-button" onclick="openCreateRoomModal()">Создать Комнату</button>
|
||
|
</div>
|
||
|
|
||
|
<div id="passwordModal" class="modal">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<span class="close" onclick="closeModal()">×</span>
|
||
|
<h2>Введите Пароль</h2>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<input type="password" id="roomPassword" placeholder="Пароль">
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button class="join-button" onclick="validatePassword()">Подтвердить</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- Модальное окно для создания комнаты -->
|
||
|
<div id="createRoomModal" class="modal">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<span class="close" onclick="closeCreateRoomModal()">×</span>
|
||
|
<h2>Создать Комнату</h2>
|
||
|
</div>
|
||
|
<div class="modal-body">
|
||
|
<input type="text" id="newRoomName" placeholder="Название комнаты">
|
||
|
<input type="password" id="newRoomPassword" placeholder="Пароль">
|
||
|
</div>
|
||
|
<div class="modal-footer">
|
||
|
<button class="join-button" onclick="createRoom()">Создать</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<script src="list-rooms.js"></script>
|
||
|
</body>
|
||
|
</html>
|