repo: janusweb
action: commit
revision: 
path_from: 
revision_from: f354f88ec7d2d288a4f9b714e863fa8bbddd27b1:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit f354f88ec7d2d288a4f9b714e863fa8bbddd27b1
Author: James Baicoianu 
Date:   Sat Jul 29 16:05:39 2017 -0700

    Fixed translators

diff --git a/scripts/translators/blank.js b/scripts/translators/blank.js
index b8c94dee1992c91d2855012f5da776906145b715..
index ..93fc6439d190fb02284255c4967fb5f2a447be88 100644
--- a/scripts/translators/blank.js
+++ b/scripts/translators/blank.js
@@ -8,8 +8,8 @@ elation.require([], function() {
             pos: [0, 0, 0],
             orientation: new THREE.Quaternion().setFromEuler(new THREE.Euler(0,0,0))
           },
-          objects: [],
-          links: []
+          object: [],
+          link: []
         };
         //var bookmarks = elation.collection.localindexed({key: 'janusweb.bookmarks'});
         resolve(roomdata);
diff --git a/scripts/translators/bookmarks.js b/scripts/translators/bookmarks.js
index aa4b422070e5c6730a65e98adcc3d31573927083..
index ..41d116d677ab33900a86c13959aee4565c15b368 100644
--- a/scripts/translators/bookmarks.js
+++ b/scripts/translators/bookmarks.js
@@ -8,8 +8,8 @@ elation.require(['elation.collection'], function() {
             pos: [-18, 0, 0],
             orientation: new THREE.Quaternion().setFromEuler(new THREE.Euler(0,0,0))
           },
-          objects: [],
-          links: []
+          object: [],
+          link: []
         };
         //var bookmarks = elation.collection.localindexed({key: 'janusweb.bookmarks'});
         var bookmarks = args.janus.bookmarks;
@@ -21,7 +21,7 @@ elation.require(['elation.collection'], function() {
           var items = bookmarks.items;
           for (var i = 0; i < items.length; i++) {
             var item = items[items.length - i - 1];
-            roomdata.links.push({
+            roomdata.link.push({
               url: item.url,
               title: item.title,
               scale: [1.2, 2, 1],
diff --git a/scripts/translators/error.js b/scripts/translators/error.js
index 86a5c1476622dfd09029e7f359f918486ebe4bec..
index ..816c8d7ad90023838aa3f56660325af6a13e2e26 100644
--- a/scripts/translators/error.js
+++ b/scripts/translators/error.js
@@ -2,10 +2,10 @@ elation.require([], function() {
   elation.component.add('janusweb.translators.error', function() {
     this.init = function() {
       this.errortypes = {
-        404: {color1: '#ff0000', color2: '#190000', text: '404 - Are you lost?'},
-        410: {color1: '#ff0000', color2: '#190000', text: '410 - Are you lost?'},
-        403: {color1: '#0000ff', color2: '#000019', text: '403 - Forbidden'},
-        500: {color1: '#ff00ff', color2: '#190019', text: '500 - Server error'},
+        404: {color1: '#ff0000', color2: '#ff3333', text: '404 - Are you lost?'},
+        410: {color1: '#ff0000', color2: '#ff3333', text: '410 - Are you lost?'},
+        403: {color1: '#0000ff', color2: '#3333ff', text: '403 - Forbidden'},
+        500: {color1: '#ff00ff', color2: '#ff33ff', text: '500 - Server error'},
         'unknown': {color1: '#ffff00', color2: '#191900', text: 'Unknown error'},
       };
     }
@@ -25,17 +25,18 @@ elation.require([], function() {

         var roomdata = {
           room: {
-            pos: [0.8, -0.2, 0],
-            orientation: new THREE.Quaternion().setFromEuler(new THREE.Euler(0,0,0))
+            pos: [0,0,0],
+            xdir: "-1 0 0",
+            zdir: "0 0 -1",
           },
-          objects: [
-            {id: 'stand', js_id: 0, pos: "1 -0.1 4", xdir: "-1 0 0", zdir: "0 0 -1", col: error.color1, lighting: "false"},
-            {id: 'sphere', js_id: 1, pos: "4 350 -1", xdir: "0 0 1", ydir: "0 -1 0", zdir: "1 0 0", scale: "400 400 400", col: error.color2, lighting: "false", cull_face: 'front', image_id: 'static'}
+          object: [
+            {id: 'stand', js_id: 0, pos: "0 -0.1 0", xdir: "-1 0 0", zdir: "0 0 -1", col: error.color1, lighting: "false"},
+            {id: 'sphere', js_id: 1, pos: "0 0 5", xdir: "-1 0 0", ydir: "0 1 0", zdir: "0 0 -1", scale: "400 400 400", col: error.color2, lighting: "false", cull_face: 'front', image_id: 'static'}
           ],
-          texts: [
-            { js_id: 2, pos: "1.3 1.4 12.5", xdir: "-1 0 0", zdir: "0 0 -1", scale: "6 6 1", col: error.color1, '_content': error.text}
+          text: [
+            { js_id: 2, pos: "0 1.4 7.5", xdir: "-1 0 0", zdir: "0 0 -1", scale: "6 6 1", col: error.color1, '_content': error.text}
           ],
-          links: []
+          link: []
         };
         resolve(roomdata);
       }));

-----END OF PAGE-----