Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaynight-dev authored Nov 26, 2023
1 parent d34b4fe commit 85348e2
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,16 @@ <h2 class="job-title text-2xl font-bold text-primary text-center">
const closeBar = document.getElementById('closeBar');
let width = 100;
const interval = setInterval(() => {
width -= 1;
closeBar.style.width = `${width}%`;
}, 50);
width -= 20; // Vous pouvez ajuster la vitesse de la barre de progression ici
closeBar.style.width = `${width}%`;
}, 1000); // La durée totale est de 5 secondes, donc diminuer de 20% toutes les secondes

setTimeout(() => {
clearInterval(interval);
}, 5000);
clearInterval(interval);
notification.classList.add('hidden');
window.history.replaceState({}, document.title, window.location.pathname); // Supprimer le paramètre de l'URL
}, 5000); // Masquer la notification après 5 secondes


const closeNotification = document.getElementById('closeNotification');
closeNotification.addEventListener('click', () => {
Expand All @@ -306,12 +310,16 @@ <h2 class="job-title text-2xl font-bold text-primary text-center">
const closeBar = document.getElementById('closeBar');
let width = 100;
const interval = setInterval(() => {
width -= 1;
closeBar.style.width = `${width}%`;
}, 50);
width -= 20; // Vous pouvez ajuster la vitesse de la barre de progression ici
closeBar.style.width = `${width}%`;
}, 1000); // La durée totale est de 5 secondes, donc diminuer de 20% toutes les secondes

setTimeout(() => {
clearInterval(interval);
}, 5000);
clearInterval(interval);
notification.classList.add('hidden');
window.history.replaceState({}, document.title, window.location.pathname); // Supprimer le paramètre de l'URL
}, 5000); // Masquer la notification après 5 secondes


const closeNotification = document.getElementById('closeNotification');
closeNotification.addEventListener('click', () => {
Expand Down

0 comments on commit 85348e2

Please sign in to comment.