fixxed bug.... propably

This commit is contained in:
Timm Szigat 2015-01-26 11:56:51 +01:00
parent a219eab24f
commit dedc2a752f

View File

@ -1,17 +1,18 @@
(function() { (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)) { if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
var element = document.getElementById('demo-canvas'); var element = document.getElementById('demo-canvas');
element.style.backgroundImage="url('images/gekruessel.png')"; element.style.backgroundImage="url('images/gekruessel.png')";
element.style.backgroundPosition="center center"; element.style.backgroundPosition="center center";
element.style.height="300px"; element.style.height="300px";
} else { } else {
var width, height, largeHeader, canvas, ctx, points, target, animateHeader = true;
// Main // Main
initHeader(); initHeader();
initAnimation(); initAnimation();
addListeners(); addListeners();
}
function initHeader() { function initHeader() {
width = window.innerWidth; width = window.innerWidth;
@ -187,5 +188,4 @@
function getDistance(p1, p2) { function getDistance(p1, p2) {
return Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2); return Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2);
} }
}
})(); })();