Rev 181 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 181 | Rev 183 | ||
|---|---|---|---|
| Line 85... | Line 85... | ||
| 85 | max-width: 100%; |
85 | max-width: 100%; |
| 86 | } |
86 | } |
| 87 | --> |
87 | --> |
| 88 | </style> |
88 | </style> |
| 89 | 89 | ||
| 90 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/events,dom/timeout,dom/widgets,dom/window,http,lcars<?php
|
90 | <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
|
| 91 | if ($isLocal) |
91 | if ($isLocal) |
| 92 | {
|
92 | {
|
| 93 | ?>&verbose=1&debug=1<?php |
93 | ?>&verbose=1&debug=1<?php |
| 94 | }
|
94 | }
|
| 95 | ?>"></script>
|
95 | ?>"></script>
|
| Line 111... | Line 111... | ||
| 111 | + "; domain=anybody"
|
111 | + "; domain=anybody"
|
| 112 | + "; path=/";
|
112 | + "; path=/";
|
| 113 | document.cookie= cookieVal;
|
113 | document.cookie= cookieVal;
|
| 114 | */
|
114 | */
|
| 115 | ?>
|
115 | ?>
|
| - | 116 | var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
|
| - | 117 | ||
| 116 | function body_load () |
118 | function body_load () |
| 117 | {
|
119 | {
|
| 118 | if (typeof this.ontouchstart != 'undefined') |
120 | if (typeof this.ontouchstart != 'undefined') |
| 119 | {
|
121 | {
|
| 120 | this.ontouchstart = function () {};
|
122 | this.ontouchstart = function () {};
|
| Line 124... | Line 126... | ||
| 124 | {
|
126 | {
|
| 125 | var fullscreenLI = jsx.dom.getElementById("cmd3");
|
127 | var fullscreenLI = jsx.dom.getElementById("cmd3");
|
| 126 | fullscreenLI.firstChild.style.cursor = ""; |
128 | fullscreenLI.firstChild.style.cursor = ""; |
| 127 | } |
129 | } |
| 128 | 130 | ||
| - | 131 | jsx.dom.geolocation.setTexts({
|
|
| - | 132 | TEXT_LATITUDE: "<?php echo tr('Latitude'); ?>", |
|
| - | 133 | TEXT_NORTH_ABBR: "<?php echo tr('N'); ?>", |
|
| - | 134 | TEXT_SOUTH_ABBR: "<?php echo tr('S'); ?>", |
|
| - | 135 | TEXT_LONGITUDE: "<?php echo tr('Longitude'); ?>", |
|
| - | 136 | TEXT_WEST_ABBR: "<?php echo tr('W'); ?>", |
|
| - | 137 | TEXT_EAST_ABBR: "<?php echo tr('E'); ?>", |
|
| - | 138 | TEXT_LAT_LNG_ACCURACY: "<?php echo tr('Lat/Lng Accuracy'); ?>", |
|
| - | 139 | TEXT_ALTITUDE: "<?php echo tr('Altitude'); ?>", |
|
| - | 140 | TEXT_ALT_ACCURACY: "<?php echo tr('Alt. Accuracy'); ?>", |
|
| - | 141 | TEXT_SPEED: "<?php echo tr('Speed'); ?>", |
|
| - | 142 | TEXT_HEADING: "<?php echo tr('Heading'); ?>", |
|
| - | 143 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE |
|
| - | 144 | }); |
|
| - | 145 | ||
| 129 | lcars.multiDisplay = new lcars.MultiDisplay(); |
146 | lcars.multiDisplay = new lcars.MultiDisplay(null, null, {
|
| - | 147 | texts: {
|
|
| - | 148 | TEXT_NOT_AVAILABLE: TEXT_NOT_AVAILABLE, |
|
| - | 149 | TEXT_CURRENT_COORDS: "<?php echo tr('Your current coordinates on Terra'); ?>", |
|
| - | 150 | TEXT_ACCURACY: "<?php echo tr('accuracy'); ?>" |
|
| - | 151 | } |
|
| - | 152 | }); |
|
| 130 | } |
153 | } |
| 131 | </script> |
154 | </script> |
| 132 | <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?> |
155 | <?php /* <bgsound src="media/interface/sound/beginop.wav" loop="infinite"> */ ?> |
| 133 | </head> |
156 | </head> |
| 134 | <body class="fade-in" onload="body_load()"> |
157 | <body class="fade-in" onload="body_load()"> |
| Line 373... | Line 396... | ||
| 373 | </div> |
396 | </div> |
| 374 | <div class="multi-display"> |
397 | <div class="multi-display"> |
| 375 | <div class="upper"> |
398 | <div class="upper"> |
| 376 | <div class="content"> |
399 | <div class="content"> |
| 377 | <div class="title" id="title"><span>Home</span></div> |
400 | <div class="title" id="title"><span>Home</span></div> |
| 378 | <div class="analysis"> |
401 | <div class="analysis" id="analysis"> |
| 379 | <table> |
402 | <table> |
| 380 | <tr> |
403 | <tr> |
| 381 | <th><?php echo tr('Display'); ?>:</th> |
404 | <th><?php echo tr('Display'); ?>:</th> |
| 382 | <td><script type="text/javascript"> |
405 | <td><script type="text/javascript"> |
| 383 | var _addEventListener = jsx.dom.addEventListener; |
406 | var _addEventListener = jsx.dom.addEventListener; |
| 384 | var _runAsync = jsx.dom.timeout.runAsync; |
407 | var _runAsync = jsx.dom.timeout.runAsync; |
| 385 | var ID_SCREEN_DIM = 'screenDim'; |
408 | var ID_SCREEN_DIM = 'screenDim'; |
| 386 | var ID_AVAIL_DIM = 'availDim'; |
409 | var ID_AVAIL_DIM = 'availDim'; |
| 387 | var ID_INNER_DIM = 'innerDim'; |
410 | var ID_INNER_DIM = 'innerDim'; |
| 388 | var TEXT_NOT_AVAILABLE = "<?php echo tr('N/A'); ?>"; |
- | |
| 389 | 411 | ||
| 390 | var dim = (function () {
|
412 | var dim = (function () {
|
| 391 | var screenInfo = jsx.dom.window.screenInfo; |
413 | var screenInfo = jsx.dom.window.screenInfo; |
| 392 | 414 | ||
| 393 | return {
|
415 | return {
|
| Line 501... | Line 523... | ||
| 501 | <tr> |
523 | <tr> |
| 502 | <th><?php echo tr('Features'); ?>:</th> |
524 | <th><?php echo tr('Features'); ?>:</th> |
| 503 | <td><script type="text/javascript"> |
525 | <td><script type="text/javascript"> |
| 504 | var fullscreen = jsx.dom.window.fullscreen; |
526 | var fullscreen = jsx.dom.window.fullscreen; |
| 505 | 527 | ||
| 506 | jsx.dom.geolocation = {
|
- | |
| 507 | getText: function (position) {
|
- | |
| 508 | var coords = position.coords; |
- | |
| 509 | var latitude = coords.latitude; |
- | |
| 510 | var longitude = coords.longitude; |
- | |
| 511 | var altitude = coords.altitude; |
- | |
| 512 | var altitudeAccuracy = coords.altitudeAccuracy; |
- | |
| 513 | var speed = coords.speed; |
- | |
| 514 | var heading = coords.heading; |
- | |
| 515 | - | ||
| 516 | return [ |
- | |
| 517 | "<?php echo tr('Latitude:'); ?> " + (latitude != null ? latitude + "°" : TEXT_NOT_AVAILABLE), |
- | |
| 518 | "<?php echo tr('Longitude:'); ?> " + (longitude != null ? longitude + "°" : TEXT_NOT_AVAILABLE), |
- | |
| 519 | "<?php echo tr('Lat/Lng Accuracy:'); ?> " + coords.accuracy + " m", |
- | |
| 520 | "<?php echo tr('Altitude:'); ?> " + (altitude != null ? altitude + " m": TEXT_NOT_AVAILABLE), |
- | |
| 521 | "<?php echo tr('Alt. Accuracy:'); ?> " + (altitudeAccuracy != null ? altitudeAccuracy + " m": TEXT_NOT_AVAILABLE), |
- | |
| 522 | "<?php echo tr('Speed:'); ?> " + (speed != null && !isNaN(speed) ? speed + " m∕s": TEXT_NOT_AVAILABLE), |
- | |
| 523 | "<?php echo tr('Heading:'); ?> " + (heading != null && !isNaN(heading) ? heading + "°" : TEXT_NOT_AVAILABLE) |
- | |
| 524 | ].join("\n");
|
- | |
| 525 | }, |
- | |
| 526 | }; |
- | |
| 527 | - | ||
| 528 | (function () {
|
528 | (function () {
|
| 529 | function getFeatures () |
529 | function getFeatures () |
| 530 | {
|
530 | {
|
| 531 | var features = []; |
531 | var features = []; |
| 532 | if (typeof document.cookie != "undefined") |
532 | if (typeof document.cookie != "undefined") |