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,
|
||||
loop: true,
|
||||
onplay: function() {
|
||||
control.style.visibility = 'hidden';
|
||||
play.style.visibility = 'hidden';
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -31,7 +31,7 @@ function makeItRain() {
|
|||
background.crossOrigin = 'anonymous';
|
||||
}
|
||||
|
||||
function play() {
|
||||
function playSound() {
|
||||
sound.play();
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<img id="background" src="" />
|
||||
|
||||
<div id="container">
|
||||
<i id="play" class="icon-play" onclick="javascript:play();"></i>
|
||||
<i id="play" class="icon-play" onclick="javascript:playSound();"></i>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue