mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Добавление профиля пользователя
This commit is contained in:
+17
-1
@@ -144,6 +144,7 @@ document.getElementById('message-form')!.addEventListener('submit', (e) => {
|
||||
|
||||
document.getElementById("productname")!.textContent = PRODUCT_NAME;
|
||||
document.title = PRODUCT_NAME;
|
||||
// сварачивание и разворачивание чата
|
||||
const but = document.getElementById('chat-recrol')!;
|
||||
const but_list1 = document.getElementById('chat1but')!;
|
||||
const but_list2 = document.getElementById('chat1but2')!;
|
||||
@@ -164,4 +165,19 @@ but_list2.addEventListener('click',() => {
|
||||
but.style.display = 'flex';
|
||||
cont1.style.display = 'flex';
|
||||
namechat.textContent = 'общий чат 2';
|
||||
});
|
||||
});
|
||||
// открытие профиля
|
||||
const butprofile = document.getElementById('profbut')!
|
||||
const chatlist = document.getElementById('chat-list')!
|
||||
const profile = document.getElementById('profile')!
|
||||
const closeprofile = document.getElementById('closeprofile')!
|
||||
butprofile.addEventListener('click',()=>{
|
||||
chatlist.style.display = 'none'
|
||||
cont1.style.display = 'none'
|
||||
profile.style.display = 'flex'
|
||||
|
||||
})
|
||||
closeprofile.addEventListener('click',()=>{
|
||||
chatlist.style.display = 'flex'
|
||||
profile.style.display = 'none'
|
||||
})
|
||||
Reference in New Issue
Block a user