Revert "Try stuff"

This reverts commit b93c81a626.
This commit is contained in:
Thomas FORGIONE 2015-08-31 14:43:32 +02:00
parent b93c81a626
commit a4fedaf600
2 changed files with 16 additions and 1 deletions

View File

@ -5,9 +5,17 @@ block title
block configjs
script Recommendation = #{recommendationStyle}; coinsId = [#{coins}];
script.
Coin.onLastCoin = function() {
$('#next').show();
$('#next').click(function() {
window.location = '/prototype/game';
$('#next').unbind('click');
});
};
block lastbutton
a#next.btn.btn-success.navbar-btn(role="button", href='/prototype/game', style={'margin-right':'10px', 'margin-bottom':'10px', 'display':'none'})
button#next.btn.btn-success.navbar-btn(style={'margin-right':'10px', 'margin-bottom':'10px', 'display':'none'})
span Go to the next step
//-block preciseDescription

View File

@ -31,12 +31,19 @@ Coin.onCoinGot = function(coin) {
if (coin === 6) {
setTimeout(function() {
$('#next').show();
$('#next').click(function() {
window.location = '/prototype/next';
});
}, 60*1000);
}
};
Coin.onLastCoin = function() {
$('#next').show();
$('#next').click(function() {
window.location = '/prototype/next';
});
}
function main() {