174 lines
3.3 KiB
HTML
Executable File
174 lines
3.3 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Browser Info</title>
|
|
<meta charset="utf-8" />
|
|
<!-- IE set to latest comp mode -->
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
|
|
|
|
|
|
<link rel="shortcut icon" href="/images/rockstar.png" />
|
|
<script type="text/javascript" src="/js/libs/jquery-1.8.2.min.js"></script>
|
|
|
|
<!-- Detect and old browsers before loading any new libraries that will crash IE -->
|
|
<script type="text/javascript" src="/js/detect_browser_error.js"></script>
|
|
|
|
<style>
|
|
body {
|
|
background: #fff;
|
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
/* Social club css */
|
|
font-size: 13px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
table {
|
|
width: 80%
|
|
}
|
|
|
|
table th {
|
|
padding: 0.5em;
|
|
color: #fff;
|
|
background-color: #558621;
|
|
text-transform: uppercase;
|
|
text-align: left;
|
|
}
|
|
|
|
table td {
|
|
border: solid 1px #ccc;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.property-column {
|
|
width: 25%;
|
|
}
|
|
.property-column-body {
|
|
font-weight: bold;
|
|
}
|
|
.value-column-body {
|
|
font-style: italic;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<table id="info-table">
|
|
<thead>
|
|
<tr>
|
|
<th class="property-column">Property</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
//console.log(navigator);
|
|
|
|
var propertyList = [
|
|
{
|
|
name: "User Agent",
|
|
navigatorProperty: "userAgent",
|
|
},
|
|
{
|
|
name: "App Code Name",
|
|
navigatorProperty: "appCodeName",
|
|
},
|
|
{
|
|
name: "App Name",
|
|
navigatorProperty: "appName",
|
|
},
|
|
{
|
|
name: "App Version",
|
|
navigatorProperty: "appVersion",
|
|
},
|
|
{
|
|
name: "App Minor Version",
|
|
navigatorProperty: "appMinorVersion",
|
|
},
|
|
{
|
|
name: "Product",
|
|
navigatorProperty: "product",
|
|
},
|
|
{
|
|
name: "Product Version",
|
|
navigatorProperty: "productSub",
|
|
},
|
|
{
|
|
name: "Vendor",
|
|
navigatorProperty: "vendor",
|
|
},
|
|
{
|
|
name: "Vendor Version",
|
|
navigatorProperty: "vendorSub",
|
|
},
|
|
{
|
|
name: "Build ID",
|
|
navigatorProperty: "buildID",
|
|
},
|
|
|
|
{
|
|
name: "Language",
|
|
navigatorProperty: "language",
|
|
},
|
|
{
|
|
name: "User Language",
|
|
navigatorProperty: "userLanguage",
|
|
},
|
|
{
|
|
name: "Browser Language",
|
|
navigatorProperty: "browserLanguage",
|
|
},
|
|
{
|
|
name: "System Language",
|
|
navigatorProperty: "systemLanguage",
|
|
},
|
|
{
|
|
name: "Platform",
|
|
navigatorProperty: "platform",
|
|
},
|
|
{
|
|
name: "Operating System",
|
|
navigatorProperty: "oscpu",
|
|
},
|
|
{
|
|
name: "CPU Class",
|
|
navigatorProperty: "cpuClass",
|
|
},
|
|
|
|
{
|
|
name: "Cookies Enabled",
|
|
navigatorProperty: "cookieEnabled",
|
|
},
|
|
{
|
|
name: "On Line",
|
|
navigatorProperty: "onLine",
|
|
},
|
|
];
|
|
|
|
$.each(propertyList, function(i, property) {
|
|
$("#info-table tbody").append(
|
|
$("<tr>")
|
|
.append(
|
|
$("<td class='property-column-body'>").text(property.name)
|
|
)
|
|
.append(
|
|
$("<td class='value-column-body'>").text(navigator[property.navigatorProperty])
|
|
)
|
|
)
|
|
});
|
|
|
|
$("<tr>").append(
|
|
$("<td class='property-column-body'>").text("Document Mode")
|
|
)
|
|
.append(
|
|
$("<td class='value-column-body'>").text(document.documentMode)
|
|
)
|
|
.appendTo("#info-table tbody");
|
|
</script>
|
|
|
|
</body> |