2024-08-05 11:42:32 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru">
|
|
|
|
<head>
|
2024-08-11 12:17:53 +00:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Список Чат-Комнат</title>
|
|
|
|
<link rel="stylesheet" href="/assets/css/list-rooms.css">
|
2024-08-05 11:42:32 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-08-10 03:09:51 +00:00
|
|
|
<div class="container">
|
2024-08-11 12:17:53 +00:00
|
|
|
<h1 style="color: white;">Выберите Чат-Комнату</h1>
|
|
|
|
<ul class="room-list">
|
|
|
|
<!-- Здесь будет список комнат -->
|
|
|
|
</ul>
|
|
|
|
<button class="create-room-button" onclick="openCreateRoomModal()">Создать Комнату</button>
|
2024-08-10 03:09:51 +00:00
|
|
|
</div>
|
2024-08-05 11:42:32 +00:00
|
|
|
|
2024-08-10 03:09:51 +00:00
|
|
|
<!-- Модальное окно для создания комнаты -->
|
|
|
|
<div id="createRoomModal" class="modal">
|
2024-08-11 12:17:53 +00:00
|
|
|
<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="newRoomNickname" placeholder="Никнейм комнаты">
|
|
|
|
</div>
|
|
|
|
<div id="error"></div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="join-button" onclick="createRoom()">Создать</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-10 03:09:51 +00:00
|
|
|
</div>
|
2024-08-11 12:30:38 +00:00
|
|
|
|
|
|
|
<!-- Модальное окно для добавления участников -->
|
|
|
|
<div class="overlay" id="add_members">
|
2024-08-14 22:07:59 +00:00
|
|
|
<div class="add-members">
|
|
|
|
<div class="add-members-header">
|
|
|
|
<span class="close" onclick="closeAdd()">×</span>
|
|
|
|
<h2>Добавить участников</h2>
|
|
|
|
</div>
|
|
|
|
<div class="add-members-body">
|
|
|
|
<input type="text" id="newMemberLogin" placeholder="Логин пользователя">
|
|
|
|
</div>
|
|
|
|
<div class="add-members-footer">
|
|
|
|
<button class="add-member-button" onclick="addMember()">Добавить</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="overlay" id="delete-chat">
|
|
|
|
<div class="delete-chat">
|
|
|
|
<div class="delete-chat-header">
|
|
|
|
<span class="delete-close" onclick="closeConfirm()">×</span>
|
|
|
|
<h2>Вы уверены, что хотите удалить чат?</h2>
|
|
|
|
</div>
|
|
|
|
<div class="delete-chat-body">
|
|
|
|
<button class="confirm" onclick="deleteChat()">Да</button>
|
|
|
|
<button class="cancel" onclick="closeConfirm()">Нет</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-08-11 12:30:38 +00:00
|
|
|
</div>
|
2024-08-10 03:09:51 +00:00
|
|
|
<script src="/assets/js/list-rooms.js"></script>
|
2024-08-05 11:42:32 +00:00
|
|
|
</body>
|
|
|
|
</html>
|