Fix some function stuff
This commit is contained in:
parent
53cd3f62e2
commit
bd8f4c360a
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ function makeItPlay() {
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
loop: true,
|
loop: true,
|
||||||
onplay: function() {
|
onplay: function() {
|
||||||
control.style.visibility = 'hidden';
|
play.style.visibility = 'hidden';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ function makeItRain() {
|
||||||
background.crossOrigin = 'anonymous';
|
background.crossOrigin = 'anonymous';
|
||||||
}
|
}
|
||||||
|
|
||||||
function play() {
|
function playSound() {
|
||||||
sound.play();
|
sound.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<img id="background" src="" />
|
<img id="background" src="" />
|
||||||
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<i id="play" class="icon-play" onclick="javascript:play();"></i>
|
<i id="play" class="icon-play" onclick="javascript:playSound();"></i>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue