display.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html>
  2. <head>
  3. <title>ArozOS Display Test</title>
  4. <script src="../../../script/jquery.min.js"></script>
  5. <style>
  6. body {
  7. background-color: #f9f9f9;
  8. }
  9. .fs {
  10. position: fixed;
  11. left: 0px;
  12. top: 0px;
  13. width: 100%;
  14. height: 100%;
  15. background-color: black;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="fs" onClick="nextColor(this);" style="display:none;">
  21. </div>
  22. <div id="startui" class="ui container">
  23. <div class="ui basic segment">
  24. <div class="ui header">
  25. Display Testing
  26. <div class="sub header">Simple display testing tools</div>
  27. </div>
  28. </div>
  29. <h4>Dead Pixel Test </h4>
  30. <p>This test will popup a new window with full screen functionality. <br>
  31. To exit the test, press ESC on keyboard or swap down & press the "close" button on touch screen devices.</p>
  32. <button class="ui blue button" onClick='startTest();'><i class="external icon"></i> Start Test </button>
  33. </div>
  34. <script>
  35. function startTest() {
  36. window.open("/SystemAO/info/display.html#test");
  37. }
  38. if (window.location.hash == "#test") {
  39. var colorList = ["black", "red", "blue", "green", "yellow", "purple", "white"];
  40. var code = 0;
  41. $(".fs").show();
  42. $("#startui").hide();
  43. function nextColor(object) {
  44. requestFullScreen(object);
  45. code = code + 1;
  46. if (code > colorList.length - 1) {
  47. code = 0;
  48. }
  49. $(".fs").css("background-color", colorList[code]);
  50. }
  51. function requestFullScreen(element) {
  52. // Supports most browsers and their versions.
  53. var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
  54. if (requestMethod) { // Native full screen.
  55. requestMethod.call(element);
  56. } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
  57. var wscript = new ActiveXObject("WScript.Shell");
  58. if (wscript !== null) {
  59. wscript.SendKeys("{F11}");
  60. }
  61. }
  62. }
  63. }
  64. </script>
  65. </body>
  66. </html>