From db3487f7380a8e48976c0fc4884b551bfefe2f80 Mon Sep 17 00:00:00 2001 From: thdupin2 Date: Mon, 17 Jun 2024 22:31:30 +0200 Subject: [PATCH] :hammer: update: index.html --- main.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.js b/main.js index a73679d..70d5e04 100644 --- a/main.js +++ b/main.js @@ -7,14 +7,14 @@ // window.open(gmailLink, '_blank'); // }); -document.addEventListener('DOMContentLoaded', function() { - var aboutMeLink = document.querySelector('.header-nav a[href="#about-me"]'); - aboutMeLink.addEventListener('click', function(event) { - event.preventDefault(); // Empêche le comportement par défaut du lien - var aboutMeSection = document.getElementById('about-me'); - aboutMeSection.scrollIntoView({ behavior: 'smooth' }); // Fait défiler la page jusqu'à la section "À propos de moi" en douceur - }); -}); +// document.addEventListener('DOMContentLoaded', function() { +// var aboutMeLink = document.querySelector('.header-nav a[href="#about-me"]'); +// aboutMeLink.addEventListener('click', function(event) { +// event.preventDefault(); // Empêche le comportement par défaut du lien +// var aboutMeSection = document.getElementById('about-me'); +// aboutMeSection.scrollIntoView({ behavior: 'smooth' }); // Fait défiler la page jusqu'à la section "À propos de moi" en douceur +// }); +// }); -// AOS -AOS.init(); \ No newline at end of file +// // AOS +// AOS.init(); \ No newline at end of file