Some cleaning 😢
This commit is contained in:
9
server/controllers/before-begin/index.js
Normal file
9
server/controllers/before-begin/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports.index = function(req, res) {
|
||||
|
||||
res.setHeader('Content-Type', 'text/html');
|
||||
|
||||
res.render('index.jade', res.locals, function(err, result) {
|
||||
res.send(result);
|
||||
});
|
||||
};
|
||||
|
||||
3
server/controllers/before-begin/urls.js
Normal file
3
server/controllers/before-begin/urls.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
'/before-begin': 'index',
|
||||
};
|
||||
24
server/controllers/before-begin/views/index.jade
Normal file
24
server/controllers/before-begin/views/index.jade
Normal file
@@ -0,0 +1,24 @@
|
||||
extends ../../../views/base.jade
|
||||
|
||||
block content
|
||||
h1 Now, things are getting serious
|
||||
p.
|
||||
You have successfully completed the tutorial ! Congratulations ! Now, things are getting
|
||||
serious.
|
||||
p.
|
||||
You will be prompted with three successive scenes, each of which
|
||||
containing 8 red coins. Your mission is simple: you have to collect the
|
||||
8 red coins.
|
||||
p.
|
||||
There may be recommendations like the ones you saw in the tutorial :
|
||||
they are here to help you navigate in the scene. Use them or ignore
|
||||
them at your convenience.
|
||||
|
||||
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/play';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user