Difference between revisions of "Template:Freiburg/wiki content start"
Line 16: | Line 16: | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
− | |||
// y is scroll progress (distance from top) | // y is scroll progress (distance from top) | ||
Line 22: | Line 21: | ||
var y = $(this).scrollTop(), | var y = $(this).scrollTop(), | ||
top = $(this).scrollTop() + $window.height() -100; | top = $(this).scrollTop() + $window.height() -100; | ||
+ | console.log($(this).scrollTop()+' doc_heighttop:'+$doc_heighttop+' top:'+top); | ||
// use CSS transform to move button into view when user scrolls down | // use CSS transform to move button into view when user scrolls down |
Revision as of 08:04, 8 September 2015