Avoid link (avoid multiple requests)
This commit is contained in:
parent
5e844538d2
commit
824daafd6b
|
@ -10,4 +10,11 @@ block content
|
||||||
saw in the tutorial : they are here to help you navigate in the scene.
|
saw in the tutorial : they are here to help you navigate in the scene.
|
||||||
Use them or ignore them at your convenience.
|
Use them or ignore them at your convenience.
|
||||||
|
|
||||||
p You can start <a href='/prototype/game'>when you're ready</a> !
|
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';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ app.use(function(req, res) {
|
||||||
var serverPort, serverIpAddress;
|
var serverPort, serverIpAddress;
|
||||||
if ( isDev ) {
|
if ( isDev ) {
|
||||||
serverPort = 4000;
|
serverPort = 4000;
|
||||||
serverIpAddress = '147.127.121.42';
|
serverIpAddress = 'localhost';
|
||||||
} else {
|
} else {
|
||||||
// Openhift conf
|
// Openhift conf
|
||||||
serverPort = process.env.OPENSHIFT_NODEJS_PORT || 8080;
|
serverPort = process.env.OPENSHIFT_NODEJS_PORT || 8080;
|
||||||
|
|
Loading…
Reference in New Issue