diff --git a/controllers/prototype/views/prototype_recommendation.jade b/controllers/prototype/views/prototype_recommendation.jade index 06544a5..3894fbd 100644 --- a/controllers/prototype/views/prototype_recommendation.jade +++ b/controllers/prototype/views/prototype_recommendation.jade @@ -5,17 +5,9 @@ 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 - button#next.btn.btn-success.navbar-btn(style={'margin-right':'10px', 'margin-bottom':'10px', 'display':'none'}) + a#next.btn.btn-success.navbar-btn(role="button", href='/prototype/game', style={'margin-right':'10px', 'margin-bottom':'10px', 'display':'none'}) span Go to the next step //-block preciseDescription diff --git a/js/l3d/apps/prototype/interactive/main.js b/js/l3d/apps/prototype/interactive/main.js index c3d3bda..077ab4f 100644 --- a/js/l3d/apps/prototype/interactive/main.js +++ b/js/l3d/apps/prototype/interactive/main.js @@ -31,19 +31,12 @@ 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() {