Some cleaning 😢

This commit is contained in:
Thomas FORGIONE
2015-11-13 10:36:54 +01:00
parent 59518eb702
commit 5e0a6c3121
113 changed files with 433 additions and 67 deletions

View File

@@ -0,0 +1,12 @@
module.exports.index = function(req, res) {
req.session.workerId = req.params.workerId;
req.session.save();
res.setHeader('Content-Type', 'text/html');
res.render('index.jade', res.locals, function(err, result) {
res.send(result);
});
};

View File

@@ -0,0 +1,4 @@
module.exports = {
'/intro': 'index',
'/intro/:workerId': 'index',
};

View File

@@ -0,0 +1,20 @@
extends ../../../views/base.jade
block content
h1 Welcome !
p This study consists in four consecutive steps :
ol
li Enter some personal information that we will use for statistics purposes
li Complete a tutorial to learn how to use the 3D navigation interface
li Play a game in which you have to find coins hidden in a 3D world. You need to play the game in 3 different scenes.
li Complete a short questionnaire to give us feedback on the 3D navigation interface
h2#start
block extrajs
script.
var isOpera = window.navigator.userAgent.indexOf("OPR") > -1 || window.navigator.userAgent.indexOf("Opera") > -1;
if (($.browser.chrome || $.browser.mozilla) && !isOpera) {
$('#start').html('You can now <a href="/user-study">start when you are ready</a>');
} else {
$('#start').html('Sorry, your browser is not compatible... please try again with Firefox or Chrome');
}