Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
masonstrap
Commits
2ec4bd6a
Commit
2ec4bd6a
authored
Mar 01, 2013
by
Thomas Park
Browse files
remove old unused files from swatchmaker
parent
51ac603d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
swatchmaker/swatch/bootstrap.css
deleted
100644 → 0
View file @
51ac603d
This diff is collapsed.
Click to expand it.
swatchmaker/swatch/bootstrap.min.css
deleted
100644 → 0
View file @
51ac603d
This diff is collapsed.
Click to expand it.
swatchmaker/test/application.js
deleted
100755 → 0
View file @
51ac603d
(
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment