mirror of
https://github.com/He4eT/BadBarSlots.git
synced 2026-05-05 00:17:23 +00:00
SFX added
This commit is contained in:
parent
4dd650782a
commit
f7640ee06b
2 changed files with 7 additions and 0 deletions
|
|
@ -31,9 +31,16 @@
|
||||||
|
|
||||||
$('.slot').html(items)
|
$('.slot').html(items)
|
||||||
|
|
||||||
|
let sound = new Audio('snd/noize.mp3')
|
||||||
|
let playSound = () => {
|
||||||
|
sound.play()
|
||||||
|
}
|
||||||
|
|
||||||
$('.slot').jSlots({
|
$('.slot').jSlots({
|
||||||
number: data.number,
|
number: data.number,
|
||||||
spinner : '#playNormal',
|
spinner : '#playNormal',
|
||||||
|
onStart: playSound,
|
||||||
|
time : 6000,
|
||||||
// winnerNumber : 7
|
// winnerNumber : 7
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
BIN
snd/noize.mp3
Normal file
BIN
snd/noize.mp3
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue