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