diff --git a/config.js b/config.js index 7d7e1aa..6297099 100644 --- a/config.js +++ b/config.js @@ -10,7 +10,9 @@ module.exports = { 'house' : 'site.house', 'first_person' : 'site.first_person', 'hospital' : 'site.hospital', - 'lodma' : 'site.lodma' + 'lodma' : 'site.lodma', + 'ember' : 'site.ember', + 'remote' : 'remote.show' } }, diff --git a/controllers/remote.js b/controllers/remote.js new file mode 100644 index 0000000..d8c13f1 --- /dev/null +++ b/controllers/remote.js @@ -0,0 +1,14 @@ +module.exports = Remote.inherits( autodafe.Controller ); + +function Remote( params ) { + this._init( params ); +} + + +Remote.prototype.show = function(params, client){ + this.send_response( 'remote', client, { + obj_name : params.model || 'ember', + width : params.width || 700, + height : params.height || 400 + } ); +} \ No newline at end of file diff --git a/controllers/site.js b/controllers/site.js index e8e73d4..34ce7d7 100644 --- a/controllers/site.js +++ b/controllers/site.js @@ -18,4 +18,5 @@ SiteController.prototype.house = function(){} SiteController.prototype.lodma = function(){} SiteController.prototype.hospital = function(){} SiteController.prototype.first_person = function(){} -SiteController.prototype.building = function(){} \ No newline at end of file +SiteController.prototype.building = function(){} +SiteController.prototype.ember = function(){} \ No newline at end of file diff --git a/iframe test/ember.html b/iframe test/ember.html new file mode 100644 index 0000000..ac4dd09 --- /dev/null +++ b/iframe test/ember.html @@ -0,0 +1,14 @@ + + +
+