diff options
author | hardythe1 | 2015-06-20 16:51:39 +0530 |
---|---|---|
committer | hardythe1 | 2015-06-20 16:51:39 +0530 |
commit | d16eb88862fba2c3602bb816b4cdb1bb3a43d4d0 (patch) | |
tree | 32960245eb3ddc461b0f96bcb5e9827f4b690ebe /website/static/js/cbpAnimatedHeader.js | |
parent | 857bfb4df9cfb56775839def68f05488fdcdd5e1 (diff) | |
download | SciPy2015-d16eb88862fba2c3602bb816b4cdb1bb3a43d4d0.tar.gz SciPy2015-d16eb88862fba2c3602bb816b4cdb1bb3a43d4d0.tar.bz2 SciPy2015-d16eb88862fba2c3602bb816b4cdb1bb3a43d4d0.zip |
redisgn
Diffstat (limited to 'website/static/js/cbpAnimatedHeader.js')
-rw-r--r-- | website/static/js/cbpAnimatedHeader.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/website/static/js/cbpAnimatedHeader.js b/website/static/js/cbpAnimatedHeader.js deleted file mode 100644 index 7c3bbc1..0000000 --- a/website/static/js/cbpAnimatedHeader.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * cbpAnimatedHeader.js v1.0.0 - * http://www.codrops.com - * - * Licensed under the MIT license. - * http://www.opensource.org/licenses/mit-license.php - * - * Copyright 2013, Codrops - * http://www.codrops.com - */ -var cbpAnimatedHeader = (function() { - - var docElem = document.documentElement, - header = document.querySelector( '.navbar-fixed-top' ), - didScroll = false, - changeHeaderOn = 300; - - function init() { - window.addEventListener( 'scroll', function( event ) { - if( !didScroll ) { - didScroll = true; - setTimeout( scrollPage, 250 ); - } - }, false ); - } - - function scrollPage() { - var sy = scrollY(); - if ( sy >= changeHeaderOn ) { - classie.add( header, 'navbar-shrink' ); - } - else { - classie.remove( header, 'navbar-shrink' ); - } - didScroll = false; - } - - function scrollY() { - return window.pageYOffset || docElem.scrollTop; - } - - init(); - -})();
\ No newline at end of file |