I may have corrected the bug

This commit is contained in:
Thomas FORGIONE
2015-08-31 13:05:05 +02:00
parent dabe05c39b
commit 776ccfcc4f
4 changed files with 19 additions and 3 deletions

View File

@@ -32,13 +32,20 @@ Coin.onCoinGot = function(coin) {
setTimeout(function() {
$('#next').show();
$('#next').click(function() {
window.location = '/prototype/game';
$('#next').unbind('click');
window.location = '/prototype/next';
});
}, 60*1000);
}
};
Coin.onLastCoin = function() {
$('#next').show();
$('#next').click(function() {
window.location = '/prototype/next';
});
}
function main() {
// Main container that holds everything