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;
|
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 {
|
.navbar-collapse .nav > .divider-vertical {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -2,17 +2,10 @@
|
|||||||
|
|
||||||
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
|
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
|
||||||
|
|
||||||
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
// Main
|
||||||
var element = document.getElementById('demo-canvas');
|
initHeader();
|
||||||
element.style.backgroundImage="url('images/gekruessel.png')";
|
initAnimation();
|
||||||
element.style.backgroundPosition="center center";
|
addListeners();
|
||||||
element.style.height="300px";
|
|
||||||
} else {
|
|
||||||
// Main
|
|
||||||
initHeader();
|
|
||||||
initAnimation();
|
|
||||||
addListeners();
|
|
||||||
}
|
|
||||||
|
|
||||||
function initHeader() {
|
function initHeader() {
|
||||||
width = window.innerWidth;
|
width = window.innerWidth;
|
||||||
@ -104,6 +97,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resize() {
|
function resize() {
|
||||||
|
var element = document.getElementById('demo-canvas');
|
||||||
|
if(element.style.display != 'none') {
|
||||||
|
animateHeader = false;
|
||||||
|
}
|
||||||
|
|
||||||
width = window.innerWidth;
|
width = window.innerWidth;
|
||||||
height = 300;
|
height = 300;
|
||||||
largeHeader.style.height = height+'px';
|
largeHeader.style.height = height+'px';
|
||||||
|
Loading…
Reference in New Issue
Block a user