mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
don't bite so hard
This commit is contained in:
parent
fa6a131eb6
commit
c10a357bb3
@ -6,17 +6,6 @@
|
|||||||
|
|
||||||
$(function(){
|
$(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
|
// Disable certain links in docs
|
||||||
$('section [href^=#]').click(function (e) {
|
$('section [href^=#]').click(function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user