Aujourd’hui – Communauté Upwork

Aujourd’hui – Communauté Upwork

2024-08-07 07:02:01

‘); } fonction createAndRemoveNotification(message, délai = 5) { var id = crypto.randomUUID(); if($(“.custom-notifications-container”).length == 0) { $(“corps”).append(”); } $(“.custom-notifications-container”).append(‘‘ + message + ‘‘); setTimeout(function() { $(“#” + id).removeClass(“animation-d’ouverture-de-notifications-personnalisées”); $(“#” + id).addClass(“animation-de-fermeture-de-notifications-personnalisées”); setTimeout(function() { $(“#” + id).remove(); }, 500); }, délai * 1000); } function createStackNotification(message, remove = true, délai = 5) { var id = crypto.randomUUID(); var size = $(“.custom-stack-notifications-item”).length; var calcHeight = (taille * 50) + 10; if($(“.custom-stack-notifications-container”).length == 0) { $(“body”).append(”); } if(size == 0) { calcHeight = 10; } $(“.custom-stack-notifications-container”).append(‘‘ + message + ‘‘); $(“.custom-stack-notifications-item”).each(function(index) { if(index == 0) { $(this).css(“bottom”, “10px”) } else { $(this).css(“bottom”, (52 * index) + 10 + “px”); } }); if(remove) { setTimeout(function() { $(“#” + id).removeClass(“custom-stack-notifications-open-animation”); $(“#” + id).addClass(“custom-stack-notifications-close-animation”); setTimeout(function() { $(“#” + id).remove(); }, 500); }, delay * 1000); setTimeout(function() { if($(“.custom-stack-notifications-container .custom-stack-notifications-item”).length == 1) { $(“.custom-stack-notifications-container”).remove(); } }, (délai * 1000) + 500); } } function closeStackNotification(element) { element.parent().removeClass(“custom-stack-notifications-open-animation”).addClass(“custom-stack-notifications-close-animation”); setTimeout(function() { element.parent().remove(); $(“.custom-stack-notifications-item”).each(function(index) { $(this).css(“bottom”, (52 * index) + 10 + “px”); }); if($(“.custom-stack-notifications-container .custom-stack-notifications-item”).length == 0) { $(“.custom-stack-notifications-container”).remove(); } }, 500); }

🐈

#Aujourdhui #Communauté #Upwork
1723010712

Facebook
Twitter
LinkedIn
Pinterest

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.