Mercurial Hosting > chat
diff src/chat.js @ 27:809193524522
responsive
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 Nov 2024 16:01:42 -0700 |
parents | af41be2dcdec |
children | f4708943f29e |
line wrap: on
line diff
--- a/src/chat.js Tue Nov 05 23:06:58 2024 -0700 +++ b/src/chat.js Wed Nov 06 16:01:42 2024 -0700 @@ -15,6 +15,7 @@ } function selectChat(div) { + document.querySelector('div[content]').setAttribute('show','posts'); let chatId = div.getAttribute('chat'); if( chatId === currentChatId ) return; @@ -29,6 +30,10 @@ eventSource.onmessage = evalEvent; } +function back() { + document.querySelector('div[content]').setAttribute('show','chats'); +} + function gotChat(html) { document.querySelector('div[posts]').innerHTML = html; fixPosts();