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

View File

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

View File

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