Compare commits
2 Commits
master
...
adel_branc
Author | SHA1 | Date | |
---|---|---|---|
478e074714 | |||
eebfc72518 |
@ -199,4 +199,40 @@ body {
|
|||||||
}
|
}
|
||||||
.chat-send-button:hover {
|
.chat-send-button:hover {
|
||||||
background-color: #007bb5;
|
background-color: #007bb5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.back-to-rooms {
|
||||||
|
position: absolute;
|
||||||
|
left: 10px;
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-to-rooms:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: #f7f7f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.room-name {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.members {
|
||||||
|
border: none;
|
||||||
|
position: absolute;
|
||||||
|
left: 80%;
|
||||||
|
border-radius: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
width: 150px;
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
height: 25px;
|
||||||
|
transition: background-color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.members:hover {
|
||||||
|
background-color: #218838;
|
||||||
|
}
|
||||||
|
@ -1,38 +1,40 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="ru">
|
<html lang="ru">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Веб-Чат</title>
|
<title>Веб-Чат</title>
|
||||||
<link rel="stylesheet" href="/assets/css/chat.css">
|
<link rel="stylesheet" href="/assets/css/chat.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="chat-container">
|
<div class="chat-container">
|
||||||
<div class="chat-header">
|
<div class="chat-header">
|
||||||
<span class="room-name">Веб чат</span>
|
<!-- Добавленная кнопка перехода -->
|
||||||
<button class="members" onclick="openMembersList()">Показать участников</button>
|
<a href="list-rooms.html" class="back-to-rooms">← К списку чатов</a>
|
||||||
</div>
|
<span class="room-name">Веб чат</span>
|
||||||
<div class="chat-messages" id="chat-messages">
|
<button class="members" onclick="openMembersList()">Показать участников</button>
|
||||||
<!-- Сообщения чата будут здесь -->
|
</div>
|
||||||
</div>
|
<div class="chat-messages" id="chat-messages">
|
||||||
<div class="chat-footer">
|
<!-- Сообщения чата будут здесь -->
|
||||||
<input type="text" class="chat-input" id="chat-input" placeholder="Введите сообщение...">
|
</div>
|
||||||
<button class="chat-send-button" onclick="sendMessage()">Отправить</button>
|
<div class="chat-footer">
|
||||||
</div>
|
<input type="text" class="chat-input" id="chat-input" placeholder="Введите сообщение...">
|
||||||
</div>
|
<button class="chat-send-button" onclick="sendMessage()">Отправить</button>
|
||||||
<div class="overlay" id="overlay">
|
</div>
|
||||||
<div class="members-list" id="members-list">
|
</div>
|
||||||
<div class="members-list-header">
|
<div class="overlay" id="overlay">
|
||||||
<span class="close" onclick="closeMembersList()">×</span>
|
<div class="members-list" id="members-list">
|
||||||
<h2 class="all-members">Все участники</h2>
|
<div class="members-list-header">
|
||||||
</div>
|
<span class="close" onclick="closeMembersList()">×</span>
|
||||||
<div class="members-list-body">
|
<h2 class="all-members">Все участники</h2>
|
||||||
<ul id="members-list-body">
|
</div>
|
||||||
<!-- Список участников будет добавлен динамически -->
|
<div class="members-list-body">
|
||||||
</ul>
|
<ul id="members-list-body">
|
||||||
</div>
|
<!-- Список участников будет добавлен динамически -->
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<script src="/assets/js/chat.js"></script>
|
</div>
|
||||||
</body>
|
</div>
|
||||||
</html>
|
<script src="/assets/js/chat.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user