Created
November 20, 2017 07:14
-
-
Save writingdeveloper/784e279a2add863595372eb44c588e59 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
// Display Score | |
var displayScoreLevel = function(aScore, aLevel) { | |
var canvas = document.getElementsByTagName('canvas'); | |
var firstCanvasTag = canvas[0]; | |
scoreLevelDiv.innerHTML = 'Score : ' + aScore + ' / ' + 'Level : ' + aLevel; | |
document.body.insertBefore(scoreLevelDiv, firstCanvasTag[0]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment