When user scrolls to the bottom of the page I want to show some div, with jQuery of course. And if user scrolls back to he top, div fade out. So how to calculate viewport (o
This must get you started:
SO question 2768264 ppppppppppppppppp ppppppppppppppppp ppppppppppppppppp ppppppppppppppppp
p
This assumes that body has a margin of 0. Else you'll need to add the top and bottom margin to the $('body').height().
body
margin
0
$('body').height()