From e8e7298f6744b89c22f37cafb140d3ff6ccbaa9e Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 3 Jun 2012 13:09:11 -0400 Subject: [PATCH 1/8] Docs Start --- .DS_Store | Bin 0 -> 6148 bytes 1.3.0/bootstrap-alerts.js | 111 + 1.3.0/bootstrap-dropdown.js | 53 + 1.3.0/bootstrap-modal.js | 244 + 1.3.0/bootstrap-popover.js | 77 + 1.3.0/bootstrap-scrollspy.js | 105 + 1.3.0/bootstrap-tabs.js | 77 + 1.3.0/bootstrap-twipsy.js | 303 + 1.3.0/bootstrap.css | 2362 +++++ 1.3.0/bootstrap.min.css | 330 + 1.4.0/bootstrap-alerts.js | 113 + 1.4.0/bootstrap-alerts.min.js | 18 + 1.4.0/bootstrap-buttons.js | 62 + 1.4.0/bootstrap-buttons.min.js | 18 + 1.4.0/bootstrap-dropdown.js | 55 + 1.4.0/bootstrap-dropdown.min.js | 18 + 1.4.0/bootstrap-modal.js | 260 + 1.4.0/bootstrap-modal.min.js | 18 + 1.4.0/bootstrap-popover.js | 90 + 1.4.0/bootstrap-popover.min.js | 18 + 1.4.0/bootstrap-scrollspy.js | 107 + 1.4.0/bootstrap-scrollspy.min.js | 18 + 1.4.0/bootstrap-tabs.js | 80 + 1.4.0/bootstrap-tabs.min.js | 18 + 1.4.0/bootstrap-twipsy.js | 321 + 1.4.0/bootstrap-twipsy.min.js | 19 + 1.4.0/bootstrap.css | 2467 +++++ 1.4.0/bootstrap.min.css | 356 + assets/.DS_Store | Bin 0 -> 6148 bytes assets/css/bootstrap-responsive.css | 815 ++ assets/css/bootstrap.css | 4983 +++++++++ assets/css/docs.css | 846 ++ assets/espresso.zip | Bin 0 -> 370159 bytes assets/ico/.DS_Store | Bin 0 -> 6148 bytes assets/ico/favicon.ico | Bin 0 -> 1150 bytes assets/img/.DS_Store | Bin 0 -> 6148 bytes assets/img/browsers.png | Bin 0 -> 19776 bytes assets/img/escheresque.png | Bin 0 -> 395 bytes assets/img/example-diagram-01.png | Bin 0 -> 486 bytes assets/img/example-diagram-02.png | Bin 0 -> 564 bytes assets/img/example-diagram-03.png | Bin 0 -> 369 bytes assets/img/example-sites/.DS_Store | Bin 0 -> 6148 bytes assets/img/example-sites/cp.jpg | Bin 0 -> 59990 bytes assets/img/example-sites/ma.jpg | Bin 0 -> 57261 bytes assets/img/example-sites/t2l.jpg | Bin 0 -> 51472 bytes assets/img/example-sites/trendslide.jpg | Bin 0 -> 50948 bytes .../img/examples/bootstrap-example-fluid.jpg | Bin 0 -> 25832 bytes .../img/examples/bootstrap-example-hero.jpg | Bin 0 -> 22280 bytes .../examples/bootstrap-example-starter.jpg | Bin 0 -> 7182 bytes assets/img/github-16px.png | Bin 0 -> 398 bytes assets/img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes assets/img/glyphicons-halflings.png | Bin 0 -> 13826 bytes .../img/glyphicons/glyphicons_009_magic.png | Bin 0 -> 316 bytes .../img/glyphicons/glyphicons_042_group.png | Bin 0 -> 305 bytes .../img/glyphicons/glyphicons_079_podium.png | Bin 0 -> 213 bytes .../glyphicons/glyphicons_082_roundabout.png | Bin 0 -> 345 bytes .../glyphicons_155_show_thumbnails.png | Bin 0 -> 117 bytes .../img/glyphicons/glyphicons_163_iphone.png | Bin 0 -> 172 bytes .../glyphicons_214_resize_small.png | Bin 0 -> 301 bytes .../glyphicons/glyphicons_266_book_open.png | Bin 0 -> 292 bytes assets/img/grid-18px-masked.png | Bin 0 -> 405 bytes assets/img/icon-css3.png | Bin 0 -> 370 bytes assets/img/icon-github.png | Bin 0 -> 312 bytes assets/img/icon-html5.png | Bin 0 -> 452 bytes assets/img/icon-twitter.png | Bin 0 -> 264 bytes assets/img/less-logo-large.png | Bin 0 -> 13078 bytes assets/img/less-small.png | Bin 0 -> 1181 bytes assets/img/responsive-illustrations.png | Bin 0 -> 1077 bytes assets/img/white_wall.png | Bin 0 -> 248346 bytes assets/js/README.md | 106 + assets/js/application.js | 184 + assets/js/bootstrap-alert.js | 90 + assets/js/bootstrap-button.js | 96 + assets/js/bootstrap-carousel.js | 169 + assets/js/bootstrap-collapse.js | 157 + assets/js/bootstrap-dropdown.js | 100 + assets/js/bootstrap-modal.js | 218 + assets/js/bootstrap-popover.js | 98 + assets/js/bootstrap-scrollspy.js | 151 + assets/js/bootstrap-tab.js | 135 + assets/js/bootstrap-tooltip.js | 275 + assets/js/bootstrap-transition.js | 61 + assets/js/bootstrap-typeahead.js | 285 + assets/js/bootstrap.js | 1825 ++++ assets/js/bootstrap.min.js | 6 + assets/js/google-code-prettify/prettify.css | 30 + assets/js/google-code-prettify/prettify.js | 28 + assets/js/jquery.js | 9252 +++++++++++++++++ base-css.html | 1735 ++++ components.html | 1956 ++++ download.html | 479 + examples.html | 172 + index.html | 208 + javascript.html | 1545 +++ less.html | 1085 ++ scaffolding.html | 696 ++ upgrading.html | 335 + 97 files changed, 35839 insertions(+) create mode 100644 .DS_Store create mode 100755 1.3.0/bootstrap-alerts.js create mode 100755 1.3.0/bootstrap-dropdown.js create mode 100755 1.3.0/bootstrap-modal.js create mode 100755 1.3.0/bootstrap-popover.js create mode 100755 1.3.0/bootstrap-scrollspy.js create mode 100755 1.3.0/bootstrap-tabs.js create mode 100755 1.3.0/bootstrap-twipsy.js create mode 100755 1.3.0/bootstrap.css create mode 100755 1.3.0/bootstrap.min.css create mode 100755 1.4.0/bootstrap-alerts.js create mode 100755 1.4.0/bootstrap-alerts.min.js create mode 100755 1.4.0/bootstrap-buttons.js create mode 100755 1.4.0/bootstrap-buttons.min.js create mode 100755 1.4.0/bootstrap-dropdown.js create mode 100755 1.4.0/bootstrap-dropdown.min.js create mode 100755 1.4.0/bootstrap-modal.js create mode 100755 1.4.0/bootstrap-modal.min.js create mode 100755 1.4.0/bootstrap-popover.js create mode 100755 1.4.0/bootstrap-popover.min.js create mode 100755 1.4.0/bootstrap-scrollspy.js create mode 100755 1.4.0/bootstrap-scrollspy.min.js create mode 100755 1.4.0/bootstrap-tabs.js create mode 100755 1.4.0/bootstrap-tabs.min.js create mode 100755 1.4.0/bootstrap-twipsy.js create mode 100755 1.4.0/bootstrap-twipsy.min.js create mode 100755 1.4.0/bootstrap.css create mode 100755 1.4.0/bootstrap.min.css create mode 100644 assets/.DS_Store create mode 100755 assets/css/bootstrap-responsive.css create mode 100755 assets/css/bootstrap.css create mode 100755 assets/css/docs.css create mode 100644 assets/espresso.zip create mode 100644 assets/ico/.DS_Store create mode 100644 assets/ico/favicon.ico create mode 100644 assets/img/.DS_Store create mode 100755 assets/img/browsers.png create mode 100644 assets/img/escheresque.png create mode 100755 assets/img/example-diagram-01.png create mode 100755 assets/img/example-diagram-02.png create mode 100755 assets/img/example-diagram-03.png create mode 100644 assets/img/example-sites/.DS_Store create mode 100644 assets/img/example-sites/cp.jpg create mode 100644 assets/img/example-sites/ma.jpg create mode 100644 assets/img/example-sites/t2l.jpg create mode 100644 assets/img/example-sites/trendslide.jpg create mode 100755 assets/img/examples/bootstrap-example-fluid.jpg create mode 100755 assets/img/examples/bootstrap-example-hero.jpg create mode 100755 assets/img/examples/bootstrap-example-starter.jpg create mode 100755 assets/img/github-16px.png create mode 100755 assets/img/glyphicons-halflings-white.png create mode 100755 assets/img/glyphicons-halflings.png create mode 100755 assets/img/glyphicons/glyphicons_009_magic.png create mode 100755 assets/img/glyphicons/glyphicons_042_group.png create mode 100755 assets/img/glyphicons/glyphicons_079_podium.png create mode 100755 assets/img/glyphicons/glyphicons_082_roundabout.png create mode 100755 assets/img/glyphicons/glyphicons_155_show_thumbnails.png create mode 100755 assets/img/glyphicons/glyphicons_163_iphone.png create mode 100755 assets/img/glyphicons/glyphicons_214_resize_small.png create mode 100755 assets/img/glyphicons/glyphicons_266_book_open.png create mode 100755 assets/img/grid-18px-masked.png create mode 100755 assets/img/icon-css3.png create mode 100755 assets/img/icon-github.png create mode 100755 assets/img/icon-html5.png create mode 100755 assets/img/icon-twitter.png create mode 100755 assets/img/less-logo-large.png create mode 100755 assets/img/less-small.png create mode 100755 assets/img/responsive-illustrations.png create mode 100644 assets/img/white_wall.png create mode 100755 assets/js/README.md create mode 100755 assets/js/application.js create mode 100755 assets/js/bootstrap-alert.js create mode 100755 assets/js/bootstrap-button.js create mode 100755 assets/js/bootstrap-carousel.js create mode 100755 assets/js/bootstrap-collapse.js create mode 100755 assets/js/bootstrap-dropdown.js create mode 100755 assets/js/bootstrap-modal.js create mode 100755 assets/js/bootstrap-popover.js create mode 100755 assets/js/bootstrap-scrollspy.js create mode 100755 assets/js/bootstrap-tab.js create mode 100755 assets/js/bootstrap-tooltip.js create mode 100755 assets/js/bootstrap-transition.js create mode 100755 assets/js/bootstrap-typeahead.js create mode 100755 assets/js/bootstrap.js create mode 100755 assets/js/bootstrap.min.js create mode 100755 assets/js/google-code-prettify/prettify.css create mode 100755 assets/js/google-code-prettify/prettify.js create mode 100755 assets/js/jquery.js create mode 100755 base-css.html create mode 100755 components.html create mode 100755 download.html create mode 100755 examples.html create mode 100755 index.html create mode 100755 javascript.html create mode 100755 less.html create mode 100755 scaffolding.html create mode 100755 upgrading.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..665377b730ed9e03c09a57d209d8bfda29830f44 GIT binary patch literal 6148 zcmeH~JqiLr422VaK(N`;avEDvyucuO0xuwHDOia89Nm{61XpVjd4c53WD;e+VrL^F zy1AcMBAtj#;HEOS&@;t;EGt>a8ooT=PM72Ldhx13)>;i5zwvsW#}pDE0TLhq5+H#e zB4GD6Y%&dHBmoj2fhPfbKNPrWO>Lq6>Ok-j06Ie24Qrnzpv4loMIecjTv)U8`(`Xkh*ub>9FpvNV^au=N-`V}YgMXU;doA3O015mV z0Ud4k+YKHn@7A}+v-}~mwr+5!mm|D<1Yl!V@eJ;U^I{8VO>Lpb!1y8H7#K+4s{|gl Cs}dvt literal 0 HcmV?d00001 diff --git a/1.3.0/bootstrap-alerts.js b/1.3.0/bootstrap-alerts.js new file mode 100755 index 0000000..a8d15e2 --- /dev/null +++ b/1.3.0/bootstrap-alerts.js @@ -0,0 +1,111 @@ +/* ========================================================== + * bootstrap-alerts.js v1.3.0 + * http://twitter.github.com/bootstrap/javascript.html#alerts + * ========================================================== + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================== */ + + +!function( $ ){ + + /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) + * ======================================================= */ + + var transitionEnd + + $(document).ready(function () { + + $.support.transition = (function () { + var thisBody = document.body || document.documentElement + , thisStyle = thisBody.style + , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined + return support + })() + + // set CSS transition event type + if ( $.support.transition ) { + transitionEnd = "TransitionEnd" + if ( $.browser.webkit ) { + transitionEnd = "webkitTransitionEnd" + } else if ( $.browser.mozilla ) { + transitionEnd = "transitionend" + } else if ( $.browser.opera ) { + transitionEnd = "oTransitionEnd" + } + } + + }) + + /* ALERT CLASS DEFINITION + * ====================== */ + + var Alert = function ( content, options ) { + this.settings = $.extend({}, $.fn.alert.defaults, options) + this.$element = $(content) + .delegate(this.settings.selector, 'click', this.close) + } + + Alert.prototype = { + + close: function (e) { + var $element = $(this).parent('.alert-message') + + e && e.preventDefault() + $element.removeClass('in') + + function removeElement () { + $element.remove() + } + + $.support.transition && $element.hasClass('fade') ? + $element.bind(transitionEnd, removeElement) : + removeElement() + } + + } + + + /* ALERT PLUGIN DEFINITION + * ======================= */ + + $.fn.alert = function ( options ) { + + if ( options === true ) { + return this.data('alert') + } + + return this.each(function () { + var $this = $(this) + + if ( typeof options == 'string' ) { + return $this.data('alert')[options]() + } + + $(this).data('alert', new Alert( this, options )) + + }) + } + + $.fn.alert.defaults = { + selector: '.close' + } + + $(document).ready(function () { + new Alert($('body'), { + selector: '.alert-message[data-alert] .close' + }) + }) + +}( window.jQuery || window.ender ); \ No newline at end of file diff --git a/1.3.0/bootstrap-dropdown.js b/1.3.0/bootstrap-dropdown.js new file mode 100755 index 0000000..68a3db5 --- /dev/null +++ b/1.3.0/bootstrap-dropdown.js @@ -0,0 +1,53 @@ +/* ============================================================ + * bootstrap-dropdown.js v1.3.0 + * http://twitter.github.com/bootstrap/javascript.html#dropdown + * ============================================================ + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============================================================ */ + + +!function( $ ){ + + /* DROPDOWN PLUGIN DEFINITION + * ========================== */ + + $.fn.dropdown = function ( selector ) { + return this.each(function () { + $(this).delegate(selector || d, 'click', function (e) { + var li = $(this).parent('li') + , isActive = li.hasClass('open') + + clearMenus() + !isActive && li.toggleClass('open') + return false + }) + }) + } + + /* APPLY TO STANDARD DROPDOWN ELEMENTS + * =================================== */ + + var d = 'a.menu, .dropdown-toggle' + + function clearMenus() { + $(d).parent('li').removeClass('open') + } + + $(function () { + $('html').bind("click", clearMenus) + $('body').dropdown( '[data-dropdown] a.menu, [data-dropdown] .dropdown-toggle' ) + }) + +}( window.jQuery || window.ender ); diff --git a/1.3.0/bootstrap-modal.js b/1.3.0/bootstrap-modal.js new file mode 100755 index 0000000..2cc9109 --- /dev/null +++ b/1.3.0/bootstrap-modal.js @@ -0,0 +1,244 @@ +/* ========================================================= + * bootstrap-modal.js v1.3.0 + * http://twitter.github.com/bootstrap/javascript.html#modal + * ========================================================= + * Copyright 2011 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ========================================================= */ + + +!function( $ ){ + + /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) + * ======================================================= */ + + var transitionEnd + + $(document).ready(function () { + + $.support.transition = (function () { + var thisBody = document.body || document.documentElement + , thisStyle = thisBody.style + , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined + return support + })() + + // set CSS transition event type + if ( $.support.transition ) { + transitionEnd = "TransitionEnd" + if ( $.browser.webkit ) { + transitionEnd = "webkitTransitionEnd" + } else if ( $.browser.mozilla ) { + transitionEnd = "transitionend" + } else if ( $.browser.opera ) { + transitionEnd = "oTransitionEnd" + } + } + + }) + + + /* MODAL PUBLIC CLASS DEFINITION + * ============================= */ + + var Modal = function ( content, options ) { + this.settings = $.extend({}, $.fn.modal.defaults, options) + this.$element = $(content) + .delegate('.close', 'click.modal', $.proxy(this.hide, this)) + + if ( this.settings.show ) { + this.show() + } + + return this + } + + Modal.prototype = { + + toggle: function () { + return this[!this.isShown ? 'show' : 'hide']() + } + + , show: function () { + var that = this + this.isShown = true + this.$element.trigger('show') + + escape.call(this) + backdrop.call(this, function () { + var transition = $.support.transition && that.$element.hasClass('fade') + + that.$element + .appendTo(document.body) + .show() + + if (transition) { + that.$element[0].offsetWidth // force reflow + } + + that.$element + .addClass('in') + + transition ? + that.$element.one(transitionEnd, function () { that.$element.trigger('shown') }) : + that.$element.trigger('shown') + + }) + + return this + } + + , hide: function (e) { + e && e.preventDefault() + + if ( !this.isShown ) { + return this + } + + var that = this + this.isShown = false + + escape.call(this) + + this.$element + .trigger('hide') + .removeClass('in') + + function removeElement () { + that.$element + .hide() + .trigger('hidden') + + backdrop.call(that) + } + + $.support.transition && this.$element.hasClass('fade') ? + this.$element.one(transitionEnd, removeElement) : + removeElement() + + return this + } + + } + + + /* MODAL PRIVATE METHODS + * ===================== */ + + function backdrop ( callback ) { + var that = this + , animate = this.$element.hasClass('fade') ? 'fade' : '' + if ( this.isShown && this.settings.backdrop ) { + var doAnimate = $.support.transition && animate + + this.$backdrop = $('