Rev 131 | Rev 133 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 131 | Rev 132 | ||
---|---|---|---|
Line 367... | Line 367... | ||
367 | <div class="multi-display"> |
367 | <div class="multi-display"> |
368 | <div class="upper"> |
368 | <div class="upper"> |
369 | <div class="content"> |
369 | <div class="content"> |
370 | <div class="title"><span>Home</span></div> |
370 | <div class="title"><span>Home</span></div> |
371 | <div class="analysis"> |
371 | <div class="analysis"> |
- | 372 | <?php /* |
|
372 | <table> |
373 | <table>
|
373 | <tr> |
374 | <tr>
|
374 | <th><?php echo _('Display'); ?>:</th> |
375 | <th><?php echo _('Display'); ?>:</th>
|
375 | <td><script type="text/javascript"> |
376 | <td><script type="text/javascript">
|
376 | var runAsync = jsx.dom.timeout.runAsync; |
377 | var runAsync = jsx.dom.timeout.runAsync;
|
Line 411... | Line 412... | ||
411 | + (availDimText ? ' (<span id="availDim">' + availDimText + "<\/span>" : "") |
412 | + (availDimText ? ' (<span id="availDim">' + availDimText + "<\/span>" : "")
|
412 | + (innerDimText ? '<span id="innerDim">' + innerDimText + "<\/span>) <?php echo _('pixels'); ?>" : "") |
413 | + (innerDimText ? '<span id="innerDim">' + innerDimText + "<\/span>) <?php echo _('pixels'); ?>" : "")
|
413 | + (colorDepthText ? ' × <span id="colorDepth">' + colorDepthText + "<\/span>" : "") |
414 | + (colorDepthText ? ' × <span id="colorDepth">' + colorDepthText + "<\/span>" : "")
|
414 | : "<?php echo _('N/A'); ?>"; |
415 | : "<?php echo _('N/A'); ?>";
|
415 | 416 |
|
|
416 | /* FIXME: Convert HTML to text, update whole title text */ |
417 | // FIXME: Convert HTML to text, update whole title text
|
417 | document.write('<span>' + displayInfo + '<\/span>'); |
418 | document.write('<span>' + displayInfo + '<\/span>');
|
418 | 419 | ||
419 | var oScreenDim; |
420 | var oScreenDim;
|
420 | var oAvailDim; |
421 | var oAvailDim;
|
421 | var oInnerDim; |
422 | var oInnerDim;
|
422 | var _gEBI = jsx.dom.getElementById; |
423 | var _gEBI = jsx.dom.getElementById;
|
423 | jsx.dom.addEventListener(window, "resize", function () { |
424 | jsx.dom.addEventListener(window, "resize", function () {
|
424 | /* FIXME: Also update title attribute value */ |
425 | // FIXME: Also update title attribute value
|
425 | if (typeof oScreenDim == "undefined") oScreenDim = _gEBI("screenDim"); |
426 | if (typeof oScreenDim == "undefined") oScreenDim = _gEBI("screenDim");
|
426 | if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText(); |
427 | if (oScreenDim) oScreenDim.innerHTML = dim.getScreenText();
|
427 | 428 | ||
428 | if (typeof oAvailDim == "undefined") oAvailDim = _gEBI("availDim"); |
429 | if (typeof oAvailDim == "undefined") oAvailDim = _gEBI("availDim");
|
429 | if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText(); |
430 | if (oAvailDim) oAvailDim.innerHTML = dim.getAvailText();
|
Line 439... | Line 440... | ||
439 | oColorDepth = document.getElementById("colorDepth"); |
440 | oColorDepth = document.getElementById("colorDepth");
|
440 | } |
441 | }
|
441 | 442 |
|
|
442 | if (oColorDepth) |
443 | if (oColorDepth)
|
443 | { |
444 | {
|
444 | /* FIXME: Also update title attribute value */ |
445 | // FIXME: Also update title attribute value
|
445 | oColorDepth.innerHTML = dim.getColorDepthText(); |
446 | oColorDepth.innerHTML = dim.getColorDepthText();
|
446 | } |
447 | }
|
447 | 448 | ||
448 | this.run(); |
449 | this.run();
|
449 | }, 1000); |
450 | }, 1000);
|
Line 466... | Line 467... | ||
466 | 467 |
|
|
467 | if (oUA) |
468 | if (oUA)
|
468 | { |
469 | {
|
469 | oUA.innerHTML = navigator.userAgent; |
470 | oUA.innerHTML = navigator.userAgent;
|
470 | 471 | ||
471 | /* Converts CREs */ |
472 | // Converts CREs
|
472 | oUA.title = oUA.innerHTML; |
473 | oUA.title = oUA.innerHTML;
|
473 | } |
474 | }
|
474 | 475 | ||
475 | this.run(); |
476 | this.run();
|
476 | }, 1000); |
477 | }, 1000);
|
477 | }()); |
478 | }());
|
478 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
479 | </script><noscript><?php echo _('N/A'); ?></noscript></td>
|
479 | </tr> |
480 | </tr>
|
480 | <tr> |
481 | <tr>
|
481 | <th><?php echo _('Features'); ?>:</th> |
482 | <th><?php echo _('Features'); ?>:</th>
|
482 | <td><script type="text/javascript"> |
483 | <td>*/ ?><script type="text/javascript"> |
483 | <?php /* FIXME: Move to window.js, keep i18n */ ?> |
484 | // FIXME: Move to window.js, keep i18n |
484 | var fullscreen = jsx.dom.window.fullscreen = (function () { |
485 | var fullscreen = jsx.dom.window.fullscreen = (function () { |
485 | var _isHostMethod = jsx.object.isHostMethod; |
486 | var _isHostMethod = jsx.object.isHostMethod; |
486 | 487 | ||
487 | return { |
488 | return { |
488 | getSupportedProperty: function (base, names, test) { |
489 | getSupportedProperty: function (base, names, test) { |
Line 594... | Line 595... | ||
594 | } |
595 | } |
595 | } |
596 | } |
596 | } |
597 | } |
597 | }; |
598 | }; |
598 | }()); |
599 | }()); |
599 | 600 | <?php /* |
|
600 | (function () { |
601 | (function () {
|
601 | function getFeatures () |
602 | function getFeatures ()
|
602 | { |
603 | {
|
603 | var features = []; |
604 | var features = [];
|
604 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |
605 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>");
|
Line 626... | Line 627... | ||
626 | 627 | ||
627 | if (oFeatures) |
628 | if (oFeatures)
|
628 | { |
629 | {
|
629 | oFeatures.innerHTML = getFeatures(); |
630 | oFeatures.innerHTML = getFeatures();
|
630 | 631 | ||
631 | /* Converts CREs */ |
632 | // Converts CREs
|
632 | oFeatures.title = oFeatures.innerHTML; |
633 | oFeatures.title = oFeatures.innerHTML;
|
633 | } |
634 | }
|
634 | 635 | ||
635 | tFeatures = this.run(); |
636 | tFeatures = this.run();
|
636 | }, 1000); |
637 | }, 1000);
|
637 | }()); |
638 | }());
|
- | 639 | */ ?> |
|
638 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
640 | </script><?php /* ?><noscript><?php echo _('N/A'); ?></noscript></td> */ ?><?php /* |
639 | </tr> |
641 | </tr>
|
640 | </table> |
642 | </table>
|
- | 643 | */ ?> |
|
641 | </div> |
644 | </div> |
642 | <ul class="commands"> |
645 | <ul class="commands"> |
643 | <li id="cmd1"><a href="index.php" |
646 | <li id="cmd1"><a href="index.php" |
644 | title="Language selection" |
647 | title="Language selection" |
645 | tabindex="1" |
648 | tabindex="1" |