| 87,7 → 87,7 |
| --> |
| </style> |
| |
| <script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/events,dom/timeout,dom/widgets,dom/window,http,lcars<?php |
| <script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/storage,dom/events,dom/geolocation,dom/timeout,dom/widgets,dom/window,http,lcars<?php |
| if ($isLocal) |
| { |
| ?>&verbose=1&debug=1<?php |
| 113,6 → 113,8 |
| document.cookie= cookieVal; |
| */ |
| ?> |
| var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
| |
| function body_load () |
| { |
| if (typeof this.ontouchstart != 'undefined') |
| 126,7 → 128,28 |
| fullscreenLI.firstChild.style.cursor = ""; |
| } |
| |
| lcars.multiDisplay = new lcars.MultiDisplay(); |
| jsx.dom.geolocation.setTexts({ |
| TEXT_LATITUDE: "<?php echo tr('Latitude'); ?>", |
| TEXT_NORTH_ABBR: "<?php echo tr('N'); ?>", |
| TEXT_SOUTH_ABBR: "<?php echo tr('S'); ?>", |
| TEXT_LONGITUDE: "<?php echo tr('Longitude'); ?>", |
| TEXT_WEST_ABBR: "<?php echo tr('W'); ?>", |
| TEXT_EAST_ABBR: "<?php echo tr('E'); ?>", |
| TEXT_LAT_LNG_ACCURACY: "<?php echo tr('Lat/Lng Accuracy'); ?>", |
| TEXT_ALTITUDE: "<?php echo tr('Altitude'); ?>", |
| TEXT_ALT_ACCURACY: "<?php echo tr('Alt. Accuracy'); ?>", |
| TEXT_SPEED: "<?php echo tr('Speed'); ?>", |
| TEXT_HEADING: "<?php echo tr('Heading'); ?>", |
| TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE |
| }); |
| |
| lcars.multiDisplay = new lcars.MultiDisplay(null, null, { |
| texts: { |
| TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE, |
| TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>", |
| TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>" |
| } |
| }); |
| } |
| </script> |
| <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?> |
| 375,7 → 398,7 |
| <div class="upper"> |
| <div class="content"> |
| <div class="title" id="title"><span>Home</span></div> |
| <div class="analysis"> |
| <div class="analysis" id="analysis"> |
| <table> |
| <tr> |
| <th><?php echo tr('Display'); ?>:</th> |
| 385,7 → 408,6 |
| var ID_SCREEN_DIM = 'screenDim'; |
| var ID_AVAIL_DIM = 'availDim'; |
| var ID_INNER_DIM = 'innerDim'; |
| var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
| |
| var dim = (function () { |
| var screenInfo = jsx.dom.window.screenInfo; |
| 503,28 → 525,6 |
| <td><script type="text/javascript"> |
| var fullscreen = jsx.dom.window.fullscreen; |
| |
| jsx.dom.geolocation = { |
| getText: function (position) { |
| var coords = position.coords; |
| var latitude = coords.latitude; |
| var longitude = coords.longitude; |
| var altitude = coords.altitude; |
| var altitudeAccuracy = coords.altitudeAccuracy; |
| var speed = coords.speed; |
| var heading = coords.heading; |
| |
| return [ |
| "<?php echo tr('Latitude:'); ?> " + (latitude != null ? latitude + "°" : TEXT_NOT_AVAILABLE), |
| "<?php echo tr('Longitude:'); ?> " + (longitude != null ? longitude + "°" : TEXT_NOT_AVAILABLE), |
| "<?php echo tr('Lat/Lng Accuracy:'); ?> " + coords.accuracy + " m", |
| "<?php echo tr('Altitude:'); ?> " + (altitude != null ? altitude + " m": TEXT_NOT_AVAILABLE), |
| "<?php echo tr('Alt. Accuracy:'); ?> " + (altitudeAccuracy != null ? altitudeAccuracy + " m": TEXT_NOT_AVAILABLE), |
| "<?php echo tr('Speed:'); ?> " + (speed != null && !isNaN(speed) ? speed + " m∕s": TEXT_NOT_AVAILABLE), |
| "<?php echo tr('Heading:'); ?> " + (heading != null && !isNaN(heading) ? heading + "°" : TEXT_NOT_AVAILABLE) |
| ].join("\n"); |
| }, |
| }; |
| |
| (function () { |
| function getFeatures () |
| { |