-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdirtyFix.html
43 lines (38 loc) · 962 Bytes
/
dirtyFix.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
<form style="display:none"><input onclick="history.go(0)" type="button" value="Refresh" id="refresh"/></form>
<?php
preg_match('/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches);
if (count($matches)>1){
//Then we're using IE
$version = $matches[1];
switch(true){
case ($version<=8):
//IE 8 or under!?>
<script>
(function () {
console.log('why are you are using ie8!!!');
})();
</script>
<?php
//header( 'Location: INSERT URL HERE' ) ;
break;
case ($version==9):
//IE9!?>
<script>
$(document).ready(function(){
$('#cboxOverlay').click(function(){
$('#refresh').trigger('click',function(){
});
});
$('#cboxClose').click(function(){
$('#refresh').trigger('click',function(){
})
});
});
</script>
<?php
break;
default:
//You get the idea
}
}
?>