Rev 128 | Rev 131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 128 | Rev 130 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | <?php /* |
58 | <?php /* |
59 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> -->
|
59 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars.css"> -->
|
60 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
60 | <!-- <link rel="stylesheet" type="text/css" href="styles/lcars21.css"> -->
|
61 | */ ?> |
61 | */ ?> |
62 | <link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars-basic"> |
62 | <link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars-basic<?php
|
- | 63 | $isLocal = ($_SERVER['HTTP_HOST'] === 'localhost'); |
|
- | 64 | if ($isLocal) |
|
- | 65 | {
|
|
- | 66 | ?>&verbose=1&debug=1<?php |
|
- | 67 | }
|
|
- | 68 | ?>">
|
|
63 | <?php
|
69 | <?php
|
64 | $printable = (isset($_GET['printable']) && $_GET['printable'] === '1'); |
70 | $printable = (isset($_GET['printable']) && $_GET['printable'] === '1'); |
65 | if (!$printable) |
71 | if (!$printable) |
66 | {
|
72 | {
|
67 | ?>
|
73 | ?>
|
68 | <link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars22<?php
|
74 | <link rel="stylesheet" type="text/css" href="scripts/builder?type=text/css&prefix=../styles/&src=lcars22<?php
|
69 | if (isset($_GET['ani']) && $_GET['ani'] !== '') |
75 | if (isset($_GET['ani']) && $_GET['ani'] !== '') |
70 | {
|
76 | {
|
71 | echo '?ani=' . $_GET['ani']; |
77 | echo '?ani=' . $_GET['ani']; |
72 | }
|
78 | }
|
- | 79 | ||
- | 80 | if ($isLocal) |
|
- | 81 | {
|
|
- | 82 | ?>&verbose=1&debug=1<?php |
|
- | 83 | }
|
|
73 | ?>">
|
84 | ?>">
|
74 | <?php
|
85 | <?php
|
75 | }
|
86 | }
|
76 | ?>
|
87 | ?>
|
77 | <style type="text/css"> |
88 | <style type="text/css"> |
Line 80... | Line 91... | ||
80 | max-width: 100%; |
91 | max-width: 100%; |
81 | } |
92 | } |
82 | --> |
93 | --> |
83 | </style> |
94 | </style> |
84 | 95 | ||
85 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/window"></script> |
96 | <script type="text/javascript" src="scripts/builder?src=object,dom,dom/storage,dom/events,dom/timeout,dom/window<?php
|
- | 97 | if ($isLocal) |
|
- | 98 | {
|
|
- | 99 | ?>&verbose=1&debug=1<?php |
|
- | 100 | }
|
|
- | 101 | ?>"></script>
|
|
86 | <script type="text/javascript"> |
102 | <script type="text/javascript"> |
87 | <?php
|
103 | <?php
|
88 | /*
|
104 | /*
|
89 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
105 | var ms1Day = 60*60*24*1000; // ms for 1 days = 60sec*60min*24hours*1000ms
|
90 | var msLeaveDays = ms1Day*6;
|
106 | var msLeaveDays = ms1Day*6;
|
Line 356... | Line 372... | ||
356 | <table> |
372 | <table> |
357 | <tr> |
373 | <tr> |
358 | <th><?php echo _('Display'); ?>:</th> |
374 | <th><?php echo _('Display'); ?>:</th> |
359 | <td><script type="text/javascript"> |
375 | <td><script type="text/javascript"> |
360 | (function () { |
376 | (function () { |
361 | var screenInfo = { |
377 | var screenInfo = jsx.dom.window.screenInfo; |
362 | getDim: function () { |
- | |
363 | return { |
- | |
364 | width: screen.width, |
- | |
365 | height: screen.height |
- | |
366 | }; |
- | |
367 | }, |
- | |
368 | - | ||
369 | getAvailDim: function () { |
- | |
370 | return { |
- | |
371 | width: screen.availWidth, |
- | |
372 | height: screen.availHeight |
- | |
373 | }; |
- | |
374 | }, |
- | |
375 | - | ||
376 | getInnerDim: function () { |
- | |
377 | return { |
- | |
378 | width: window.innerWidth, |
- | |
379 | height: window.innerHeight |
- | |
380 | }; |
- | |
381 | }, |
- | |
382 | - | ||
383 | getColorDepth: function () { |
- | |
384 | return (screen.colorDepth || screen.pixelDepth); |
- | |
385 | } |
- | |
386 | }; |
- | |
387 | 378 | ||
388 | var dim = { |
379 | var dim = { |
389 | getScreenText: function () { |
380 | getScreenText: function () { |
390 | var screenDim = screenInfo.getDim(); |
381 | var screenDim = screenInfo.getDim(); |
391 | return screenDim.width + "×" + screenDim.height; |
382 | return screenDim.width + "×" + screenDim.height; |
Line 424... | Line 415... | ||
424 | document.write('<span>' + displayInfo + '<\/span>'); |
415 | document.write('<span>' + displayInfo + '<\/span>'); |
425 | 416 | ||
426 | var oScreenDim; |
417 | var oScreenDim; |
427 | var oAvailDim; |
418 | var oAvailDim; |
428 | var oInnerDim; |
419 | var oInnerDim; |
- | 420 | var _gEBI = jsx.dom.getElementById; |
|
429 | window.onresize = function () { |
421 | jsx.dom.addEventListener(window, "resize", function () { |
430 | /* FIXME: Also update title attribute value */ |
422 | /* FIXME: Also update title attribute value */ |
431 | if (typeof oScreenDim == "undefined") oScreenDim = document.getElementById("screenDim"); |
423 | if (typeof oScreenDim == "undefined") oScreenDim = _gEBI("screenDim"); |
432 | if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
424 | if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
433 | 425 | ||
434 | if (typeof oAvailDim == "undefined") oAvailDim = document.getElementById("availDim"); |
426 | if (typeof oAvailDim == "undefined") oAvailDim = _gEBI("availDim"); |
435 | if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
427 | if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
436 | 428 | ||
437 | if (typeof oInnerDim == "undefined") oInnerDim = document.getElementById("innerDim"); |
429 | if (typeof oInnerDim == "undefined") oInnerDim = _gEBI("innerDim"); |
438 | if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
430 | if (oInnerDim) oInnerDim.innerHTML = dim.getInnerText(); |
439 | }; |
431 | }); |
440 | 432 | ||
441 | var oColorDepth; |
433 | var oColorDepth; |
442 | window.setTimeout(function () { |
434 | jsx.dom.timeout.runAsync(function () { |
443 | if (typeof oColorDepth == "undefined") |
435 | if (typeof oColorDepth == "undefined") |
444 | { |
436 | { |
445 | oColorDepth = document.getElementById("colorDepth"); |
437 | oColorDepth = document.getElementById("colorDepth"); |
446 | } |
438 | } |
447 | 439 | ||
448 | if (oColorDepth) |
440 | if (oColorDepth) |
449 | { |
441 | { |
450 | /* FIXME: Also update title attribute value */ |
442 | /* FIXME: Also update title attribute value */ |
451 | oColorDepth.innerHTML = dim.getColorDepthText(); |
443 | oColorDepth.innerHTML = dim.getColorDepthText(); |
452 | } |
444 | } |
- | 445 | ||
- | 446 | this.run(); |
|
453 | }, 1000); |
447 | }, 1000); |
454 | }()); |
448 | }()); |
455 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
449 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
456 | </tr> |
450 | </tr> |
457 | <tr> |
451 | <tr> |
Line 460... | Line 454... | ||
460 | (function () { |
454 | (function () { |
461 | var ua = navigator.userAgent; |
455 | var ua = navigator.userAgent; |
462 | document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>'); |
456 | document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>'); |
463 | 457 | ||
464 | var oUA; |
458 | var oUA; |
465 | window.setTimeout(function () { |
459 | jsx.dom.timeout.runAsync(function () { |
466 | if (typeof oUA == "undefined") |
460 | if (typeof oUA == "undefined") |
467 | { |
461 | { |
468 | oUA = document.getElementById("ua"); |
462 | oUA = document.getElementById("ua"); |
469 | } |
463 | } |
470 | 464 | ||
Line 473... | Line 467... | ||
473 | oUA.innerHTML = navigator.userAgent; |
467 | oUA.innerHTML = navigator.userAgent; |
474 | 468 | ||
475 | /* Converts CREs */ |
469 | /* Converts CREs */ |
476 | oUA.title = oUA.innerHTML; |
470 | oUA.title = oUA.innerHTML; |
477 | } |
471 | } |
- | 472 | ||
- | 473 | this.run(); |
|
478 | }, 1000); |
474 | }, 1000); |
479 | }()); |
475 | }()); |
480 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
476 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
481 | </tr> |
477 | </tr> |
482 | <tr> |
478 | <tr> |
483 | <th><?php echo _('Features'); ?>:</th> |
479 | <th><?php echo _('Features'); ?>:</th> |
484 | <td><script type="text/javascript"> |
480 | <td><script type="text/javascript"> |
- | 481 | <?php /* FIXME: Move to window.js, keep i18n */ ?> |
|
485 | var fullscreen = (function () { |
482 | var fullscreen = jsx.dom.window.fullscreen = (function () { |
486 | var _isHostMethod = jsx.object.isHostMethod; |
483 | var _isHostMethod = jsx.object.isHostMethod; |
487 | 484 | ||
488 | return { |
485 | return { |
489 | getSupportedProperty: function (base, names, test) { |
486 | getSupportedProperty: function (base, names, test) { |
490 | for (var i = 0, len = names.length; i < len; ++i) |
487 | for (var i = 0, len = names.length; i < len; ++i) |
Line 595... | Line 592... | ||
595 | } |
592 | } |
596 | } |
593 | } |
597 | } |
594 | } |
598 | }; |
595 | }; |
599 | }()); |
596 | }()); |
600 | 597 | ||
601 | (function () { |
598 | (function () { |
602 | function getFeatures () |
599 | function getFeatures () |
603 | { |
600 | { |
604 | var features = []; |
601 | var features = []; |
605 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |
602 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |