look mom, i'm breaking the page!
This commit is contained in:
parent
5b5cc046ad
commit
a62dc027ec
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
// 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';
|
||||
|
Loading…
Reference in New Issue
Block a user