Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
c98b75c9
Commit
c98b75c9
authored
12 years ago
by
Jacob Thornton
Browse files
Options
Download
Email Patches
Plain Diff
added fade out on scroll - we can pull this if you prefer it
parent
e38fa4b1
6 merge requests
!4427
Use variable for desktop media query
,
!4258
Aria
,
!4248
Amended mentions of 'javascript' to the correct 'JavaScript'
,
!4235
Patch 1
,
!4232
Fixing the modal z-index issue + make modal stacking possible
,
!4213
2.1.0 wip
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/assets/js/application.js
+11
-0
docs/assets/js/application.js
with
11 additions
and
0 deletions
+11
-0
docs/assets/js/application.js
+
11
-
0
View file @
c98b75c9
...
...
@@ -6,6 +6,17 @@
$
(
function
(){
// fancy fade jumbotron
var
$jumbotron
=
$
(
'
.jumbotron
'
)
,
$jcontainer
=
$
(
'
.jumbotron .container
'
)
,
opacRatio
=
(
$jumbotron
.
height
()
/
200
)
*
2
$
(
window
).
on
(
'
scroll
'
,
function
()
{
var
diff
=
100
-
(
$
(
window
).
scrollTop
()
/
opacRatio
)
$jcontainer
.
css
({
opacity
:
(
diff
>
0
?
Math
.
min
(
diff
,
100
)
:
0
)
/
100
})
})
// Disable certain links in docs
$
(
'
section [href^=#]
'
).
click
(
function
(
e
)
{
e
.
preventDefault
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets