🚚 rename: script.js in main.js
continuous-integration/drone/push Build is passing Details

master
thdupin2 1 year ago
parent 66675c642e
commit 3e67d53b01

@ -1,20 +1,20 @@
// EMAIL // EMAIL
document.getElementById('openGmail').addEventListener('click', function() { document.getElementById('openGmail').addEventListener('click', function() {
var email = 'theo.dupin03300.pro@gmail.com'; var email = 'theo.dupin03300.pro@gmail.com';
var gmailLink = 'https://mail.google.com/mail/?view=cm&fs=1&to=' + email; var gmailLink = 'https://mail.google.com/mail/?view=cm&fs=1&to=' + email;
// Essayer d'ouvrir le lien Gmail // Essayer d'ouvrir le lien Gmail
window.open(gmailLink, '_blank'); window.open(gmailLink, '_blank');
}); });
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
var aboutMeLink = document.querySelector('.header-nav a[href="#about-me"]'); var aboutMeLink = document.querySelector('.header-nav a[href="#about-me"]');
aboutMeLink.addEventListener('click', function(event) { aboutMeLink.addEventListener('click', function(event) {
event.preventDefault(); // Empêche le comportement par défaut du lien event.preventDefault(); // Empêche le comportement par défaut du lien
var aboutMeSection = document.getElementById('about-me'); var aboutMeSection = document.getElementById('about-me');
aboutMeSection.scrollIntoView({ behavior: 'smooth' }); // Fait défiler la page jusqu'à la section "À propos de moi" en douceur aboutMeSection.scrollIntoView({ behavior: 'smooth' }); // Fait défiler la page jusqu'à la section "À propos de moi" en douceur
}); });
}); });
// AOS // AOS
AOS.init(); AOS.init();
Loading…
Cancel
Save