forked from kangax/cft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (99 loc) · 2.97 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ce-html-1.0-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HbbTV Tests Mainpage</title>
<!-- meta http-equiv="content-type" content="application/ce-html+xml; charset=utf-8"/ -->
<style type="text/css">
* {
background-color:#fff;
font-family:sans-serif;
}
#screen {
margin:35px 0px 20px 63px;
padding: 20px;
width:75%;
}
#time {
text-align:right;
}
table,td {
border:1px solid #000;
}
th {
background-color:#000;
color:#fff;
}
th,td {
text-align:left;
padding:2px 4px;
}
a:focus {
background-color:#800;
color: #fff;
}
</style>
<script type="text/javascript" src="modernizr.js"></script>
<script type="text/javascript" src="keycodes.js"></script>
<script type="text/javascript">
var t = Math.round(Math.random()*1000000);
function check() {
/* Time */
document.getElementById("time").innerHTML = t;
/* System Infos */
document.getElementById("appCodeName").innerHTML = navigator.appCodeName;
document.getElementById("appName").innerHTML = navigator.appName;
document.getElementById("appVersion").innerHTML = navigator.appVersion;
document.getElementById("cookieEnabled").innerHTML = navigator.cookieEnabled;
document.getElementById("javaEnabled").innerHTML = navigator.javaEnabled();
document.getElementById("language").innerHTML = navigator.language;
document.getElementById("platform").innerHTML = navigator.platform;
document.getElementById("userAgent").innerHTML = navigator.userAgent;
}
function checkKey (e) {
var code = e.keyCode;
if (code == VK_RED) history.back();;
if (code == VK_GREEN) reloadPage();
}
function reloadPage () {
window.location.href = window.location.href+"?v="+t;
}
window.onload = check;
document.onkeypress = checkKey;
</script>
</head>
<body>
<div id="screen">
<p id="time"></p>
<h2>User Agent</h2>
<table>
<tr>
<th>platform</th>
<th>appName</th>
<th>appCodeName</th>
<th>appVersion</th>
<th>cookieEnabled</th>
<th>javaEnabled</th>
<th>language</th>
</tr>
<tr>
<td id="platform"></td>
<td id="appName"></td>
<td id="appCodeName"></td>
<td id="appVersion"></td>
<td id="cookieEnabled"></td>
<td id="javaEnabled"></td>
<td id="language"></td>
</tr>
<tr>
<td colspan="7" id="userAgent"></td>
</tr>
</table>
<ul>
<li><a href="cft-tests.html" tabindex="1">Common feature tests (cft)</a></li>
<li><a href="modernizr-tests.html" tabindex="2">modernizr tests</a></li>
<li><a href="http://itv.mit-xperts.com/hbbtvtest/index.php" tabindex="3">MIT-experts HBBTV Testsuite</a></li>
</ul>
</div>
</body>
</html>