From 824daafd6bafc5346ca31f6166c6c06ee2b6c363 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Wed, 9 Sep 2015 15:35:40 +0200 Subject: [PATCH] Avoid link (avoid multiple requests) --- controllers/before-begin/views/index.jade | 9 ++++++++- server.js | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/controllers/before-begin/views/index.jade b/controllers/before-begin/views/index.jade index 4fdfda9..6451dd9 100644 --- a/controllers/before-begin/views/index.jade +++ b/controllers/before-begin/views/index.jade @@ -10,4 +10,11 @@ block content saw in the tutorial : they are here to help you navigate in the scene. Use them or ignore them at your convenience. - p You can start when you're ready ! + button#next.btn.btn-success.navbar-btn(style={'margin-right':'10px', 'margin-bottom':'10px'}) + span Go to the next step + script. + document.getElementById('next').onclick = function() { + document.getElementById('next').disabled = true; + window.location = '/prototype/game'; + } + diff --git a/server.js b/server.js index 394207e..878508a 100644 --- a/server.js +++ b/server.js @@ -94,7 +94,7 @@ app.use(function(req, res) { var serverPort, serverIpAddress; if ( isDev ) { serverPort = 4000; - serverIpAddress = '147.127.121.42'; + serverIpAddress = 'localhost'; } else { // Openhift conf serverPort = process.env.OPENSHIFT_NODEJS_PORT || 8080;