修改疯狂动物园音效声音大小

This commit is contained in:
Dragon
2024-03-29 16:52:05 +08:00
parent 7659a5db68
commit 93b7698a95
2 changed files with 4 additions and 3 deletions

View File

@@ -335,4 +335,4 @@
<script src="../../common/js/vconsole.min.js"></script>
<script src="../../common/js/svga.min.js"></script>
<script src="./js/wow.js"></script>
<script src="./js/index.js?v=1.2"></script>
<script src="./js/index.js?v=1.3"></script>

View File

@@ -41,9 +41,10 @@ let page = 1
let pageSizeLack = true;
var audioIf = true;
var backgroundMusic = document.getElementById('backgroundMusic');
backgroundMusic.volume = 0.5;
var lotteryMusic = document.getElementById('lotteryMusic');
var drawBut = document.getElementById("draw");
backgroundMusic.volume = 0.2;
drawBut.volume = 1;
$(function () {
getInfoFromClient()
setTimeout(function () {
@@ -126,7 +127,7 @@ function getNewestAct () {
// 第二階段
backgroundMusic.pause();
lotteryMusic.currentTime = 0;
lotteryMusic.volume = 100 / 100;
lotteryMusic.volume = 1;
if (audioIf) {
lotteryMusic.play();
}