Added reverse camera (arrow with camera at the end)
This commit is contained in:
10
controllers/prototype/index.js
vendored
10
controllers/prototype/index.js
vendored
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
3
controllers/prototype/urls.js
vendored
3
controllers/prototype/urls.js
vendored
@@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
'/prototype': 'index',
|
||||
'/prototype/arrows': 'arrows',
|
||||
'/prototype/viewports': 'viewports'
|
||||
'/prototype/viewports': 'viewports',
|
||||
'/prototype/reverse': 'reverse'
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user