h4ck5p4c3/js/mediumish.js

12 lines
322 B
JavaScript
Executable File

$(function(){
var topOfOthDiv = $(".hideshare").offset().top;
$(window).scroll(function() {
if($(window).scrollTop() > topOfOthDiv) { //scrolled past the other div?
$(".share").hide(); //reached the desired point -- show div
}
else{
$(".share").show();
}
});
});