-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
045cc6b
commit ef8a278
Showing
6 changed files
with
19 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,6 @@ | ||
window.addEventListener('scroll', function() { | ||
var header = document.querySelector('header'); | ||
var footer = document.querySelector('footer'); | ||
var scrollPosition = window.pageYOffset; | ||
var windowHeight = window.innerHeight; | ||
var bodyHeight = document.body.offsetHeight; | ||
|
||
header.classList.toggle('sticky', scrollPosition > 0); | ||
|
||
// Check if the user has scrolled to the bottom | ||
if (scrollPosition + windowHeight >= bodyHeight - 100) { | ||
footer.classList.add('visible'); | ||
} else { | ||
footer.classList.remove('visible'); | ||
} | ||
}); | ||
|
||
function updateFooterText() { | ||
// Get the current page URL path | ||
var path = window.location.pathname; | ||
|
||
// Select the footer element | ||
var footer = document.getElementById("creator"); // Assuming your footer text has this ID | ||
|
||
// Check which page the user is on and change the footer text | ||
footer.innerHTML = "Createur de la page : Constant SUCHET"; | ||
if (path.includes("index")) { | ||
footer.innerHTML = "Createur de la page : Constant SUCHET"; | ||
} else if (path.includes("Innovations")) { | ||
footer.innerHTML = "Createur de la page : Talali Zakaria"; | ||
} else if (path.includes("Finances")) { | ||
footer.innerHTML = "Createur de la page : Touzi Tahar Amin"; | ||
} else if (path.includes("Evolution")) { | ||
footer.innerHTML = "Createur de la page : Jibryl Tebib"; | ||
} | ||
} | ||
|
||
|
||
window.addEventListener('DOMContentLoaded', updateFooterText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters