forked from Chaospott/site
fixxed bug.... propably
This commit is contained in:
parent
a219eab24f
commit
dedc2a752f
@ -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);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user