Skip to content

Commit 9a927a2

Browse files
committed
docs: adjust sound level of non clicks
1 parent 4e2dd5e commit 9a927a2

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

docs/icon.png

2.64 KB
Loading

docs/index.html

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ <h1 class="sr-only">Half-Life Dedicated Server with Docker</h1>
767767
<script>
768768
const clickSound = new Audio("click.mp3");
769769
const noSound = new Audio("no.mp3");
770+
noSound.volume = 0.6;
770771

771772
// Map data for each game
772773
const mapData = {
@@ -1068,18 +1069,9 @@ <h1 class="sr-only">Half-Life Dedicated Server with Docker</h1>
10681069
});
10691070
}
10701071

1071-
// Attach wise sound to icons
1072-
const wiseSound = new Audio("wise.mp3");
1073-
const titleIcon = document.querySelector(".title-bar-icon");
1074-
if (titleIcon) {
1075-
titleIcon.style.cursor = "pointer";
1076-
titleIcon.addEventListener("click", () => {
1077-
wiseSound.currentTime = 0;
1078-
wiseSound.play().catch(e => console.log("Audio play failed:", e));
1079-
});
1080-
}
1081-
10821072
// Attach wise sound to footer icon
1073+
const wiseSound = new Audio("wise.mp3");
1074+
wiseSound.volume = 0.6;
10831075
const footerLink = document.querySelector(".footer-link");
10841076
if (footerLink) {
10851077
footerLink.addEventListener("click", (e) => {

0 commit comments

Comments
 (0)