]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
avoid using .bs-* in example, & improve style
authorChris Rebert <github@rebertia.com>
Wed, 12 Feb 2014 19:07:04 +0000 (11:07 -0800)
committerChris Rebert <github@rebertia.com>
Wed, 12 Feb 2014 19:07:04 +0000 (11:07 -0800)
docs/javascript.html

index 16cd66e65a757b414451a21a1ff6a998ec1254d9..ddb233fd5f3076e02b824d64a32a1860c5f7a6cd 100644 (file)
@@ -2073,11 +2073,11 @@ $('#myCarousel').on('slide.bs.carousel', function () {
   <h3>Via JavaScript</h3>
   <p>Call the affix plugin via JavaScript:</p>
 {% highlight js %}
-  $('#myAffix').affix({
+  $('#my-affix').affix({
     offset: {
       top: 100
     , bottom: function () {
-        return (this.bottom = $('.bs-footer').outerHeight(true))
+        return (this.bottom = $('.footer').outerHeight(true))
       }
     }
   })