<!--
NOTE: none of this is my work!
All html/css/js code is a copy paste from:
http://cssdeck.com/labs/classic-snake-game-with-html5-canvas
It did not work there and I just copy pasted it here to see if it works and how.
- replaced all 'http' with 'https' to fix security blocks,
- fixed onclick (init was not known from html onclick attribute)
- fixed loading (100% did not always trigger, added fallback start showButton() on timeout)
related; also see:
https://jsfiddle.net/jalbertbowdenii/DJPUD/
-->
<a target="_blank"
href="http://cssdeck.com/labs/classic-snake-game-with-html5-canvas"
style="z-index:999;font-size:12px;"
>original source</a>
<canvas id="canvas"></canvas>
<div id="reMenu">
<h1 id="snake2">Snake</h1>
<p id="info2">Game Over</p>
<a href="javascript: void(0)" id="restart">Restart</a>
<a href="#" id="tweet" target="_blank" rel="nofollow">Tweet My Score</a>
</div>
<div id="menu">
<h1 id="snake">Snake</h1>
<p id="info">by <a target="_blank" rel="nofollow" href="https://twitter.com/SolitaryDesigns">Kushagra Agarwal</a></p>
<a href="javascript: void(0)" id="start">Start</a>
<p id="loading">Loading...</p>
</div>
<p id="score">Score: 0</p>
<!-- Audio -->
<audio id="main_music" loop>
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/main.mp3" type="audio/mp3" />
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/main.ogg" type="audio/ogg"/>
</audio>
<audio id="gameOver">
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/go.mp3" type="audio/mp3" />
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/go.ogg" type="audio/ogg"/>
</audio>
<audio id="food">
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/food.mp3" type="audio/mp3" />
<source src="https://dl.dropbox.com/u/26141789/canvas/snake/food.ogg" type="audio/ogg"/>
</audio>