mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
avoid using .bs-* in example, & improve style
This commit is contained in:
parent
40142bdc51
commit
dff122f7f0
@ -2073,11 +2073,11 @@ $('#myCarousel').on('slide.bs.carousel', function () {
|
|||||||
<h3>Via JavaScript</h3>
|
<h3>Via JavaScript</h3>
|
||||||
<p>Call the affix plugin via JavaScript:</p>
|
<p>Call the affix plugin via JavaScript:</p>
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myAffix').affix({
|
$('#my-affix').affix({
|
||||||
offset: {
|
offset: {
|
||||||
top: 100
|
top: 100
|
||||||
, bottom: function () {
|
, bottom: function () {
|
||||||
return (this.bottom = $('.bs-footer').outerHeight(true))
|
return (this.bottom = $('.footer').outerHeight(true))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user