Skip to content

Commit

Permalink
Merge pull request #12 from EZLJ/main
Browse files Browse the repository at this point in the history
Update credits.html
  • Loading branch information
PZV5077 authored Jun 11, 2024
2 parents 787c7ea + 8c9de8d commit 386039d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions credits.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,26 @@ <h1>Credits</h1>

<p>This site is maintained by the Ministry of Media, <a href="/studentcouncil/index.html">Student Council</a>.</p>

<!-- Eggs -->
<div style="display: flex; justify-content: center;">
<img src="images/ZCS/sillyboy.png" alt="" height="50px" id="myImage"/>
<img src="images/ZCS/sillyboy.png" alt="Click me!" height="50px" id="myImage" title="Click me!" />
</div>
<br>

<span id="hiddenText" class="heimu" title="surprise" style="display: none; justify-content: center;">Levi Sucks.</span>

<span id="hiddenText" class="heimu" title="surprise" style="display: none; justify-content: center;">Come on, Levi sucks!</span>
<script>
var clickCount = 0;
var image = document.getElementById("myImage");
var hiddenText = document.getElementById("hiddenText");
image.addEventListener("click", function() {
clickCount++;
if (clickCount === 5) {
if (clickCount === 10) {
hiddenText.style.display = "flex";
} else if (clickCount === 11) {
hiddenText.style.display = "none";
clickCount = 0;
}
});
</script>

</section>
</div>

Expand Down

0 comments on commit 386039d

Please sign in to comment.