Skip to content

Commit

Permalink
Update footer creator information
Browse files Browse the repository at this point in the history
  • Loading branch information
gh-Constant committed Sep 15, 2024
1 parent 045cc6b commit ef8a278
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/Evolution.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>Contacts</h2>
</div>
</div>
<div class="footer-bottom">
<p id="creator">ZCTJ Analyse</p>
<p id="creator">Createur de la page : Jibryl Tebib</p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion src/Finances.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>Contacts</h2>
</div>
</div>
<div class="footer-bottom">
<p id="creator">ZCTJ Analyse</p>
<p id="creator">Createur de la page : Touzi Tahar Amin</p>
</div>
</footer>

Expand Down
2 changes: 1 addition & 1 deletion src/Innovations.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h2>Contacts</h2>
</div>
</div>
<div class="footer-bottom">
<p id="creator">ZCTJ Analyse</p>
<p id="creator">Createur de la page : Talali Zakaria</p>
</div>
</footer>

Expand Down
5 changes: 2 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<html lang="fr">
<head>
<title>Présentation de Ledger</title>
<link rel="icon" href="ressources/favicon_io/favicon.ico">
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
<script src=src/script.js></script>
<script src=script.js></script>
</head>
<body data-barba="wrapper">
<header>
Expand Down Expand Up @@ -50,7 +49,7 @@ <h2>Contacts</h2>
</div>
</div>
<div class="footer-bottom">
<p id="creator">ZCTJ Analyse</p>
<p id="creator">Createur de la page : Constant Suchet</p>
</div>
</footer>

Expand Down
33 changes: 0 additions & 33 deletions src/script.js
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);
16 changes: 14 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ footer {
color: white;
padding: 40px 0;
font-family: navfont, Arial, sans-serif;
animation: fadeIn 2s;
/*animation: fadeIn 2s;*/
position: relative;
bottom: 0;

}

.footer-content {
Expand All @@ -24,6 +27,8 @@ footer {
margin: 0 auto;
}



.footer-section {
flex: 1;
margin: 10px;
Expand Down Expand Up @@ -131,11 +136,12 @@ header.sticky {

body {
font-family: Arial, sans-serif;
position: relative;
margin: 0;
padding: 0;
background-color: #1e1928;
background-image: url(ressources/favicon_io/walpaper3.png);
image-resolution: 1px;
z-index: 1;
}

body {
Expand Down Expand Up @@ -236,4 +242,10 @@ input[type=text], select, textarea {
padding: 20px;
}

main {
position: relative;
z-index: 1;
background: white;
}


0 comments on commit ef8a278

Please sign in to comment.