Site
- on popup chat, point on end line for see if you have seen the last message - on chat buttton, red point for know if you have a new message - fix image in live chat
This commit is contained in:
@ -6,12 +6,12 @@
|
||||
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/08/04 19:19:10 by edbernar #+# #+# */
|
||||
/* Updated: 2024/09/21 22:41:48 by edbernar ### ########.fr */
|
||||
/* Updated: 2024/09/29 03:43:31 by edbernar ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
import { userListUnread } from "/static/javascript/typeResponse/typePrivateListUser.js";
|
||||
import { infoPanel } from "/static/javascript/typeResponse/typePrivateListMessage.js";
|
||||
import { showActualGameMessage } from "/static/javascript/liveChat/showActualGameMessage.js";
|
||||
import { showListUser } from "/static/javascript/liveChat/showUserList.js";
|
||||
import { userMeInfo } from "/static/javascript/typeResponse/typeLogin.js";
|
||||
|
||||
@ -50,8 +50,14 @@ function showChatMenu()
|
||||
|
||||
function hideChatMenu()
|
||||
{
|
||||
const notifBadgeChat = document.getElementsByClassName('notification-badge')[0];
|
||||
|
||||
chatDiv.style.display = "none";
|
||||
infoPanel.isOpen = false;
|
||||
if (!userListUnread.length)
|
||||
notifBadgeChat.style.display = 'none';
|
||||
else
|
||||
notifBadgeChat.style.display = 'flex';
|
||||
}
|
||||
|
||||
export { LiveChat, showChatMenu };
|
Reference in New Issue
Block a user