Fixed IE detection
This commit is contained in:
parent
6cb2bc606e
commit
a4b9e96f7b
|
@ -2,21 +2,14 @@
|
|||
Engine
|
||||
){
|
||||
|
||||
// Quick and dirty IE detection
|
||||
var isIE = (function(){
|
||||
|
||||
var undef,
|
||||
v = 3,
|
||||
div = document.createElement('div'),
|
||||
all = div.getElementsByTagName('i');
|
||||
|
||||
while (
|
||||
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
|
||||
all[0]
|
||||
);
|
||||
|
||||
return v > 4 ? v : undef;
|
||||
|
||||
}());
|
||||
if (window.navigator.userAgent.match('Trident')) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
|
||||
// isIE = true;
|
||||
|
||||
|
|
|
@ -20,11 +20,13 @@
|
|||
&.static {
|
||||
background-image:url(../images/bg-galaxy.jpg);
|
||||
background-position:50% 50%;
|
||||
background-repeat:no-repeat;
|
||||
|
||||
.jumbotron-content {
|
||||
background-image:url(../images/bg-static.png);
|
||||
background-size:cover;
|
||||
background-position:50% 50%;
|
||||
background-repeat:no-repeat;
|
||||
}
|
||||
|
||||
.jumbotron-content:after {
|
||||
|
|
|
@ -601,11 +601,13 @@ body.page-home #footer {
|
|||
#jumbotron.static {
|
||||
background-image: url(../images/bg-galaxy.jpg);
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#jumbotron.static .jumbotron-content {
|
||||
background-image: url(../images/bg-static.png);
|
||||
background-size: cover;
|
||||
background-position: 50% 50%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#jumbotron.static .jumbotron-content:after {
|
||||
content: '';
|
||||
|
|
Loading…
Reference in New Issue