-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
64 lines (55 loc) · 1.89 KB
/
index.html
File metadata and controls
64 lines (55 loc) · 1.89 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
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Ext.ux.BrowserCheck & Ext.ux.BrowserDetect </title>
<link rel="stylesheet" type="text/css" href="extjs-4.1.0/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="BrowserCheck.css">
<script type="text/javascript" src="extjs-4.1.0/bootstrap.js"></script>
<script type="text/javascript" src="BrowserDetect.js"></script>
<script type="text/javascript" src="BrowserCheck.js"></script>
<script>
Ext.onReady(function() {
var check = new Ext.ux.BrowserCheck({
redirectUrl : 'http://www.google.com',
browsers : [{
type : 'IE',
allowed : false
}, {
type : 'FF',
allowed: false
}, {
type : 'Safari', // safari is allowed except 5.1
versions : [{
'5.1' : {
allowed : false
}
}]
}],
alternatives : [{
iconUrl : 'images/browsers/IE.png',
name : 'Internet Explorer',
url : 'http://windows.microsoft.com/en-US/internet-explorer/products/ie/home'
}, {
iconUrl : 'images/browsers/Chrome.png',
name : 'Google Chrome',
url : 'https://www.google.com/chrome'
}, {
iconUrl : 'images/browsers/Firefox.png',
name : 'Mozilla Firefox',
url : 'https://www.getfirefox.com'
}, {
iconUrl : 'images/browsers/Opera.png',
name : 'Opera',
url : 'https://www.opera.com'
}, {
iconUrl : 'images/browsers/Safari.png',
name : 'Safari',
url : 'http://www.apple.com/uk/safari/'
}],
}).check();
});
</script>
</head>
<body></body>
</html>