Difference between revisions of "Template:Freiburg/wiki content start"
Line 15: | Line 15: | ||
console.log($(this).scrollTop()+' pageheight:'+$pageheight); | console.log($(this).scrollTop()+' pageheight:'+$pageheight); | ||
var y = $(this).scrollTop(), | var y = $(this).scrollTop(), | ||
− | top = $(this).scrollTop() + $window.height() -100 | + | top = $(this).scrollTop() + $window.height() -100; |
// button disappears on top of the page // | // button disappears on top of the page // | ||
Line 36: | Line 36: | ||
if (y > ($pageheight - $window.height() - 100)) { | if (y > ($pageheight - $window.height() - 100)) { | ||
console.log('greater small'); | console.log('greater small'); | ||
− | $blob.css({"top": top ); | + | $blob.css({"top": top }); |
} | } | ||
} | } |
Revision as of 07:03, 8 September 2015