From a4fedaf600b2c7d65f8df9f471f3c84f35d54f33 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 31 Aug 2015 14:43:32 +0200 Subject: [PATCH] Revert "Try stuff" This reverts commit b93c81a626167655976acc295d33e106555d97aa. --- .../prototype/views/prototype_recommendation.jade | 10 +++++++++- js/l3d/apps/prototype/interactive/main.js | 7 +++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/controllers/prototype/views/prototype_recommendation.jade b/controllers/prototype/views/prototype_recommendation.jade index 3894fbd..06544a5 100644 --- a/controllers/prototype/views/prototype_recommendation.jade +++ b/controllers/prototype/views/prototype_recommendation.jade @@ -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 diff --git a/js/l3d/apps/prototype/interactive/main.js b/js/l3d/apps/prototype/interactive/main.js index 077ab4f..c3d3bda 100644 --- a/js/l3d/apps/prototype/interactive/main.js +++ b/js/l3d/apps/prototype/interactive/main.js @@ -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() {