This repository has been archived by the owner on May 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
default.html
89 lines (79 loc) · 2.41 KB
/
default.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ImprintJs</title>
<style type="text/css">
body { text-align: center; font-family: sans-serif; font-size: 14px; line-height: 20px; padding: 40px 0; color: #666; }
</style>
</head>
<body>
<a href="https://github.com/mattbrailsford/imprintjs"><img height="100" src="assets/logo2.png" alt="ImprintJS" style="margin-bottom: 20px;" /></a>
<p>Browser fingerprint<br /><strong id="browserFingerprint"></strong></p>
<p>Device fingerprint<br /><strong id="deviceFingerprint"></strong></p>
<!--
<style>
.s1 {font-family: Monotype Corsiva, monospace; font-size:72px;}
.s2 {font-family: Monotype Corsiva, sans-serif; font-size:72px;}
.s3 {font-family: Monotype Corsiva, serif; font-size:72px;}
</style>
<span class="s1">mmmmmmmmmmlli</span><br />
<span class="s2">mmmmmmmmmmlli</span><br />
<span class="s3">mmmmmmmmmmlli</span>
-->
<script type="text/javascript" src="dist/imprint.min.js"></script>
<script type="text/javascript">
var browserTests = [
"audio",
"availableScreenResolution",
"canvas",
"colorDepth",
"cookies",
"cpuClass",
"deviceDpi",
"doNotTrack",
"indexedDb",
"installedFonts",
//"installedLanguages",
"language",
"localIp",
"localStorage",
"pixelRatio",
"platform",
"plugins",
"processorCores",
"screenResolution",
"sessionStorage",
"timezoneOffset",
"touchSupport",
"userAgent",
"webGl"
];
console.time('getImprint 1');
imprint.test(browserTests).then(function(result){
console.timeEnd('getImprint 1');
document.getElementById("browserFingerprint").innerHTML = result;
});
var deviceTests = [
"audio",
"colorDepth",
"cpuClass",
"deviceDpi",
"localIp",
"platform",
"installedFonts",
"processorCores",
"publicIp",
"screenResolution",
"timezoneOffset"
];
console.time('getImprint 2');
imprint.test(deviceTests).then(function(result){
console.timeEnd('getImprint 2');
document.getElementById("deviceFingerprint").innerHTML = result;
});
</script>
</body>
</html>