-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
160 lines (136 loc) · 3.85 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE HTML>
<html manifest="http://vitim.us/playground/pixel/cache.manifest">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="user-scalable=yes, initial-scale=1.0, width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon" href="touchicon.png" />
<title>PixelTest</title>
<style type="text/css">
window,body{
margin: 0;
width: 100%;
height: 100%;
}
body{
font-family:Helvetica, Arial, sans-serif;
background-color: #333;
color: #F3F3F3;
margin: 0;
padding: 5px;
}
h1,h2,h3,h4,h5,h6,h7,h8,h9{
text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
ul{
list-style: none;
padding: 0;
}
li{
background-color: #222;
margin: 1px;
padding: 0.5em;
}
li:hover{
background-color:#000;
}
li:active{
background-color:#444;
}
li a{
text-decoration: none;
color: inherit;
/* text width link */
display: block;
width: auto;
}
li .item{
display: table;
width: auto;
}
li .item .icon{
display: table-cell;
vertical-align: middle;
width: 38px;
height: 38px;
background-color: black;
border-radius: 6px;
box-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
li .item span{
display: table-cell;
vertical-align: middle;
text-shadow: 0 2px 3px rgba(0,0,0,0.5);
padding-left: 1em;
padding-right: 1em;
}
footer div{
font-size: 9pt;
text-align:center;
}
footer a{
color: white;
text-decoration: none;
}
</style>
</style>
</head>
<body onclick="openFullscreen(this)">
<header>
<h1>Tools for testing screen and touch and repairing dead pixel</h1>
<p>Add this page to your home screen!</p>
</header>
<content>
<h2>Multitouch Tests</h2>
<ul>
<li><a href="crosshair/index.html"><image src="crosshair/apple-touch-icon.png" width="32" height="32"> Crosschair Test</a></li>
<li><a href="canvas/index.html"><image src="canvas/apple-touch-icon.png" width="32" height="32"> Drawing Canvas</a></li>
</ul>
<h2>Screen Test</h2>
<ul>
<li><image src="colors/apple-touch-icon.png" width="32" height="32"><a href="colors/index.html">Colors Test</a></li>
<li><image src="colors/apple-touch-icon.png" width="32" height="32"><a href="colors/contrast.html">Contrast/Saturation</a></li>
<li><image src="colors/apple-touch-icon.png" width="32" height="32"><a href="colors/colors.html">Fullscreen Colors</a></li>
</ul>
<h2>Dead Pixel Stuck Pixel Fix</h2>
<p style="margin: 5px; background-color: rgba(255,255,0,0.2); font-size:10pt;">
"Warning: Some tools contains rapid flashing colors, and could be unsuitable to people with photosensitive epilepsy. Discretion is advised."
</p>
<ul>
<li><a href="deadPixelFix/pixelFix_noise_box.html">Dragable Noise Box</a></li>
<li><a href="deadPixelFix/pixelFix_noise.html">Fullscreen Noise</a></li>
<li><a href="deadPixelFix/pixelFix_bw.html">Flashing Black/white</a></li>
<li><a href="deadPixelFix/pixelFix_rgb.html">Flashing red,green,blue</a></li>
<li><a href="deadPixelFix/pixelFix_8colors.html">Flashing 8bit colors</a></li>
</ul>
</content>
<footer>
<div><a href="http://vitim.us">Vitim.us</a></div>
</footer>
<script type="text/javascript">
/* JAVASCRIPT GOES HERE */
window.onload=function(){
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++) {
if(!a[i].onclick && a[i].getAttribute("target") != "_blank") {
a[i].onclick=function() {
window.location=this.getAttribute("href");
return false;
}
}
}
};
function openFullscreen(elem=document) {
if (elem.requestFullscreen) {
elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) { /* Safari */
elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE11 */
elem.msRequestFullscreen();
}
}
</script>
</body>
</html>