Difference between revisions of "Template:Freiburg/wiki content start"
Line 12: | Line 12: | ||
$doc_heighttop = $(document).height() - $window.height(); | $doc_heighttop = $(document).height() - $window.height(); | ||
− | console.log('windowwidth:'+$window.width()); | + | //console.log('windowwidth:'+$window.width()); |
− | console.log('windowheight:'+$window.height()); | + | //console.log('windowheight:'+$window.height()); |
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
Line 21: | 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); | + | //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:07, 8 September 2015