Last active
December 26, 2015 05:59
-
-
Save incompl/7104391 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var messageElement = | |
document.querySelector('#message'); | |
cloak.configure({ | |
messages: { | |
waitingForAnotherPlayer: function() { | |
messageElement.innerText = | |
'Waiting for another player...'; | |
}, | |
gameStart: function() { | |
messageElement.innerText = | |
'The game has begun!'; | |
} | |
} | |
}); | |
cloak.run(serverURL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment