Skip to content

Commit

Permalink
well uhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
cobblesteve01 authored Sep 30, 2024
1 parent fa95bee commit 35ffc28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,6 @@ <h2 style="font-size: 35px; font-weight: 600;">What's New in v8.6.2</h2>
<p class="new">[-] Scratch (got Blocked you will be missed 😭)</p>
<p class="new">[!] Please bookmark the <a href="https://sites.google.com/view/class-board" class="lnk">Backup Link</a> <br> as it contains the always unblocked link.</p>
<center><i><p style="position: absolute; bottom: 0; font-size: smaller;" align="center">For a symbol key, click <b><a href="key.html" class="lnk">here.</b></a></p></i></center>
<script>
window.onload = function() {
var audio = document.getElementById('audio');
audio.play();
};
</script>
</div>
</center>

Expand Down
8 changes: 6 additions & 2 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ document.addEventListener("DOMContentLoaded", function() {
const popup = document.getElementById("popup");
const popupContent = document.querySelector(".popup-content");
const closeBtn = document.querySelector(".close-btn");
const audio = document.getElementById("audio"); // Reference to the audio element

if (popup && popupContent && closeBtn) {
if (popup && popupContent && closeBtn && audio) {
// Show the popup with animation
popup.style.display = "flex";
popupContent.style.animation = "slideUp 0.5s forwards";
Expand All @@ -12,6 +13,9 @@ document.addEventListener("DOMContentLoaded", function() {
// Slide up out animation
popupContent.style.animation = "slideUpOut 0.5s forwards";

// Play audio when closing the popup
audio.play();

// Hide the popup after the animation ends
setTimeout(function() {
popup.style.display = "none";
Expand All @@ -36,4 +40,4 @@ document.addEventListener("DOMContentLoaded", function() {
} else {
console.error("One or more required elements not found.");
}
});
});

0 comments on commit 35ffc28

Please sign in to comment.