Added reverse camera (arrow with camera at the end)

This commit is contained in:
Thomas FORGIONE
2015-05-11 08:45:13 +02:00
parent d677390bb2
commit 647843d51b
10 changed files with 239 additions and 8 deletions

View File

@@ -25,3 +25,13 @@ module.exports.viewports = function(req, res) {
res.send(result);
});
}
module.exports.reverse = function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.locals.cameraStyle = 'reverse';
res.render('prototype.jade', res.locals, function(err, result) {
res.send(result);
});
}

View File

@@ -1,5 +1,6 @@
module.exports = {
'/prototype': 'index',
'/prototype/arrows': 'arrows',
'/prototype/viewports': 'viewports'
'/prototype/viewports': 'viewports',
'/prototype/reverse': 'reverse'
}

View File

@@ -12,6 +12,8 @@ block extrajs
script Recommendation = FixedCamera;
else if cameraStyle == 'viewports'
script Recommendation = OldFixedCamera;
else if cameraStyle == 'reverse'
script Recommendation = ReverseCamera
script(src="/static/js/prototype/main.js")
block extrahead