1){
suiji=Math.floor(Math.random() * num) + 1;
}
audio.src = url+mr+suiji+'.mp3';
audio.volume = 0.8;
const createAlert = () => {
muyu.classList.add('scale-90');
setTimeout(_ => {
muyu.classList.remove('scale-90');
}, 100);
audio.pause();audio.play();
if(mr=='ikun'){gd=suiji=Math.floor(Math.random() * 10) + 1;gongde=gongde-gd;}else{gongde++;}
localStorage.gongde=gongde;
const div = document.createElement('div');
div.className = 'gongde-item';
if(mr=='ikun'){
div.innerText = `功德 ${gd > 0 ? '-' : ''}${gd}`;
}else{
div.innerText = `功德 ${gd > 0 ? '+' : ''}${gd}`;
}
setTimeout(() => {
listBox.removeChild(div);
}, 1000);
listBox.append(div)
}
createAlert();"
class="flex flex-col grow"
>
电子木鱼
功德: