summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/javascript.html
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/bootstrap/javascript.html')
-rwxr-xr-xbower_components/bootstrap/javascript.html130
1 files changed, 65 insertions, 65 deletions
diff --git a/bower_components/bootstrap/javascript.html b/bower_components/bootstrap/javascript.html
index d6da028c..62dbc07e 100755
--- a/bower_components/bootstrap/javascript.html
+++ b/bower_components/bootstrap/javascript.html
@@ -240,7 +240,7 @@ $('#myModal').on('show.bs.modal', function (e) {
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -280,7 +280,7 @@ $('#myModal').on('show.bs.modal', function (e) {
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
<h3>Methods</h3>
@@ -306,7 +306,7 @@ $('#myModal').modal({
<h3>Events</h3>
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -333,7 +333,7 @@ $('#myModal').modal({
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#myModal').on('hidden.bs.modal', function () {
// do something…
@@ -355,7 +355,7 @@ $('#myModal').on('hidden.bs.modal', function () {
<h3>Within a navbar</h3>
<div class="bs-example">
- <nav id="navbar-example" class="navbar navbar-static" role="navigation">
+ <nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
@@ -480,7 +480,7 @@ $('.dropdown-toggle').dropdown()
<p>Toggles the dropdown menu of a given navbar or tabbed navigation.</p>
<h3>Events</h3>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -507,7 +507,7 @@ $('.dropdown-toggle').dropdown()
</tr>
</tbody>
</table>
- </div><!-- ./bs-table-scrollable -->
+ </div><!-- ./bs-table-responsive -->
{% highlight js %}
$('#myDropdown').on('show.bs.dropdown', function () {
// do something…
@@ -526,7 +526,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
<h2 id="scrollspy-examples">Example in navbar</h2>
<p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>
<div class="bs-example">
- <nav id="navbar-example2" class="navbar navbar-static" role="navigation">
+ <nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-navbar-scrollspy">
<span class="sr-only">Toggle navigation</span>
@@ -541,12 +541,12 @@ $('#myDropdown').on('show.bs.dropdown', function () {
<li><a href="#fat">@fat</a></li>
<li><a href="#mdo">@mdo</a></li>
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#one">one</a></li>
- <li><a href="#two">two</a></li>
+ <a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1">
+ <li><a href="#one" tabindex="-1">one</a></li>
+ <li><a href="#two" tabindex="-1">two</a></li>
<li class="divider"></li>
- <li><a href="#three">three</a></li>
+ <li><a href="#three" tabindex="-1">three</a></li>
</ul>
</li>
</ul>
@@ -602,7 +602,7 @@ $('[data-spy="scroll"]').each(function () {
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -621,10 +621,10 @@ $('[data-spy="scroll"]').each(function () {
</tr>
</tbody>
</table>
- </div><!-- ./bs-table-scrollable -->
+ </div><!-- ./bs-table-responsive -->
<h3>Events</h3>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -639,7 +639,7 @@ $('[data-spy="scroll"]').each(function () {
</tr>
</tbody>
</table>
- </div><!-- ./bs-table-scrollable -->
+ </div><!-- ./bs-table-responsive -->
{% highlight js %}
$('#myScrollspy').on('activate.bs.scrollspy', function () {
// do something…
@@ -663,10 +663,10 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () {
<li class="active"><a href="#home" data-toggle="tab">Home</a></li>
<li><a href="#profile" data-toggle="tab">Profile</a></li>
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
- <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
+ <a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
+ <li><a href="#dropdown1" tabindex="-1" data-toggle="tab">@fat</a></li>
+ <li><a href="#dropdown2" tabindex="-1" data-toggle="tab">@mdo</a></li>
</ul>
</li>
</ul>
@@ -745,7 +745,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
{% endhighlight %}
<h3>Events</h3>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -764,7 +764,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
e.target // activated tab
@@ -814,7 +814,7 @@ $('#example').tooltip(options)
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -881,7 +881,7 @@ $('#example').tooltip(options)
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
<div class="bs-callout bs-callout-info">
<h4>Data attributes for individual tooltips</h4>
<p>Options for individual tooltips can alternatively be specified through the use of data attributes, as explained above.</p>
@@ -914,7 +914,7 @@ $('#example').tooltip(options)
{% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
<h3>Events</h3>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -941,7 +941,7 @@ $('#example').tooltip(options)
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#myTooltip').on('hidden.bs.tooltip', function () {
// do something…
@@ -1036,7 +1036,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1104,12 +1104,12 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<td>string | false</td>
<td>false</td>
<td>
- <p>Appends the popover to a specific element. Example: <code>container: 'body'</code></p>
+ <p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
</td>
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
<div class="bs-callout bs-callout-info">
<h4>Data attributes for individual popovers</h4>
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
@@ -1138,7 +1138,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<p>Hides and destroys an element's popover.</p>
{% highlight js %}$('#element').popover('destroy'){% endhighlight %}
<h3>Events</h3>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1165,7 +1165,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#myPopover').on('hidden.bs.popover', function () {
// do something…
@@ -1184,7 +1184,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h2 id="alerts-examples">Example alerts</h2>
<p>Add dismiss functionality to all alert messages with this plugin.</p>
<div class="bs-example">
- <div class="alert fade in">
+ <div class="alert alert-warning fade in">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
</div>
@@ -1222,7 +1222,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h3>Events</h3>
<p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1241,7 +1241,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#my-alert').bind('closed.bs.alert', function () {
// do something…
@@ -1413,13 +1413,13 @@ $('.nav-tabs').button()
<div class="bs-example">
<div class="panel-group" id="accordion">
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
Collapsible Group Item #1
</a>
- </h3>
+ </h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
@@ -1427,13 +1427,13 @@ $('.nav-tabs').button()
</div>
</div>
</div>
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
Collapsible Group Item #2
</a>
- </h3>
+ </h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="panel-body">
@@ -1441,13 +1441,13 @@ $('.nav-tabs').button()
</div>
</div>
</div>
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
Collapsible Group Item #3
</a>
- </h3>
+ </h4>
</div>
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body">
@@ -1459,13 +1459,13 @@ $('.nav-tabs').button()
</div><!-- /example -->
{% highlight html %}
<div class="panel-group" id="accordion">
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
Collapsible Group Item #1
</a>
- </h3>
+ </h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-body">
@@ -1473,13 +1473,13 @@ $('.nav-tabs').button()
</div>
</div>
</div>
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
Collapsible Group Item #2
</a>
- </h3>
+ </h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse">
<div class="panel-body">
@@ -1487,13 +1487,13 @@ $('.nav-tabs').button()
</div>
</div>
</div>
- <div class="panel">
+ <div class="panel panel-default">
<div class="panel-heading">
- <h3 class="panel-title">
+ <h4 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
Collapsible Group Item #3
</a>
- </h3>
+ </h4>
</div>
<div id="collapseThree" class="panel-collapse collapse">
<div class="panel-body">
@@ -1528,7 +1528,7 @@ $(".collapse").collapse()
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1553,7 +1553,7 @@ $(".collapse").collapse()
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
<h3>Methods</h3>
@@ -1576,7 +1576,7 @@ $('#myCollapsible').collapse({
<h3>Events</h3>
<p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1605,7 +1605,7 @@ $('#myCollapsible').collapse({
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#myCollapsible').on('hidden.bs.collapse', function () {
// do something…
@@ -1681,7 +1681,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
{% endhighlight %}
<div class="bs-callout bs-callout-info">
<h4>Glyphicon Alternative</h4>
- <p>With <a href="{{ site.glyphicons }}">Glyphicons</a> available, you may choose to style the left and right toggle buttons with <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code>.</p>
+ <p>With <a href="{{ page.base_url }}components/#glyphicons">Glyphicons</a> available, you may choose to style the left and right toggle buttons with <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code>.</p>
</div>
<h3>Optional captions</h3>
@@ -1752,7 +1752,7 @@ $('.carousel').carousel()
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1783,7 +1783,7 @@ $('.carousel').carousel()
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
<h3>Methods</h3>
@@ -1813,7 +1813,7 @@ $('.carousel').carousel({
<h3>Events</h3>
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1832,7 +1832,7 @@ $('.carousel').carousel({
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
{% highlight js %}
$('#myCarousel').on('slide.bs.carousel', function () {
// do something…
@@ -1888,7 +1888,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
- <div class="bs-table-scrollable">
+ <div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -1903,10 +1903,10 @@ $('#myCarousel').on('slide.bs.carousel', function () {
<td>offset</td>
<td>number | function | object</td>
<td>10</td>
- <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and left directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td>
+ <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and bottom directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td>
</tr>
</tbody>
</table>
- </div><!-- /.bs-table-scrollable -->
+ </div><!-- /.table-responsive -->
</div>