diff options
author | Thomas Park <thomas@thomaspark.me> | 2013-03-01 21:35:21 -0500 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2013-03-01 21:35:21 -0500 |
commit | 2ec4bd6a98cc9e4fcf22d3d8da57c14e4af1db58 (patch) | |
tree | 2b7c01e4ddb72eb36870f8b99d03c4b7e6d1bf7b /swatchmaker/test/application.js | |
parent | 51ac603d6afc6d72d5095af2c6d2e70112e6a777 (diff) |
remove old unused files from swatchmaker
Diffstat (limited to 'swatchmaker/test/application.js')
-rwxr-xr-x | swatchmaker/test/application.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/swatchmaker/test/application.js b/swatchmaker/test/application.js deleted file mode 100755 index 8daeebf6..00000000 --- a/swatchmaker/test/application.js +++ /dev/null @@ -1,35 +0,0 @@ -(function ($) { - - $(function(){ - - // fix sub nav on scroll - var $win = $(window), - $body = $('body'), - $nav = $('.subnav'), - navHeight = $('.navbar').first().height(), - subnavHeight = $('.subnav').first().height(), - subnavTop = $('.subnav').length && $('.subnav').offset().top - navHeight, - marginTop = parseInt($body.css('margin-top'), 10); - isFixed = 0; - - processScroll(); - - $win.on('scroll', processScroll); - - function processScroll() { - var i, scrollTop = $win.scrollTop(); - - if (scrollTop >= subnavTop && !isFixed) { - isFixed = 1; - $nav.addClass('subnav-fixed'); - $body.css('margin-top', marginTop + subnavHeight + 'px'); - } else if (scrollTop <= subnavTop && isFixed) { - isFixed = 0; - $nav.removeClass('subnav-fixed'); - $body.css('margin-top', marginTop + 'px'); - } - } - - }); - -})(window.jQuery);
\ No newline at end of file |