From f8e367d56a9551892baf84b8a814299f97018638 Mon Sep 17 00:00:00 2001 From: thdupin2 Date: Mon, 17 Jun 2024 22:29:42 +0200 Subject: [PATCH] :hammer: update: index.html --- main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index 22974fb..a73679d 100644 --- a/main.js +++ b/main.js @@ -1,13 +1,13 @@ // EMAIL -$(document).getElementById('openGmail').addEventListener('click', function() { - var email = 'theo.dupin03300.pro@gmail.com'; - var gmailLink = 'https://mail.google.com/mail/?view=cm&fs=1&to=' + email; +// document.getElementById('openGmail').addEventListener('click', function() { +// var email = 'theo.dupin03300.pro@gmail.com'; +// var gmailLink = 'https://mail.google.com/mail/?view=cm&fs=1&to=' + email; - // Essayer d'ouvrir le lien Gmail - window.open(gmailLink, '_blank'); -}); +// // Essayer d'ouvrir le lien Gmail +// window.open(gmailLink, '_blank'); +// }); -$(document).addEventListener('DOMContentLoaded', function() { +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