look mom, i'm breaking the page!

This commit is contained in:
Timm 2015-04-18 19:32:29 +02:00
parent 5b5cc046ad
commit a62dc027ec
2 changed files with 17 additions and 11 deletions

View File

@ -132,6 +132,14 @@ ul.nav>li>a {
display: none;
}
.navbar-header {
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
}
#posts {
margin-top:50px;
}
.navbar-collapse .nav > .divider-vertical {
display: none;
}

View File

@ -2,17 +2,10 @@
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
var element = document.getElementById('demo-canvas');
element.style.backgroundImage="url('images/gekruessel.png')";
element.style.backgroundPosition="center center";
element.style.height="300px";
} else {
// Main
initHeader();
initAnimation();
addListeners();
}
function initHeader() {
width = window.innerWidth;
@ -104,6 +97,11 @@
}
function resize() {
var element = document.getElementById('demo-canvas');
if(element.style.display != 'none') {
animateHeader = false;
}
width = window.innerWidth;
height = 300;
largeHeader.style.height = height+'px';