From deb733e68c76c4c989aecb04a16af5be08995f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=ABlle?= <125869653+anaelle1531@users.noreply.github.com> Date: Sat, 1 Feb 2025 16:06:59 +0100 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 12b39bc..ef78f7d 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -document.addEventListener("DOMContentLoaded", function () { +function () { function change_lyon(){ let lyon_img = document.getElementById("lyon_img"); // acces a l'element HTML par son id @@ -39,7 +39,7 @@ document.addEventListener("DOMContentLoaded", function () { } } -document.addEventListener("DOMContentLoaded", function () { +function () { let scrollToTopBtn = document.getElementById("scrollToTop"); window.addEventListener("scroll", function () { if (window.scrollY > 300) {