* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Sat Aug 27 13:05:58 PDT 2011
* Date: Sat Aug 27 16:19:56 PDT 2011
*/
*/
/* Reset.less
/* Reset.less
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
<h1>Using Javascript with Less<small>A love story.</small></h1>
<h1>Using Javascript with Bootstrap<small>A love story.</small></h1>
</div>
</div>
<divclass="row">
<divclass="row">
<divclass="span4 columns">
<divclass="span4 columns">
<p>This page illustrates how to integrate javascript with the Bootstrap library. Below we go over the basics and provide you with some awesome plugins to get you started!</p>
<p>This page illustrates how to integrate javascript with the Bootstrap library. Below we go over the basics and provide you with some awesome plugins to get you started!</p>
</div>
</div>
<divclass="span12 columns">
<divclass="span12 columns">
<h2>What is all this?</h2>
<h2>What is this all about?</h2>
<p>With this example page, we've set out to make your interactive work with Bootstrap even more simple, offering several lightweight plugins for things like modals, tooltips, and other dynamic components. These plugins have been coded up to work with <ahref="http://jquery.com/"target="_blank">jQuery</a> and <ahref="http://ender.no.de"target="_blank">Ender</a>, but we encourage you to extend and modify them to fit your development needs!</p>
<p>With this example page, we've set out to make your interactive work with Bootstrap even more simple, offering several lightweight plugins for things like modals, tooltips, and other dynamic components. These plugins have been coded up to work with <ahref="http://jquery.com/"target="_blank">jQuery</a> and <ahref="http://ender.no.de"target="_blank">Ender</a>, but we encourage you to extend and modify them to fit your development needs!</p>
<h2>Do I need these?</h2>
<h2>Do I need these?</h2>
<p>The short answer is <strong>NO!</strong> These plugins were provided to help you understand how to integrate bootstrap with javascript and to give you a quick lightweight option for dropping something in and getting the basic functionality.
<p>The short answer is <strong>NO!</strong> These plugins were provided to help you understand how to integrate bootstrap with javascript and to give you a quick lightweight option for dropping something in and getting the basic functionality.
...
@@ -214,8 +216,10 @@ $('#modal-content').modal({
...
@@ -214,8 +216,10 @@ $('#modal-content').modal({
<h4>$().twipsy</h4>
<h4>$().twipsy</h4>
<p>Attaches a twipsy handler to an element collection.</p>
<p>Attaches a twipsy handler to an element collection.</p>
<h3>Demo</h3>
<h3>Demo</h3>
<p>Mustache next level keffiyeh you <ahref="#"rel='twipsy'title='Some title text'>probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown you probably haven't heard of them before they sold out. Farm-to-table <ahref="#"rel='twipsy'title='i <3 cardigans'>cardigans</a> seitan tofu, mcsweeney's fixie sustainable quinoa 8-bit american apparel terry richardson vinyl chambray. Fap beard stumptown, <ahref="#"rel='twipsy'title='Another twipsy'>williamsburg</a> banh mi lomo thundercats. DIY tofu biodiesel marfa, four loko mcsweeney's master cleanse vegan chambray. Etsy fap ethical, wes anderson farm-to-table +1 whatever bicycle rights mixtape portland readymade letterpress artisan. Four loko artisan whatever keytar, scenester farm-to-table <ahref="#"rel='twipsy'title='The last tip!'>PBR</a> banksy Austin freegan cred raw denim single-origin coffee viral.
<divclass="well">
</p>
<pclass="muted">Tight pants next level keffiyeh <ahref="#"rel='twipsy'title='Some title text'>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 <ahref="#"rel='twipsy'title='Another twipsy'>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 <ahref="#"rel='twipsy'title='Another one here too'>really ironic</a> artisan whatever keytar, scenester farm-to-table banksy Austin <ahref="#"rel='twipsy'title='The last tip!'>twitter handle</a> freegan cred raw denim single-origin coffee viral.
<p>The popover plugin provides a simple interface for adding popovers to your application. It extends the <ahref="#twipsy">boostrap-twipsy.js</a> plugin, so be sure to grab that file as well when including popovers in your project!</p>
<li><strong>delayIn</strong> (<code>number</code>) - delay before showing tooltip (ms).</li>
<li><strong>delayOut</strong> (<code>number</code>) - delay before hiding tooltip (ms).</li>
<li><strong>fallback</strong> (<code>string</code>) - fallback text to use when no tooltip text.</li>
<li><strong>placement</strong> (<code>string</code>) - position of tooltip - above | below | left | right.</li>
<li><strong>html</strong> (<code>boolean</code>) - is tooltip content HTML?</li>
<li><strong>live</strong> (<code>boolean</code>) - use live event support?</li>
<li><strong>offset</strong> (<code>number</code>) - pixel offset of tooltip from element.</li>
<li><strong>title</strong> (<code>string|function</code>) - text for title in popover. Alternatively you can specify a <code>data-title</code> attribute.</li>
<li><strong>content</strong> (<code>string|function</code>) - text for content in popover. Also you can specify a <code>data-content</code> attibute.</li>
<li><strong>trigger</strong> (<code>string</code>) - how tooltip is triggered - hover | focus | manual.</li>
</ul>
<h3>Methods</h3>
<h4>$().popover</h4>
<p>Initializes popovers for an element collection.</p>
<h3>Demo</h3>
<ahref="#"class="btn"rel="popover"data-title="A Title"data-content="And here's some amazing content. It's very engaging. right?">hover</a>