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