Only registered users can edit. The registration requests please send to nablawiki@gm**l.com

Getbootstrap.com/javascript

Материал из Chameleon Test
Перейти к:навигация, поиск

Examples

Static example

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Static example/wiki ( editedit originalcompare )

Wiki markup ,   modified code
<div class="<!-- modal fade -->">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
<span type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></span>
        <p class="h4 modal-title">Modal title</p>
      </div>
      <div class="modal-body">
        <p>One fine body&hellip;</p>
      </div>
      <div class="modal-footer">
<span type="button" class="btn btn-default" data-dismiss="modal">Close</span>
<span type="button" class="btn btn-primary">Save changes</span>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Static example ( forkedit original )

Raw HTML ,   original code
<div class="<!-- modal fade -->">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <p class="h4 modal-title">Modal title</p>
      </div>
      <div class="modal-body">
        <p>One fine body&hellip;</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


Live demo

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Live demo/wiki ( editedit originalcompare )

Launch demo modal

Wiki markup ,   modified code
<!-- Button trigger modal -->
<span type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal-wiki">
Launch demo modal
</span>
 
<!-- Modal -->
<div class="modal fade" id="myModal-wiki" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-wiki">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
<span type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></span>
        <p class="h4 modal-title" id="myModalLabel-wiki">Modal title</p>
      </div>
      <div class="modal-body">
        <p class="h4">Text in a modal</p>
        <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
 
        <p class="h4">Popover in a modal</p>
        <p>This [[#|<span data-original-title="A Title" href="#" role="button" class="btn btn-default popover-test" title="" data-content="And here's some amazing content. It's very engaging. right?">button</span>]] should trigger a popover on click.</p>
 
        <p class="h4">Tooltips in a modal</p>
        <p>[[#|<span data-original-title="Tooltip" class="tooltip-test" title="">This link</span>]] and [[#|<span data-original-title="Tooltip" class="tooltip-test" title="">that link</span>]] should have tooltips on hover.</p>
 
        <hr>
 
        <p class="h4">Overflowing text to show scroll behavior</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. 
        Donec ullamcorper nulla non metus auctor fringilla.</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. 
        Donec ullamcorper nulla non metus auctor fringilla.</p>
      </div>
      <div class="modal-footer">
<span type="button" class="btn btn-default" data-dismiss="modal">Close</span>
<span type="button" class="btn btn-primary">Save changes</span>
      </div>
    </div>
  </div>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Live demo ( forkedit original )

Raw HTML ,   original code
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal-html">
  Launch demo modal
</button>
 
<!-- Modal -->
<div class="modal fade" id="myModal-html" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-html">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <p class="h4 modal-title" id="myModalLabel-html">Modal title</p>
      </div>
      <div class="modal-body">
        <p class="h4">Text in a modal</p>
        <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
 
        <p class="h4">Popover in a modal</p>
        <p>This <a data-original-title="A Title" href="#" role="button" class="btn btn-default popover-test" title="" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on click.</p>
 
        <p class="h4">Tooltips in a modal</p>
        <p><a data-original-title="Tooltip" href="#" class="tooltip-test" title="">This link</a> and <a data-original-title="Tooltip" href="#" class="tooltip-test" title="">that link</a> should have tooltips on hover.</p>
 
        <hr>
 
        <p class="h4">Overflowing text to show scroll behavior</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. 
        Donec ullamcorper nulla non metus auctor fringilla.</p>
        <p>Cras mattis consectetur purus sit amet fermentum. 
        Cras justo odio, dapibus ac facilisis in, egestas eget quam. 
        Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
        <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. 
        Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
        <p>Aenean lacinia bibendum nulla sed consectetur. 
        Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. 
        Donec ullamcorper nulla non metus auctor fringilla.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>


Optional sizes

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Optional sizes/wiki ( editedit originalcompare )

Large modal
Regular modal
Small modal
Wiki markup ,   modified code
<!-- Large modal -->
<div type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg-wiki">Large modal</div>
 
<div class="modal fade bs-example-modal-lg-wiki" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel-wiki">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
<span type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></span>
        <p class="h4 modal-title" id="myLargeModalLabel-wiki">Large modal</p>
      </div>
      <div class="modal-body">
...
      </div>
    </div>
  </div>
</div>
 
<!-- Regular modal -->
<div type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-reg-wiki">Regular modal</div>
 
<div class="modal fade bs-example-modal-reg-wiki" tabindex="-1" role="dialog" aria-labelledby="myRegularModalLabel-wiki">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
<span type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></span>
        <p class="h4 modal-title" id="myRegularModalLabel-wiki">Regular modal</p>
      </div>
      <div class="modal-body">
...
      </div>
    </div>
  </div>
</div>
 
<!-- Small modal -->
<div type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm-wiki">Small modal</div>
 
<div class="modal fade bs-example-modal-sm-wiki" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel-wiki">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
<span type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></span>
        <p class="h4 modal-title" id="mySmallModalLabel-wiki">Small modal</p>
      </div>
      <div class="modal-body">
...
      </div>
    </div>
  </div>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Optional sizes ( forkedit original )

Raw HTML ,   original code
<!-- Large modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg-html">Large modal</button>
 
<div class="modal fade bs-example-modal-lg-html" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel-html">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <p class="h4 modal-title" id="myLargeModalLabel-html">Large modal</p>
      </div>
      <div class="modal-body">
        ...
      </div>
    </div>
  </div>
</div>
 
<!-- Regular modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-reg-html">Regular modal</button>
 
<div class="modal fade bs-example-modal-reg-html" tabindex="-1" role="dialog" aria-labelledby="myRegularModalLabel-html">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <p class="h4 modal-title" id="myRegularModalLabel-html">Regular modal</p>
      </div>
      <div class="modal-body">
        ...
      </div>
    </div>
  </div>
</div>
 
<!-- Small modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm-html">Small modal</button>
 
<div class="modal fade bs-example-modal-sm-html" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel-html">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <p class="h4 modal-title" id="mySmallModalLabel-html">Small modal</p>
      </div>
      <div class="modal-body">
        ...
      </div>
    </div>
  </div>
</div>


Remove animation

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Remove animation/wiki ( editedit originalcompare )

Launch demo modal
Wiki markup ,   modified code
<!-- Button trigger modal -->
<div type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal-noAnimation-wiki">
Launch demo modal</div>
 
<!-- Modal -->
<div class="modal" id="myModal-noAnimation-wiki" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-noAnimation-wiki" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <div type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></div>
        <p class="h4 modal-title" id="myModalLabel-noAnimation-wiki">Modal title</p>
      </div>
      <div class="modal-body">
...
      </div>
      <div class="modal-footer">
        <div type="button" class="btn btn-default" data-dismiss="modal">Close</div>
        <div type="button" class="btn btn-primary">Save changes</div>
      </div>
    </div>
  </div>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Remove animation ( forkedit original )

Raw HTML ,   original code
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal-noAnimation-html">
  Launch demo modal
</button>
 
<!-- Modal -->
<div class="modal" id="myModal-noAnimation-html" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-noAnimation-html" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <p class="h4 modal-title" id="myModalLabel-noAnimation-html">Modal title</p>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>


Using the grid system

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Using the grid system/wiki ( editedit originalcompare )

Launch demo modal
Wiki markup ,   modified code
<div type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#gridSystemModal-wiki">
Launch demo modal</div>
 
  <div class="modal fade" id="gridSystemModal-wiki" role="dialog" aria-labelledby="gridSystemModalLabel-wiki" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content demo-grid">
        <div class="modal-header">
          <div type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></div>
          <h4 class="modal-title" id="gridSystemModalLabel-wiki">Modal title</h4>
        </div>
        <div class="modal-body">
          <div class="container-fluid">
            <div class="row">
              <div class="col-md-4">.col-md-4</div>
              <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
            </div>
            <div class="row">
              <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
              <div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
            </div>
            <div class="row">
              <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
            </div>
            <div class="row">
              <div class="col-sm-9">
Level 1: .col-sm-9
                <div class="row">
                  <div class="col-xs-8 col-sm-6">
Level 2: .col-xs-8 .col-sm-6
                  </div>
                  <div class="col-xs-4 col-sm-6">
Level 2: .col-xs-4 .col-sm-6
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <div type="button" class="btn btn-default" data-dismiss="modal">Close</div>
          <div type="button" class="btn btn-primary">Save changes</div>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->

ok HTML:Ex:Getbootstrap.com/javascript/Modals/Using the grid system ( forkedit original )

Raw HTML ,   original code
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#gridSystemModal-html">
  Launch demo modal
</button>
 
  <div class="modal fade" id="gridSystemModal-html" role="dialog" aria-labelledby="gridSystemModalLabel-html" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content demo-grid">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
          <h4 class="modal-title" id="gridSystemModalLabel-html">Modal title</h4>
        </div>
        <div class="modal-body">
          <div class="container-fluid">
            <div class="row">
              <div class="col-md-4">.col-md-4</div>
              <div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
            </div>
            <div class="row">
              <div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
              <div class="col-md-2 col-md-offset-4">.col-md-2 .col-md-offset-4</div>
            </div>
            <div class="row">
              <div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
            </div>
            <div class="row">
              <div class="col-sm-9">
                Level 1: .col-sm-9
                <div class="row">
                  <div class="col-xs-8 col-sm-6">
                    Level 2: .col-xs-8 .col-sm-6
                  </div>
                  <div class="col-xs-4 col-sm-6">
                    Level 2: .col-xs-4 .col-sm-6
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-primary">Save changes</button>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div><!-- /.modal -->


Varying modal content based on trigger button

no HTML:Ex:Getbootstrap.com/javascript/Modals/Varying modal content based on trigger button ( forkedit original )

...more buttons...
Raw HTML ,   original code
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo">Open modal for @mdo</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@fat">Open modal for @fat</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" data-whatever="@getbootstrap">Open modal for @getbootstrap</button>
...more buttons...
 
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="exampleModalLabel">New message</h4>
      </div>
      <div class="modal-body">
        <form>
          <div class="form-group">
            <label for="recipient-name" class="control-label">Recipient:</label>
            <input type="text" class="form-control" id="recipient-name">
          </div>
          <div class="form-group">
            <label for="message-text" class="control-label">Message:</label>
            <textarea class="form-control" id="message-text"></textarea>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Send message</button>
      </div>
    </div>
  </div>
</div>


Examples

Within a navbar

ul HTML:Ex:Getbootstrap.com/javascript/Dropdowns/Within a navbar/html ( editedit originalcompare )

+ common problem with navbar

Raw HTML ,   modified code
<nav id="navbar-example" class="navbar navbar-default navbar-static">
  <div class="container-fluid">
    <div class="navbar-header">
      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Project Name</a>
    </div>
    <div class="collapse navbar-collapse bs-example-js-navbar-collapse">
      <ul class="nav navbar-nav">
        <li class="dropdown">
          <a id="drop1-html" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            Dropdown
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu corr-plainlist" aria-labelledby="drop1-html">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a id="drop2-html" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            Dropdown
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu corr-plainlist" aria-labelledby="drop2-html">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li id="fat-menu" class="dropdown">
          <a id="drop3-html" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
            Dropdown
            <span class="caret"></span>
          </a>
          <ul class="dropdown-menu corr-plainlist" aria-labelledby="drop3-html">
            <li><a href="#">Action</a></li>
            <li><a href="#">Another action</a></li>
            <li><a href="#">Something else here</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="#">Separated link</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.nav-collapse -->
  </div><!-- /.container-fluid -->
</nav> <!-- /navbar-example -->


Within pills

ul HTML:Ex:Getbootstrap.com/javascript/Dropdowns/Within pills ( forkedit original )

Raw HTML ,   original code
<ul class="nav nav-pills corr-plainlist" role="tablist">
  <li role="presentation" class="active"><a href="#">Regular link</a></li>
  <li role="presentation" class="dropdown">
    <a id="drop4" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown
      <span class="caret"></span>
    </a>
    <ul id="menu1" class="dropdown-menu corr-plainlist" aria-labelledby="drop4">
      <li><a href="#">Action</a></li>
      <li><a href="#">Another action</a></li>
      <li><a href="#">Something else here</a></li>
      <li role="separator" class="divider"></li>
      <li><a href="#">Separated link</a></li>
    </ul>
  </li>
  <li role="presentation" class="dropdown">
    <a id="drop5" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown
      <span class="caret"></span>
    </a>
    <ul id="menu2" class="dropdown-menu corr-plainlist" aria-labelledby="drop5">
      <li><a href="#">Action</a></li>
      <li><a href="#">Another action</a></li>
      <li><a href="#">Something else here</a></li>
      <li role="separator" class="divider"></li>
      <li><a href="#">Separated link</a></li>
    </ul>
  </li>
  <li role="presentation" class="dropdown">
    <a id="drop6" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
      Dropdown
      <span class="caret"></span>
    </a>
    <ul id="menu3" class="dropdown-menu corr-plainlist" aria-labelledby="drop6">
      <li><a href="#">Action</a></li>
      <li><a href="#">Another action</a></li>
      <li><a href="#">Something else here</a></li>
      <li role="separator" class="divider"></li>
      <li><a href="#">Separated link</a></li>
    </ul>
  </li>
</ul> <!-- /pills -->


Не работает, не стал разбираться

no HTML:Ex:Getbootstrap.com/javascript/ScrollSpy/Example ( forkedit original )

@fat

Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

@mdo

Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.

one

Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.

two

In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.

three

Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.

Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.

Raw HTML ,   original code
    <nav id="navbar-example2" class="navbar navbar-default navbar-static">
      <div class="container-fluid">
        <div class="navbar-header">
          <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-scrollspy">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project Name</a>
        </div>
        <div class="collapse navbar-collapse bs-example-js-navbar-scrollspy">
          <ul class="nav navbar-nav">
            <li class=""><a href="#fat">@fat</a></li>
            <li class=""><a href="#mdo">@mdo</a></li>
            <li class="dropdown active">
              <a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu" aria-labelledby="navbarDrop1">
                <li class=""><a href="#one">one</a></li>
                <li class=""><a href="#two">two</a></li>
                <li role="separator" class="divider"></li>
                <li class="active"><a href="#three">three</a></li>
              </ul>
            </li>
          </ul>
        </div>
      </div>
    </nav>
    <div data-spy="scroll" data-target="#navbar-example2" data-offset="0" class="scrollspy-example" style="height:10em;overflow:auto">
      <h4 id="fat">@fat</h4>
      <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
      <h4 id="mdo">@mdo</h4>
      <p>Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.</p>
      <h4 id="one">one</h4>
      <p>Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.</p>
      <h4 id="two">two</h4>
      <p>In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.</p>
      <h4 id="three">three</h4>
      <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
      <p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.
      </p>
    </div>


Example tabs

no HTML:Ex:Getbootstrap.com/javascript/Togglable tabs/Example tabs ( forkedit original )

common problem with dropdown in nav

Wiki markup ,   original code

ul HTML:Ex:Getbootstrap.com/javascript/Togglable tabs/Example tabs/html ( editedit originalcompare )

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

Raw HTML ,   modified code
<ul id="myTab" class="nav nav-tabs corr-plainlist" role="tablist">
  <li role="presentation" class="active"><a href="#home-html" id="home-tab-html" role="tab" data-toggle="tab" aria-controls="home-html" aria-expanded="true">Home</a></li>
  <li role="presentation"><a href="#profile-html" role="tab" id="profile-tab-html" data-toggle="tab" aria-controls="profile-html">Profile</a></li>
  <li role="presentation" class="dropdown">
    <a href="#" id="myTabDrop1-html" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents-html">Dropdown <span class="caret"></span></a>
    <ul class="dropdown-menu corr-plainlist" role="menu" aria-labelledby="myTabDrop1-html" id="myTabDrop1-contents-html">
      <li><a href="#dropdown1-html" tabindex="-1" role="tab" id="dropdown1-tab-html" data-toggle="tab" aria-controls="dropdown1-html">@fat</a></li>
      <li><a href="#dropdown2-html" tabindex="-1" role="tab" id="dropdown2-tab-html" data-toggle="tab" aria-controls="dropdown2-html">@mdo</a></li>
    </ul>
  </li>
</ul>
<div id="myTabContent-html" class="tab-content">
  <div role="tabpanel" class="tab-pane fade in active" id="home-html" aria-labelledby="home-tab-html">
    <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
  </div>
  <div role="tabpanel" class="tab-pane fade" id="profile-html" aria-labelledby="profile-tab-html">
    <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
  </div>
  <div role="tabpanel" class="tab-pane fade" id="dropdown1-html" aria-labelledby="dropdown1-tab-html">
    <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
  </div>
  <div role="tabpanel" class="tab-pane fade" id="dropdown2-html" aria-labelledby="dropdown2-tab-html">
    <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
  </div>
</div>


Tooltips are not initialized!

Examples

ok HTML:Ex:Getbootstrap.com/javascript/Tooltips/Examples/wiki ( editedit originalcompare )

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.

Wiki markup ,   modified code
    <p>Tight pants next level keffiyeh [[#|<span data-original-title="Default tooltip" data-toggle="tooltip" title="">you probably</span>]] haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel [[#|<span data-original-title="Another tooltip" data-toggle="tooltip" title="">have a</span>]] terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan [[#|<span data-original-title="Another one here too" href="#" data-toggle="tooltip" title="">whatever keytar</span>]], scenester farm-to-table banksy Austin [[#|<span data-original-title="The last tip!" href="#" data-toggle="tooltip" title="">twitter handle</span>]] freegan cred raw denim single-origin coffee viral.</p>

ok HTML:Ex:Getbootstrap.com/javascript/Tooltips/Examples ( forkedit original )

Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.

Raw HTML ,   original code
    <p>Tight pants next level keffiyeh <a data-original-title="Default tooltip" href="#" data-toggle="tooltip" title="">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a data-original-title="Another tooltip" href="#" data-toggle="tooltip" title="">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a data-original-title="Another one here too" href="#" data-toggle="tooltip" title="">whatever keytar</a>, scenester farm-to-table banksy Austin <a data-original-title="The last tip!" href="#" data-toggle="tooltip" title="">twitter handle</a> freegan cred raw denim single-origin coffee viral.</p>


Four directions

ok HTML:Ex:Getbootstrap.com/javascript/Tooltips/Four directions/wiki ( editedit originalcompare )

Tooltip on left
Tooltip on top
Tooltip on bottom
Tooltip on right
Wiki markup ,   modified code
<div type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left.">Tooltip on left</div>
 
<div type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top.">Tooltip on top</div>
 
<div type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom.">Tooltip on bottom</div>
 
<div type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right.">Tooltip on right</div>

ok HTML:Ex:Getbootstrap.com/javascript/Tooltips/Four directions ( forkedit original )

Raw HTML ,   original code
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="left" title="Tooltip on left.">Tooltip on left</button>
 
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on top.">Tooltip on top</button>
 
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom.">Tooltip on bottom</button>
 
<button type="button" class="btn btn-default" data-toggle="tooltip" data-placement="right" title="Tooltip on right.">Tooltip on right</button>


Popovers are not initialized!

Live demo

ok HTML:Ex:Getbootstrap.com/javascript/Popovers/Live demo/wiki ( editedit originalcompare )

Click to toggle popover
Wiki markup ,   modified code
<div type="button" class="btn btn-lg btn-danger" data-toggle="popover" 
    title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">
Click to toggle popover</div>

ok HTML:Ex:Getbootstrap.com/javascript/Popovers/Live demo ( forkedit original )

Raw HTML ,   original code
<button type="button" class="btn btn-lg btn-danger" data-toggle="popover" 
    title="Popover title" data-content="And here's some amazing content. It's very engaging. Right?">
  Click to toggle popover
</button>


Four directions

ok HTML:Ex:Getbootstrap.com/javascript/Popovers/Four directions/wiki ( editedit originalcompare )

Popover on left
Popover on top
Popover on bottom
Popover on right
Wiki markup ,   modified code
<div type="button" class="btn btn-default" data-container="body" 
    data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on left</div>
 
<div type="button" class="btn btn-default" data-container="body" 
    data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on top</div>
 
<div type="button" class="btn btn-default" data-container="body" 
    data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on bottom</div>
 
<div type="button" class="btn btn-default" data-container="body"
    data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on right</div>

ok HTML:Ex:Getbootstrap.com/javascript/Popovers/Four directions ( forkedit original )

Raw HTML ,   original code
<button type="button" class="btn btn-default" data-container="body"
    data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  Popover on left
</button>
 
<button type="button" class="btn btn-default" data-container="body"
    data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  Popover on top
</button>
 
<button type="button" class="btn btn-default" data-container="body"
    data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  Popover on bottom
</button>
 
<button type="button" class="btn btn-default" data-container="body"
    data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
  Popover on right
</button>


Dismiss on next click

no HTML:Ex:Getbootstrap.com/javascript/Popovers/Dismiss on next click/wiki ( editedit originalcompare )

Dismissible popover
Wiki markup ,   modified code
<div tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus"
    title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">
Dismissible popover</div>

ok HTML:Ex:Getbootstrap.com/javascript/Popovers/Dismiss on next click ( forkedit original )

Raw HTML ,   original code
<a tabindex="0" class="btn btn-lg btn-danger" role="button" data-toggle="popover" data-trigger="focus"
    title="Dismissible popover" data-content="And here's some amazing content. It's very engaging. Right?">
  Dismissible popover
</a>


ok HTML:Ex:Getbootstrap.com/javascript/Alert messages/Example/wiki ( editedit originalcompare )

×

Holy guacamole! Best check yo self, you're not looking too good.

×

Oh snap! You got an error!

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.

Take this action Or do this

Wiki markup ,   modified code
<div class="alert alert-warning alert-dismissible fade in" role="alert">
  <div type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></div>
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
</div>
 
<div class="alert alert-danger alert-dismissible fade in" role="alert">
  <div type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></div>
  <p class="h4">Oh snap! You got an error!</p>
  <p>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>
  <p>
    <span type="button" class="btn btn-danger">Take this action</span>
    <span type="button" class="btn btn-default">Or do this</span>
  </p>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Alert messages/Example ( forkedit original )

Raw HTML ,   original code
<div class="alert alert-warning alert-dismissible fade in" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
  <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
</div>
 
<div class="alert alert-danger alert-dismissible fade in" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
  <p class="h4">Oh snap! You got an error!</p>
  <p>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>
  <p>
    <button type="button" class="btn btn-danger">Take this action</button>
    <button type="button" class="btn btn-default">Or do this</button>
  </p>
</div>


Stateful

This feature is deprecated since v3.3.5 and will be removed in v4.

Single toggle

ok HTML:Ex:Getbootstrap.com/javascript/Buttons/Single toggle/wiki ( editedit originalcompare )

Single toggle
Wiki markup ,   modified code
<div type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" <!-- autocomplete="off" -->>
Single toggle</div>

ok HTML:Ex:Getbootstrap.com/javascript/Buttons/Single toggle/html ( editedit originalcompare )

Raw HTML ,   modified code
<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" <!-- autocomplete="off"-->>
  Single toggle
</button>

original code
<button type="button" class="btn btn-primary" data-toggle="button" aria-pressed="false" autocomplete="off">
  Single toggle
</button>


Checkbox / Radio

ok HTML:Ex:Getbootstrap.com/javascript/Buttons/Checkbox / Radio (1)/html ( editedit originalcompare )

Raw HTML ,   modified code
<div class="btn-group" data-toggle="buttons">
  <label class="btn btn-primary active">
    <input type="checkbox" <!-- autocomplete="off" --> checked> Checkbox 1 (pre-checked)
  </label>
  <label class="btn btn-primary">
    <input type="checkbox" <!-- autocomplete="off" -->> Checkbox 2
  </label>
  <label class="btn btn-primary">
    <input type="checkbox" <!-- autocomplete="off" -->> Checkbox 3
  </label>
</div>

original code
<div class="btn-group" data-toggle="buttons">
  <label class="btn btn-primary active">
    <input type="checkbox" autocomplete="off" checked> Checkbox 1 (pre-checked)
  </label>
  <label class="btn btn-primary">
    <input type="checkbox" autocomplete="off"> Checkbox 2
  </label>
  <label class="btn btn-primary">
    <input type="checkbox" autocomplete="off"> Checkbox 3
  </label>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Buttons/Checkbox / Radio (2)/html ( editedit originalcompare )

Raw HTML ,   modified code
<div class="btn-group" data-toggle="buttons">
  <label class="btn btn-primary active">
    <input type="radio" name="options-html" id="option1-html" <!-- autocomplete="off" --> checked> Radio 1 (preselected)
  </label>
  <label class="btn btn-primary">
    <input type="radio" name="options-html" id="option2-html" <!-- autocomplete="off" -->> Radio 2
  </label>
  <label class="btn btn-primary">
    <input type="radio" name="options-html" id="option3-html" <!-- autocomplete="off" -->> Radio 3
  </label>
</div>

original code
<div class="btn-group" data-toggle="buttons">
  <label class="btn btn-primary active">
    <input type="radio" name="options-orig" id="option1-orig" autocomplete="off" checked> Radio 1 (preselected)
  </label>
  <label class="btn btn-primary">
    <input type="radio" name="options-orig" id="option2-orig" autocomplete="off"> Radio 2
  </label>
  <label class="btn btn-primary">
    <input type="radio" name="options-orig" id="option3-orig" autocomplete="off"> Radio 3
  </label>
</div>


Example

partial HTML:Ex:Getbootstrap.com/javascript/Collapse/Example/wiki ( editedit originalcompare )

It does not work the Link option

Link with href

Button with data-target

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.

Wiki markup ,   modified code
[[#collapseExample-wiki|<span class="btn btn-primary" role="button" data-toggle="collapse" href="" aria-expanded="false" aria-controls="collapseExample-wiki">Link with href</span>]]
<div class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample-wiki" aria-expanded="false" aria-controls="collapseExample-wiki">
Button with data-target</div>
<div class="collapse" id="collapseExample-wiki">
  <div class="well">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
  </div>
</div>

partial HTML:Ex:Getbootstrap.com/javascript/Collapse/Example ( forkedit original )

цвет ссылки на кнопке

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
Raw HTML ,   original code
<a class="btn btn-primary" role="button" data-toggle="collapse" href="#collapseExample-html" aria-expanded="false" aria-controls="collapseExample-html">
  Link with href
</a>
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample-html" aria-expanded="false" aria-controls="collapseExample-html">
  Button with data-target
</button>
<div class="collapse" id="collapseExample-html">
  <div class="well">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
  </div>
</div>


Accordion example

ok HTML:Ex:Getbootstrap.com/javascript/Collapse/Accordion example/wiki ( editedit originalcompare )

работает в варианте без линков (a на span, href на data-target)

Collapsible Group Item #1

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

Wiki markup ,   modified code
<div class="panel-group" id="accordion-wiki" role="tablist" aria-multiselectable="true">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingOne-wiki">
      <p class="h4 panel-title">
        <span role="button" data-toggle="collapse" data-parent="#accordion-wiki"
            data-target="#collapseOne-wiki" aria-expanded="true" aria-controls="collapseOne-wiki">
Collapsible Group Item #1
        </span>
      </p>
    </div>
    <div id="collapseOne-wiki" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne-wiki">
      <div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 
3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingTwo-wiki">
      <p class="h4 panel-title">
        <span class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion-wiki" 
            data-target="#collapseTwo-wiki" aria-expanded="false" aria-controls="collapseTwo-wiki">
Collapsible Group Item #2
        </span>
      </p>
    </div>
    <div id="collapseTwo-wiki" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo-wiki">
      <div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.  
3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingThree-wiki">
      <p class="h4 panel-title">
        <span class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion-wiki"
            data-target="#collapseThree-wiki" aria-expanded="false" aria-controls="collapseThree-wiki">
Collapsible Group Item #3
        </span>
      </p>
    </div>
    <div id="collapseThree-wiki" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree-wiki">
      <div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 
3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
</div>

ok HTML:Ex:Getbootstrap.com/javascript/Collapse/Accordion example ( forkedit original )

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
Raw HTML ,   original code
<div class="panel-group" id="accordion-html" role="tablist" aria-multiselectable="true">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingOne-html">
      <p class="h4 panel-title">
        <a role="button" data-toggle="collapse" data-parent="#accordion-html"
            href="#collapseOne-html" aria-expanded="true" aria-controls="collapseOne-html">
          Collapsible Group Item #1
        </a>
      </p>
    </div>
    <div id="collapseOne-html" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne-html">
      <div class="panel-body">
        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 
        3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
        Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
        Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
        Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
        raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingTwo-html">
      <p class="h4 panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion-html" 
            href="#collapseTwo-html" aria-expanded="false" aria-controls="collapseTwo-html">
          Collapsible Group Item #2
        </a>
      </p>
    </div>
    <div id="collapseTwo-html" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo-html">
      <div class="panel-body">
        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.  
        3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
        Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
        Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
        Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
        raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="headingThree-html">
      <p class="h4 panel-title">
        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion-html"
            href="#collapseThree-html" aria-expanded="false" aria-controls="collapseThree-html">
          Collapsible Group Item #3
        </a>
      </p>
    </div>
    <div id="collapseThree-html" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree-html">
      <div class="panel-body">
        Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 
        3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. 
        Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. 
        Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. 
        Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, 
        raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
      </div>
    </div>
  </div>
</div>


List group

ul HTML:Ex:Getbootstrap.com/javascript/Collapse/List group/wiki ( editedit originalcompare )

a на span, href на data-target

Collapsible list group

  • Bootply
  • One itmus ac facilin
  • Second eros
Wiki markup ,   modified code
<div class="panel-group" role="tablist">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="collapseListGroupHeading1-wiki">
      <p class="h4 panel-title">
        <span role="button" data-toggle="collapse" data-target="#collapseListGroup1-wiki" aria-expanded="true" aria-controls="collapseListGroup1-wiki">
Collapsible list group
        </span>
      </p>
    </div>
    <div aria-expanded="true" id="collapseListGroup1-wiki" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading1-wiki">
      <ul class="list-group corr-plainlist">
        <li class="list-group-item">Bootply</li>
        <li class="list-group-item">One itmus ac facilin</li>
        <li class="list-group-item">Second eros</li>
      </ul>
      <div class="panel-footer">Footer</div>
    </div>
  </div>
</div>

ul HTML:Ex:Getbootstrap.com/javascript/Collapse/List group/html ( editedit originalcompare )

  • Bootply
  • One itmus ac facilin
  • Second eros
Raw HTML ,   modified code
<div class="panel-group" role="tablist">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="collapseListGroupHeading1-html">
      <p class="h4 panel-title">
        <a role="button" data-toggle="collapse" href="#collapseListGroup1-html" aria-expanded="true" aria-controls="collapseListGroup1-html">
          Collapsible list group
        </a>
      </p>
    </div>
    <div aria-expanded="true" id="collapseListGroup1-html" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading1-html">
      <ul class="list-group corr-plainlist">
        <li class="list-group-item">Bootply</li>
        <li class="list-group-item">One itmus ac facilin</li>
        <li class="list-group-item">Second eros</li>
      </ul>
      <div class="panel-footer">Footer</div>
    </div>
  </div>
</div>

original code
<div class="panel-group" role="tablist">
  <div class="panel panel-default">
    <div class="panel-heading" role="tab" id="collapseListGroupHeading1-orig">
      <p class="h4 panel-title">
        <a role="button" data-toggle="collapse" href="#collapseListGroup1-orig" aria-expanded="true" aria-controls="collapseListGroup1-orig">
          Collapsible list group
        </a>
      </p>
    </div>
    <div aria-expanded="true" id="collapseListGroup1-orig" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading1-orig">
      <ul class="list-group">
        <li class="list-group-item">Bootply</li>
        <li class="list-group-item">One itmus ac facilin</li>
        <li class="list-group-item">Second eros</li>
      </ul>
      <div class="panel-footer">Footer</div>
    </div>
  </div>
</div>


Example

Почему-то переключатель не по центру, как в оригинале

partial HTML:Ex:Getbootstrap.com/javascript/Carousel/Example/wiki ( editedit originalcompare )

не работают боковые стрелки

ok HTML:Ex:Getbootstrap.com/javascript/Carousel/Example ( forkedit original )

нехорош цвет боковых стрелок


Example file HTML:Ex:Getbootstrap.com/javascript/Affix/Example not exists!