-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (49 loc) · 1.71 KB
/
index.html
File metadata and controls
57 lines (49 loc) · 1.71 KB
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
<html><head><title>Userinformation</title>
<script type="text/javascript">
<!--
function pruefen()
{
var browser_name;
var browser_ver;
var browser_language;
var platform;
var java_enabled;
var cookie_enabled;
browser_name=navigator.appName;
browser_ver=navigator.appVersion;
browser_language=navigator.language;
platform=navigator.platform;
java_enabled=navigator.javaEnabled();
cookie_enabled=navigator.cookieEnabled;
document.write("Browsername: " + browser_name + "<br> <br>");
document.write("Browserversion: " + browser_ver + "<br> <br>");
document.write("Browsersprache: " + browser_language + "<br> <br>");
document.write("Platform: " + platform + "<br> <br>");
document.write("Cookies erlaubt: " + cookie_enabled + "<br> <br>");
document.write("JavaApplets erlaubt: " + java_enabled);
}
// please note,
// that IE11 now returns undefined again for window.chrome
// and new Opera 30 outputs true for window.chrome
// and new IE Edge outputs to true now for window.chrome
// and if not iOS Chrome check
// so use the below updated condition
var isChromium = window.chrome,
winNav = window.navigator,
vendorName = winNav.vendor,
isOpera = winNav.userAgent.indexOf("OPR") > -1,
isIEedge = winNav.userAgent.indexOf("Edge") > -1,
isIOSChrome = winNav.userAgent.match("CriOS");
if(isIOSChrome){
// is Google Chrome on IOS
} else if(isChromium !== null && isChromium !== undefined && vendorName === "Google Inc." && isOpera == false && isIEedge == false) {
// is Google Chrome
location.href="chatbotc.html"
} else {
// not Google Chrome
location.href="chatboto.html"
}
//-->
</script>
</head><body OnLoad="pruefen()">
</body></html>