Created
February 6, 2016 09:17
-
-
Save seysn/0eef3a44e750843ba4a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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