Добавление профиля пользователя

This commit is contained in:
grabic21
2025-08-20 20:26:33 +04:00
committed by denis0001-dev
Unverified
parent e6e71adbf1
commit f7307b53ae
3 changed files with 75 additions and 21 deletions
+17 -1
View File
@@ -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'
})