Team:NCTU Formosa/source/head

From 2013.igem.org

(Difference between revisions)
(Undo revision 94369 by Calvinhue (talk))
Line 23: Line 23:
         adjustStyle($(this).width());
         adjustStyle($(this).width());
     });
     });
 +
$(window).scroll(function () {
 +
              var height = $('body').height();
 +
              var scrollTop = $('body').scrollTop();
 +
              var opacity = 1;
 +
 +
 +
              if(scrollTop > 100) {
 +
                  opacity = 0;
 +
              }
 +
              $('#top-section').css('opacity', opacity);
 +
        });
var lastId,
var lastId,
     topMenu = $("#toc"),
     topMenu = $("#toc"),

Revision as of 12:48, 30 August 2013