webhadash

[DORMANT] hebrew website design
git clone git://git.figbert.com/webhadash.git
Log | Files | Refs

navbar.js (270B)


      1 $(window).scroll(
      2     {
      3         previousTop: 0
      4     }, 
      5     function () {
      6     var currentTop = $(window).scrollTop();
      7     if (currentTop < this.previousTop) {
      8         $("nav").fadeIn();
      9     } else {
     10         $("nav").fadeOut();
     11     }
     12     this.previousTop = currentTop;
     13 });