Fixed IE detection

This commit is contained in:
Amadeus Demarzi 2014-07-27 18:01:48 -07:00
parent 6cb2bc606e
commit a4b9e96f7b
3 changed files with 11 additions and 14 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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: '';