style rules
This commit is contained in:
parent
9571afeef4
commit
c8b03ca07f
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
// Sound effects
|
// Sound effects
|
||||||
function PlaySound(soundobj) {
|
function PlaySound(soundobj) {
|
||||||
var thissound = document.getElementById(soundobj);
|
const thissound = document.getElementById(soundobj);
|
||||||
thissound.play();
|
thissound.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
function StopSound(soundobj) {
|
function StopSound(soundobj) {
|
||||||
var thissound = document.getElementById(soundobj);
|
const thissound = document.getElementById(soundobj);
|
||||||
thissound.pause();
|
thissound.pause();
|
||||||
thissound.currentTime = 0;
|
thissound.currentTime = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue