Difference between revisions of "Template:Freiburg/wiki content start"
Line 41: | Line 41: | ||
if (y < 0.05*$pageheight) { | if (y < 0.05*$pageheight) { | ||
console.log('lower'); | console.log('lower'); | ||
− | $blob.css({"top": y + $pageheight | + | $blob.css({"top": y + $pageheight +30, "right": 30}); // = 30 px under bottom |
} | } | ||
− | + | ||
// button appears in the middle // | // button appears in the middle // | ||
if ($window.scrollTop() > 0.05*$pageheight) { | if ($window.scrollTop() > 0.05*$pageheight) { | ||
if ($window.scrollTop() <($pageheight-100)) { | if ($window.scrollTop() <($pageheight-100)) { | ||
console.log('middle'); | console.log('middle'); | ||
− | $blob.css({" | + | $blob.css({"top": y + $pageheight - 30, "right": 30}); // = 30 px from bottom |
} | } | ||
} | } | ||
− | + | /* | |
// if there is no lower background image, the button just moves upwards so it doesnt touch the footer // | // if there is no lower background image, the button just moves upwards so it doesnt touch the footer // | ||
if ($window.width() < 1320) { | if ($window.width() < 1320) { |
Revision as of 05:39, 8 September 2015