Skip to content

Instantly share code, notes, and snippets.

@seysn
Created February 6, 2016 09:17
Show Gist options
  • Save seysn/0eef3a44e750843ba4a5 to your computer and use it in GitHub Desktop.
Save seysn/0eef3a44e750843ba4a5 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type='text/javascript'>
// On tente de charger l'image au plus tôt !
var chessSymbols = new Image();
chessSymbols.src = 'chess.png';
chessSymbols.onload = function() {
console.info("Chess symbols loaded !");
// dessine la grille, une fois l'image chargée
//drawGrid(0,0, canvas.width, canvas.height, 8, 8);
};
</script>
</head>
<body>
<h1>Deep blue version JS</h1>
<center><canvas id='screen' width='400' height='400' >JavaScript est nécessaire ...</canvas></center>
<script type='text/javascript' src='chess.js'> </script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment