On Github ktzhu / love-your-libs
JOUR 390 | Spring 2013
I will encourage you to develop the one of the three great virtues of a programmer:
laziness.
More specifically, today we'll cover:
How to leverage existing resources to simplify development
How to effectively Google and find these resources
How to read docs
How to Bootstrap
How'd it go?
Talk through some dos and don'ts for Googling effectively. List some libs, doc TK.What can they do?
CSS + JS components
Styles are great, but there's more.
Components are better. Reusable bits of code to make your life easier.
The markup
<a href="#" data-toggle="tooltip" title="first tooltip">hover over me</a>
The JS
$('#element').tooltip('toggle')
The markup
<!-- Button to trigger modal --> <a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a> <!-- Modal --> <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Modal header</h3> </div> <div class="modal-body"> <p>One fine body…</p> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button class="btn btn-primary">Save changes</button> </div> </div>
The JS
$('#myModal').modal(options)
What Bootstrap plugins did you guys try? Any you want to tackle together?
We're going to write some code.
I made my presentation about JS libraries using a JS library.
Reveal.jsAny questions?