123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <html>
- <head>
- <title>ArozOS Display Test</title>
- <script src="../../../script/jquery.min.js"></script>
- <style>
- body {
- background-color: #f9f9f9;
- }
-
- .fs {
- position: fixed;
- left: 0px;
- top: 0px;
- width: 100%;
- height: 100%;
- background-color: black;
- }
- </style>
- </head>
- <body>
- <div class="fs" onClick="nextColor(this);" style="display:none;">
- </div>
- <div id="startui" class="ui container">
- <div class="ui basic segment">
- <div class="ui header">
- Display Testing
- <div class="sub header">Simple display testing tools</div>
- </div>
- </div>
-
- <h4>Dead Pixel Test </h4>
- <p>This test will popup a new window with full screen functionality. <br>
- To exit the test, press ESC on keyboard or swap down & press the "close" button on touch screen devices.</p>
- <button class="ui blue button" onClick='startTest();'><i class="external icon"></i> Start Test </button>
-
- </div>
- <script>
- function startTest() {
- window.open("/SystemAO/info/display.html#test");
- }
- if (window.location.hash == "#test") {
- var colorList = ["black", "red", "blue", "green", "yellow", "purple", "white"];
- var code = 0;
- $(".fs").show();
- $("#startui").hide();
- function nextColor(object) {
- requestFullScreen(object);
- code = code + 1;
- if (code > colorList.length - 1) {
- code = 0;
- }
- $(".fs").css("background-color", colorList[code]);
- }
- function requestFullScreen(element) {
- // Supports most browsers and their versions.
- var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
- if (requestMethod) { // Native full screen.
- requestMethod.call(element);
- } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
- var wscript = new ActiveXObject("WScript.Shell");
- if (wscript !== null) {
- wscript.SendKeys("{F11}");
- }
- }
- }
- }
- </script>
- </body>
- </html>
|