12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
|
$(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();
|
||
|
}
|
||
|
});
|
||
|
});
|