Difference between revisions of "Template:Freiburg/wiki content start"
Line 10: | Line 10: | ||
var $blob = $("#upwards_blob"), | var $blob = $("#upwards_blob"), | ||
$window = $(window), | $window = $(window), | ||
− | $pageheight = $(document).height()-$window.height(); | + | //$pageheight = $(document).height()-$window.height(); |
//console.log('pageheight:'+$pageheight); | //console.log('pageheight:'+$pageheight); | ||
Line 39: | Line 39: | ||
// for pages smaller than 1143 px the button disappears by media queries (found in Freiburg/CSS) | // for pages smaller than 1143 px the button disappears by media queries (found in Freiburg/CSS) | ||
if ($window.width() < 1320) { | if ($window.width() < 1320) { | ||
− | if (y > ($ | + | if (y > ($window.height() - 100)) { |
// blob stays 100px above bottom | // blob stays 100px above bottom | ||
//console.log("y 100 up"); | //console.log("y 100 up"); | ||
Line 47: | Line 47: | ||
} | } | ||
} else if ($window.width() > 1320) { | } else if ($window.width() > 1320) { | ||
− | if (y > ($ | + | if (y > ($window.height() - 500)) { |
//console.log("y 500 up"); | //console.log("y 500 up"); | ||
} else { | } else { |
Revision as of 07:44, 8 September 2015