* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
++<<<<<<< HEAD
+ * Date: Thu Dec 22 19:09:49 PST 2011
++=======
+ * Date: Wed Dec 21 18:38:56 CST 2011
++>>>>>>> 9fb380151d477f1741b7609ade7a9e7fd5450b2c
*/
html, body {
margin: 0;
$(function(){
- window.addEventListener("load",function() {
- // Set a timeout...
- setTimeout(function(){
- // Hide the address bar!
- window.scrollTo(0, 1);
- }, 0);
- });
-
-
- // Docs topbar nav
- // ===============
-
- $('.nav .active').click(function(e) {
- e.preventDefault();
- $(this).siblings().toggle();
- });
-
-
- // Show grid dimensions on hover
- // =============================
-
- $('.show-grid > div').hover(function() {
- var width = $(this).width();
- $(this).attr('title', width);
- $(this).twipsy();
- });
-
+ // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
+ // IT'S ALL JUST JUNK FOR OUR DOCS!
+ // ++++++++++++++++++++++++++++++++++++++++++
+
+ // Hide the Mobile Safari address bar once loaded
+ // ==============================================
+
- $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
++ // Set a timeout...
++ setTimeout(function(){
++ // Hide the address bar!
++ window.scrollTo(0, 1);
++ }, 0);
+
+ // table sort example
+ // ==================
+
+ // make code pretty
+ prettyPrint && prettyPrint()
+ // table sort example
+ if ($.fn.tableSorter) {
+ $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
+ }
// add on logic
- // ============
-
- $('.add-on :checkbox').click(function () {
- if ($(this).attr('checked')) {
- $(this).parents('.add-on').addClass('active')
- } else {
- $(this).parents('.add-on').removeClass('active')
- }
+ $('.add-on :checkbox').on('click', function () {
+ var $this = $(this)
+ , method = $this.attr('checked') ? 'addClass' : 'removeClass'
+ $(this).parents('.add-on')[method]('active')
})
-
// Disable certain links in docs
- // =============================
- // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page
+ // Please do not carry these styles over to your projects
+ // it's merely here to prevent button clicks form taking you
+ // away from your spot on page!!
- $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) {
+ $('[href^=#]').click(function (e) {
e.preventDefault()
})
// Copy code blocks in docs
- $(".copy-code").focus(function () {
- var el = this;
- // push select to event loop for chrome :{o
- setTimeout(function () { $(el).select(); }, 1);
- });
-
-
- // POSITION STATIC TWIPSIES
- // ========================
-
- $(window).on('load resize', function () {
- $(".twipsies a").each(function () {
- $(this)
- .twipsy({
- live: false
- , placement: $(this).attr('title')
- , trigger: 'manual'
- , offset: 2
- })
- .twipsy('show')
- })
+ $(".copy-code").on('focus', function () {
+ var el = this
+ setTimeout(function () { $(el).select() }, 0)
})
-});
+
+ if ($.fn.twipsy) {
+
+ // position static twipsies for components page
+ if ($(".twipsies a").length) {
+ $(window).on('load resize', function () {
+ $(".twipsies a").each(function () {
+ $(this)
+ .twipsy({
+ placement: $(this).attr('title')
+ , trigger: 'manual'
+ })
+ .twipsy('show')
+ })
+ })
+ }
+
+ // add tipsies to grid for scaffolding
+ if ($('#grid-system').length) {
+
+ $('#grid-system').twipsy({
+ selector: '.show-grid > div'
+ , title: function () { return $(this).width() + 'px' }
+ })
+
+ }
+ }
+
- })
++})
<!-- Le javascript -->
<!-- Placed at the end of the document so the pages load faster -->
- <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
- <script src="../js/tests/vendor/jquery.js"></script>
+ <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
- <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
<script>$(function () { prettyPrint() })</script>
- <script src="../js/bootstrap-transitions.js"></script>
- <script src="../js/bootstrap-dropdown.js"></script>
- <script src="../js/bootstrap-twipsy.js"></script>
- <script src="../js/bootstrap-scrollspy.js"></script>
<script src="assets/js/application.js"></script>
</body>
</html>
- <!-- Navigation
+ <!-- Autocomplete
+ ================================================== -->
+ <section id="autocomplete">
+ <div class="page-header">
+ <h1>Autocomplete <small></small></h1>
+ </div>
+
+ </section>
+
+
+
+ <!-- Carousel
================================================== -->
- <section id="navigation">
+ <section id="carousel">
<div class="page-header">
- <h1>Navigation</h1>
+ <h1>Carousel <small></small></h1>
+ </div>
+
+ </section>
+
+
+
+ <!-- Navbar
+ ================================================== -->
+ <section id="navbar">
+ <div class="page-header">
+ <h1>Navbar</h1>
</div>
<h2>Fixed navbar</h2>
- <div class="navbar navbar-static">
+ <div class="navbar navbar-static" >
<div class="navbar-inner">
<div class="container" style="width: auto;">
<a class="brand" href="#">Project Name</a>
<!-- Le javascript -->
<!-- Placed at the end of the document so the pages load faster -->
-
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
+ <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
+ <script src="assets/js/application.js"></script>
</body>
- </html>
+ </html>
<!-- Le javascript -->
<!-- Placed at the end of the document so the pages load faster -->
- <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
- <script src="../js/tests/vendor/jquery.js"></script>
+ <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
- <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
- <script>$(function () { prettyPrint() })</script>
- <script src="../js/bootstrap-transitions.js"></script>
- <script src="../js/bootstrap-dropdown.js"></script>
- <script src="../js/bootstrap-twipsy.js"></script>
- <script src="../js/bootstrap-scrollspy.js"></script>
<script src="assets/js/application.js"></script>
</body>
</html>
<!-- Le javascript -->
<!-- Placed at the end of the document so the pages load faster -->
- <!-- <script src="http://code.jquery.com/jquery-1.7.min.js"></script> -->
- <script src="../js/tests/vendor/jquery.js"></script>
+ <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
- <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
- <script>$(function () { prettyPrint() })</script>
- <script src="../js/bootstrap-transitions.js"></script>
- <script src="../js/bootstrap-dropdown.js"></script>
+ <script src="../js/bootstrap-transition.js"></script>
<script src="../js/bootstrap-twipsy.js"></script>
- <script src="../js/bootstrap-scrollspy.js"></script>
<script src="assets/js/application.js"></script>
</body>
- </html>
+ </html>
<li>Added button bar options</li>
</ul>
</li>
+</ul>
+ <!--
+ <li>
+ <ul>
+ <li></li>
+ </ul>
+ </li>
+ -->
+ </ul>
+
+
<!-- Footer
================================================== -->
<footer class="footer">
<p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
</footer>
</div><!-- /container -->
- <!-- Le javascript -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
- <script src="http://autobahn.tablesorter.com/jquery.tablesorter.min.js"></script>
- <script src="assets/js/google-code-prettify/prettify.js"></script>
- <script>$(function () { prettyPrint() })</script>
- <script src="../js/bootstrap-transitions.js"></script>
- <script src="../js/bootstrap-dropdown.js"></script>
- <script src="../js/bootstrap-twipsy.js"></script>
- <script src="../js/bootstrap-scrollspy.js"></script>
- <script src="assets/js/application.js"></script>
+
</body>
</html>