- skin working
    - fix bug three js lobby page
    - add notification for join a invitation
Game
    - fix bug fade
This commit is contained in:
Kum1ta
2024-09-28 03:15:41 +02:00
parent b2bc0f2190
commit afb5742e65
13 changed files with 116 additions and 108 deletions

View File

@ -6,7 +6,7 @@
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/04 23:32:52 by edbernar #+# #+# */
/* Updated: 2024/09/21 22:25:12 by edbernar ### ########.fr */
/* Updated: 2024/09/28 00:38:44 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@ -154,7 +154,6 @@ function newNotification(title, message, img, action, timer, actionText)
class notification
{
timer = 5000;
defaultIcon = {
"warning": "/static/img/notification/ico/warning.png",
"error": "/static/img/notification/ico/error.png",
@ -164,9 +163,9 @@ class notification
constructor() {}
new(title, message, img=null, action=null, actionText="Confirm")
new(title, message, img=null, action=null, actionText="Confirm", timer=5000)
{
newNotification(title, message, img, action, this.timer, actionText);
newNotification(title, message, img, action, timer, actionText);
}
}