summaryrefslogtreecommitdiff
path: root/swatchmaker/test
diff options
context:
space:
mode:
Diffstat (limited to 'swatchmaker/test')
-rwxr-xr-xswatchmaker/test/application.js35
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