1
0
Fork 0

Fix some function stuff

This commit is contained in:
Andrew Tomaka 2014-09-26 10:18:14 -04:00
parent 53cd3f62e2
commit bd8f4c360a
2 changed files with 3 additions and 3 deletions

View file

@ -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();
}

View file

@ -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>