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