Permalink
Browse files

indent

  • Loading branch information...
1 parent 129872b commit 4ac7b1e0bcb69345ead3c3ca49d9e31856fd956c @icefox committed Feb 16, 2010
Showing with 13 additions and 13 deletions.
  1. +12 −12 anigma.js
  2. +1 −1 credits.html
View
@@ -905,18 +905,18 @@ function loadGame()
}
function launch(haveAudio) {
- if (haveAudio) {
- var audio = document.createElement('audio');
- audio.addEventListener('ended', function () { playBackgroundAudio(); } );
- audio.id = 'audio';
- document.body.appendChild(audio);
- audio.setAttribute('controls', 'true');
- audio.currentSong = 0;
- playBackgroundAudio();
- audio.volume = 0.2;
- }
- document.getElementById('launchgame').style.opacity = '0'; // setting display = 'none'; causes a flicker
- loadLevel();
+ if (haveAudio) {
+ var audio = document.createElement('audio');
+ audio.addEventListener('ended', function () { playBackgroundAudio(); } );
+ audio.id = 'audio';
+ document.body.appendChild(audio);
+ audio.setAttribute('controls', 'true');
+ audio.currentSong = 0;
+ playBackgroundAudio();
+ audio.volume = 0.2;
+ }
+ document.getElementById('launchgame').style.display = 'none';
+ loadLevel();
}
loadGame();
View
@@ -6,7 +6,7 @@
</p>
<p>
<img id="blue" src="png/jewel_blue.png">
- Programmed by <a href="http://benjamin-meyer.blogspot.com">Benjamin Meyer</a>
+ Programmed by <a href="http://benjamin-meyer.blogspot.com/">Benjamin Meyer</a>
<p>
<img id="cyan" src="png/jewel_cyan.png">
Thanks to Jennifer Meyer for play testing

0 comments on commit 4ac7b1e

Please sign in to comment.