Skip to content

Commit

Permalink
Update: Modify text content in index.html and news/index.html, improv…
Browse files Browse the repository at this point in the history
…e popup behavior in page.js
  • Loading branch information
judemont committed Aug 3, 2024
1 parent b123ba2 commit cbcbc6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class="main-header-title-text2">gl</h1>
</div>
<!-- Search bar -->
<div class="main-header-search">
<input id="searchBar" class="main-header-search-input" type="text" placeholder="chercher un schtroumpf" />
<input id="searchBar" class="main-header-search-input" type="text" placeholder="schtroumpfer un schtroumpf" />
<img class="main-header-search-img" src="./images/search.png" alt="search icon" />
</div>

Expand Down Expand Up @@ -186,6 +186,8 @@ <h1 class="welcome-title">Plus d'info</h1>
</p>
<div class="welcome-link">
<a target="_blank" rel="noopener noreferrer" href="news/">L'article totalement neutre de SCHTROUMF NEWS</a>
<a href="mailto:[email protected], [email protected]?subject=Saluuuut">Nous contacter</a>

</div>
<button class="standard-button welcome-button" onclick="closeWelcomePopup('aboutPopup')">Schtroumpfer</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion news/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3><i>Le Grand Schtroumf témoigne ! </i></h3>
</main>
<footer>
<div class="container">
<p>&copy; 2024 Schtroumf News. Tous droits réservés.</p>
<p>&smile; 2024 Schtroumf News. Aucun droits réservés.</p>
</div>
</footer>
</body>
Expand Down
8 changes: 6 additions & 2 deletions scripts/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ ratingValues.forEach((value, index) => {
// });

document.addEventListener("DOMContentLoaded", function () {
document.body.style.overflow = "hidden";
openPopup("welcomePopup");
if (!localStorage.getItem("welcomePopup")) {
document.body.style.overflow = "hidden";
openPopup("welcomePopup");
}else{
openPopup("aboutPopup");
}
});

getBann().then(function (result) {
Expand Down

0 comments on commit cbcbc6b

Please sign in to comment.