Add background music support and enhance game animation toggle functionality

This commit is contained in:
2025-04-14 18:35:01 +00:00
parent 4f845a0c5a
commit b709d015e1
5 changed files with 96 additions and 32 deletions
+4 -2
View File
@@ -107,6 +107,8 @@
</style>
</head>
<body>
<iframe src="music.html" style="display: none;" id="musicIframe"></iframe>
<h1 style="opacity: 0;">Moon Gaming</h1>
<div class="button-container" style="opacity: 0;">
<button class="button" onclick="location.href='chatroom.html'">Chatroom</button>
@@ -119,8 +121,8 @@
<!-- Add a clock element to display date and time -->
<div id="clock" style="opacity: 0; font-size: 1.5rem; margin-top: 20px;"></div>
<!-- Add background music -->
<audio id="backgroundMusic" src="./videoplayback.mp3" loop></audio>
<script>
// Utility function to set a cookie