mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Добавил свой дизайн
This commit is contained in:
+22
-1
@@ -143,4 +143,25 @@ document.getElementById('message-form')!.addEventListener('submit', (e) => {
|
||||
});
|
||||
|
||||
document.getElementById("productname")!.textContent = PRODUCT_NAME;
|
||||
document.title = PRODUCT_NAME;
|
||||
document.title = PRODUCT_NAME;
|
||||
const but = document.getElementById('chat-recrol')!;
|
||||
const but_list1 = document.getElementById('chat1but')!;
|
||||
const but_list2 = document.getElementById('chat1but2')!;
|
||||
const cont1 = document.getElementById('conteinerchat')!;
|
||||
const logout = document.getElementById('logouts')!;
|
||||
const namechat = document.getElementById('namechat')!;
|
||||
but.addEventListener('click',() => {
|
||||
but.style.display = 'none';
|
||||
cont1.style.display = 'none';
|
||||
logout.style.display = 'flex';
|
||||
});
|
||||
but_list1.addEventListener('click',() => {
|
||||
but.style.display = 'flex';
|
||||
cont1.style.display = 'flex';
|
||||
namechat.textContent = 'общий чат';
|
||||
});
|
||||
but_list2.addEventListener('click',() => {
|
||||
but.style.display = 'flex';
|
||||
cont1.style.display = 'flex';
|
||||
namechat.textContent = 'общий чат 2';
|
||||
});
|
||||
Reference in New Issue
Block a user