fixxed bug.... propably

This commit is contained in:
Timm Szigat 2015-01-26 11:56:51 +01:00
parent a219eab24f
commit dedc2a752f
1 changed files with 158 additions and 158 deletions

View File

@ -1,17 +1,18 @@
(function() {
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 {
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
// Main
initHeader();
initAnimation();
addListeners();
}
function initHeader() {
width = window.innerWidth;
@ -187,5 +188,4 @@
function getDistance(p1, p2) {
return Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2);
}
}
})();