Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
anaelle1531 authored Feb 1, 2025
1 parent 9cbbd27 commit deb733e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit deb733e

Please sign in to comment.