Team:BIT-China/js/empty.js

From 2013.igem.org

Revision as of 02:24, 26 September 2013 by Singlewindy (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

(function(){var $w=$(window);var $nav=$("#navigation");var $emp=$('#empty');var $sid=$('#sidebar');$w.scroll(function(){$nav[$w.scrollTop()>106?"addClass":"removeClass"]("fixed");$emp[$w.scrollTop()>106?"addClass":"removeClass"]("fixed");$sid[$w.scrollTop()>106?"addClass":"removeClass"]("fixed");});})();