diff options
| author | Jacob Thornton <[email protected]> | 2011-09-15 21:19:39 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-15 21:19:39 -0700 |
| commit | 8896497ea88037fe3e082eb7d7d9c3c3051b9b6b (patch) | |
| tree | f40f80eb503b18c758af95fbacc6f3e4bc8ec0a1 /docs/javascript.html | |
| parent | 32a690af985661f7d106984dc5ee1c211d0da2ed (diff) | |
| download | bootstrap-8896497ea88037fe3e082eb7d7d9c3c3051b9b6b.tar.xz bootstrap-8896497ea88037fe3e082eb7d7d9c3c3051b9b6b.zip | |
update attributes for js and make tooltips reposition on resize
Diffstat (limited to 'docs/javascript.html')
| -rw-r--r-- | docs/javascript.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/javascript.html b/docs/javascript.html index 77cb2229f..e1c4e83dc 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -39,7 +39,7 @@ <!-- Topbar ================================================== --> - <div class="topbar" data-scrollspy="x" > + <div class="topbar" data-scrollspy="scrollspy" > <div class="fill"> <div class="container"> <h3><a href="#">Bootstrap JS</a></h3> @@ -221,7 +221,7 @@ $('#my-modal').bind('hidden', function () { <pre class="prettyprint linenums"> <ul class="tabs"> <li class="active"><a href="#">Home</a></li> - <li class="dropdown" data-dropdown="x" > + <li class="dropdown" data-dropdown="dropdown" > <a href="#" class="dropdown-toggle">Dropdown</a> <ul class="dropdown-menu"> <li><a href="#">Secondary link</a></li> @@ -239,7 +239,7 @@ $('#my-modal').bind('hidden', function () { </p> <h3>Demo</h3> <div class="topbar-wrapper"> - <div id="topbar-example" class="topbar" data-dropdown="x"> + <div id="topbar-example" class="topbar" data-dropdown="dropdown"> <div class="topbar-inner"> <div class="container"> <h3><a href="#">Project Name</a></h3> @@ -295,7 +295,7 @@ $('#my-modal').bind('hidden', function () { <pre class="prettyprint linenums">$('#topbar').dropdown()</pre> <h3>Markup</h3> <p>To easily add scrollspy behavior to your nav, just add the <code>data-scrollspy</code> attribute to the <code>.topbar</code>. - <pre class="prettyprint linenums"><div class="topbar" data-scrollspy="x" >...</div></pre> + <pre class="prettyprint linenums"><div class="topbar" data-scrollspy="scrollspy" >...</div></pre> <h3>Methods</h3> <h4>$().scrollspy()</h4> <p> @@ -330,7 +330,7 @@ $('#my-modal').bind('hidden', function () { <pre class="prettyprint linenums">$('.tabs').tabs()</pre> <h3>Markup</h3> <p>You can activate a tab or pill navigation without writing any javascript by simply giving them a <code>data-tabs</code> or <code>data-pills</code> attribute.</p> - <pre class="prettyprint linenums"> <ul class="tabs" data-tabs="x" >...</ul></pre> + <pre class="prettyprint linenums"> <ul class="tabs" data-tabs="tabs" >...</ul></pre> <h3>Methods</h3> <h4>$().tabs or $().pills</h4> <p> @@ -358,7 +358,7 @@ $('#my-modal').bind('hidden', function () { </script></pre> </p> <h3>Demo</h3> - <ul class="tabs" data-tabs="x" > + <ul class="tabs" data-tabs="tabs" > <li class="active"><a href="#home">Home</a></li> <li><a href="#profile">Profile</a></li> <li><a href="#messages">Messages</a></li> @@ -644,11 +644,11 @@ $('#my-modal').bind('hidden', function () { <p>Closes an alert.</p> <pre class="prettyprint linenums">$(".alert-message").alert('close')</pre> <h3>Demo</h3> - <div class="alert-message warning fade in" data-alert="x" > + <div class="alert-message warning fade in" data-alert="alert" > <a class="close" href="#">×</a> <p><strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.</p> </div> - <div class="alert-message block-message error fade in" data-alert="x" > + <div class="alert-message block-message error fade in" data-alert="alert" > <a class="close" href="#">×</a> <p><strong>Oh snap! You got an error!</strong> Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p> <div class="alert-actions"> |
