Rev 115 | Rev 119 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 115 | Rev 118 | ||
---|---|---|---|
Line 135... | Line 135... | ||
135 | <h1 style="text-align: center"><img |
135 | <h1 style="text-align: center"><img |
136 | src="media/video/img/vulcan_hand-black-bg.png" |
136 | src="media/video/img/vulcan_hand-black-bg.png" |
137 | width="120" |
137 | width="120" |
138 | height="168" |
138 | height="168" |
139 | alt="<?php echo _("Vulcan greeting"); ?>" |
139 | alt="<?php echo _("Vulcan greeting"); ?>" |
140 | title="" |
140 | title="<?php echo _("Vulcan greeting"); ?>" |
141 | style="border: none; cursor: default" |
141 | style="border: none; cursor: default" |
142 | onmouseover="return setStatus(this.title)" |
142 | onmouseover="return setStatus(this.title)" |
143 | onmouseout="return resetStatus()"><br> |
143 | onmouseout="return resetStatus()"><br> |
144 | <?php echo _("Welcome to PointedEars’ Website"); ?></h1> |
144 | <?php echo _("Welcome to PointedEars’ Website"); ?></h1> |
145 | <?php
|
145 | <?php
|
Line 361... | Line 361... | ||
361 | </div> |
361 | </div> |
362 | <div class="multi-display"> |
362 | <div class="multi-display"> |
363 | <div class="upper"> |
363 | <div class="upper"> |
364 | <div class="content"> |
364 | <div class="content"> |
365 | <div class="title"><span>Home</span></div> |
365 | <div class="title"><span>Home</span></div> |
366 | <div class="analysis"> </div> |
366 | <div class="analysis"> |
- | 367 | <table> |
|
- | 368 | <tr> |
|
- | 369 | <th><?php echo _('Display'); ?>:</th> |
|
- | 370 | <td><script type="text/javascript"> |
|
- | 371 | var dim = { |
|
- | 372 | getScreen: function () { |
|
- | 373 | return screen.width + "×" + screen.height; |
|
- | 374 | }, |
|
- | 375 | ||
- | 376 | getAvail: function () { |
|
- | 377 | return screen.availWidth + "×" + screen.availHeight; |
|
- | 378 | }, |
|
- | 379 | ||
- | 380 | getInner: function () { |
|
- | 381 | return window.innerWidth + "×" + window.innerHeight; |
|
- | 382 | }, |
|
- | 383 | ||
- | 384 | getColorDepth: function () { |
|
- | 385 | return (screen.colorDepth || screen.pixelDepth); |
|
- | 386 | } |
|
- | 387 | }; |
|
- | 388 | ||
- | 389 | var displayInfo; |
|
- | 390 | (function () { |
|
- | 391 | displayInfo = |
|
- | 392 | '<span id="screenDim">' + dim.getScreen() + '<\/span>' |
|
- | 393 | + ' (<span id="availDim">' + dim.getAvail() + "<\/span> <?php echo _('available'); ?>," |
|
- | 394 | + ' <span id="innerDim">' + dim.getInner() + "<\/span> <?php echo _('used'); ?>) <?php echo _('pixels'); ?>" |
|
- | 395 | + ' × 2<sup><span id="colorDepth">' + dim.getColorDepth() + "<\/span><\/sup> <?php echo _('colors'); ?>"; |
|
- | 396 | ||
- | 397 | /* FIXME: Convert HTML to text, update whole title text */ |
|
- | 398 | document.write('<span>' + displayInfo + '<\/span>'); |
|
- | 399 | }()); |
|
- | 400 | ||
- | 401 | window.onresize = function () { |
|
- | 402 | /* FIXME: Update whole title text */ |
|
- | 403 | document.getElementById("screenDim").innerHTML = dim.getScreen(); |
|
- | 404 | document.getElementById("availDim").innerHTML = dim.getAvail(); |
|
- | 405 | document.getElementById("innerDim").innerHTML = dim.getInner(); |
|
- | 406 | }; |
|
- | 407 | ||
- | 408 | window.setTimeout(function () { |
|
- | 409 | /* FIXME: Update whole title text */ |
|
- | 410 | document.getElementById("colorDepth").innerHTML = dim.getColorDepth(); |
|
- | 411 | }, 1000); |
|
- | 412 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
|
- | 413 | </tr> |
|
- | 414 | <tr> |
|
- | 415 | <th><?php echo _('User Agent'); ?>:</th> |
|
- | 416 | <td><script type="text/javascript"> |
|
- | 417 | (function () { |
|
- | 418 | var ua = navigator.userAgent; |
|
- | 419 | document.write('<span id="ua" title="' + ua + '">' + ua + '<\/span>'); |
|
- | 420 | ||
- | 421 | window.setTimeout(function () { |
|
- | 422 | document.getElementById("ua").innerHTML = navigator.userAgent; |
|
- | 423 | }, 1000); |
|
- | 424 | }()); |
|
- | 425 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
|
- | 426 | </tr> |
|
- | 427 | <tr> |
|
- | 428 | <th><?php echo _('Features'); ?>:</th> |
|
367 | <script type="text/javascript"> |
429 | <td><script type="text/javascript"> |
368 | var fullscreen = (function () { |
430 | var fullscreen = (function () { |
369 | var _isHostMethod = jsx.object.isHostMethod; |
431 | var _isHostMethod = jsx.object.isHostMethod; |
370 | 432 | ||
371 | return { |
433 | return { |
372 | getSupportedProperty: function (base, names, test) { |
434 | getSupportedProperty: function (base, names, test) { |
Line 478... | Line 540... | ||
478 | } |
540 | } |
479 | } |
541 | } |
480 | } |
542 | } |
481 | }; |
543 | }; |
482 | }()); |
544 | }()); |
- | 545 | ||
- | 546 | (function () { |
|
- | 547 | function getFeatures () |
|
- | 548 | { |
|
- | 549 | var features = []; |
|
- | 550 | if (navigator.cookieEnabled) features.push("<?php echo _('Cookies'); ?>"); |
|
- | 551 | if (fullscreen.isSupportedBy(document.documentElement)) features.push("<?php echo _('Fullscreen'); ?>"); |
|
- | 552 | if (navigator.webkitGetGamepads && navigator.webkitGetGamepads().length) features.push("<?php echo _('Gamepad'); ?>"); |
|
- | 553 | if (navigator.geolocation) features.push("<?php echo _('Geolocation'); ?>"); |
|
- | 554 | if (typeof navigator.javaEnabled != "undefined" && navigator.javaEnabled()) features.push("Java"); |
|
- | 555 | if (typeof window.localStorage != "undefined") features.push("Local Storage"); |
|
- | 556 | if (navigator.plugins) features.push("Plugins"); |
|
- | 557 | if (typeof window.sessionStorage != "undefined") features.push("Session Storage"); |
|
- | 558 | if (typeof window.ontouchstart != "undefined") features.push("Touch"); |
|
- | 559 | return features.join(" • "); |
|
- | 560 | } |
|
- | 561 | ||
- | 562 | var sFeatures = getFeatures(); |
|
- | 563 | document.write('<span id="features" title="' + sFeatures + '">' + sFeatures + '<\/span>'); |
|
- | 564 | ||
- | 565 | window.setTimeout(function () { |
|
- | 566 | var sFeatures = getFeatures(); |
|
- | 567 | var oFeatures = document.getElementById("features"); |
|
- | 568 | oFeatures.innerHTML = sFeatures; |
|
- | 569 | /* Converts CREs */ |
|
- | 570 | oFeatures.title = oFeatures.innerHTML; |
|
- | 571 | }, 1000); |
|
- | 572 | }()); |
|
- | 573 | </script><noscript><?php echo _('N/A'); ?></noscript></td> |
|
- | 574 | </tr> |
|
- | 575 | </table> |
|
483 | </script> |
576 | </div> |
484 | <ul class="commands"> |
577 | <ul class="commands"> |
485 | <li id="cmd1"><a href="index.php" |
578 | <li id="cmd1"><a href="index.php" |
486 | title="Language selection" |
579 | title="Language selection" |
487 | tabindex="1" |
580 | tabindex="1" |
488 | class="button left right" |
581 | class="button left right" |