docs update

This commit is contained in:
Stephen Dolan committed 2012-09-19 01:03:58 +01:00
1 parent 9df9e719d2
commit 8bdc1e6ef3
14 files changed
+27 -8973

No files matched your search

+1 -2027
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -1,6 +1,6 @@
/*!
/*
* Bootstrap.js by @fat & @mdo
* Copyright 2012 Twitter, Inc.
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
!function(e){e(function(){"use strict";e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e(function(){e("body").on("click.alert.data-api",t,n.prototype.close)})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.button.defaults,n)};t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.data(),i=n.is("input")?"val":"html";e+="Text",r.resetText||n.data("resetText",n[i]()),n[i](r[e]||this.options[e]),setTimeout(function(){e=="loadingText"?n.addClass(t).attr(t,t):n.removeClass(t).removeAttr(t)},0)},t.prototype.toggle=function(){var e=this.$element.closest('[data-toggle="buttons-radio"]');e&&e.find(".active").removeClass("active"),this.$element.toggleClass("active")},e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("button"),s=typeof n=="object"&&n;i||r.data("button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.defaults={loadingText:"loading..."},e.fn.button.Constructor=t,e(function(){e("body").on("click.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle")})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=n,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.prototype={cycle:function(t){return t||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},to:function(t){var n=this.$element.find(".item.active"),r=n.parent().children(),i=r.index(n),s=this;if(t>r.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){s.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(r[t]))},pause:function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding)return;return this.slide("next")},prev:function(){if(this.sliding)return;return this.slide("prev")},slide:function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this,f=e.Event("slide",{relatedTarget:i[0]});this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u]();if(i.hasClass("active"))return;if(e.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(f);if(f.isDefaultPrevented())return;i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),this.$element.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid")},0)})}else{this.$element.trigger(f);if(f.isDefaultPrevented())return;r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return s&&this.cycle(),this}},e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("carousel"),s=e.extend({},e.fn.carousel.defaults,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.cycle()})},e.fn.carousel.defaults={interval:5e3,pause:"hover"},e.fn.carousel.Constructor=t,e(function(){e("body").on("click.carousel.data-api","[data-slide]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=!i.data("modal")&&e.extend({},i.data(),n.data());i.carousel(s),t.preventDefault()})})}(window.jQuery),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.collapse.defaults,n),this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.prototype={constructor:t,dimension:function(){var e=this.$element.hLine truncated
!function(a){a(function(){a.support.transition=function(){var b=function(){var d=document.createElement("bootstrap"),c={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},f;for(f in c){if(d.style[f]!==undefined){return c[f]}}}();return b&&{end:b}}()})}(window.jQuery),!function(b){var a='[data-dismiss="alert"]',c=function(d){b(d).on("click",a,this.close)};c.prototype.close=function(e){function f(){d.trigger("closed").remove()}var h=b(this),g=h.attr("data-target"),d;g||(g=h.attr("href"),g=g&&g.replace(/.*(?=#[^\s]*$)/,"")),d=b(g),e&&e.preventDefault(),d.length||(d=h.hasClass("alert")?h:h.parent()),d.trigger(e=b.Event("close"));if(e.isDefaultPrevented()){return}d.removeClass("in"),b.support.transition&&d.hasClass("fade")?d.on(b.support.transition.end,f):f()},b.fn.alert=function(d){return this.each(function(){var f=b(this),e=f.data("alert");e||f.data("alert",e=new c(this)),typeof d=="string"&&e[d].call(f)})},b.fn.alert.Constructor=c,b(function(){b("body").on("click.alert.data-api",a,c.prototype.close)})}(window.jQuery),!function(b){var a=function(c,d){this.$element=b(c),this.options=b.extend({},b.fn.button.defaults,d)};a.prototype.setState=function(g){var d="disabled",h=this.$element,f=h.data(),c=h.is("input")?"val":"html";g+="Text",f.resetText||h.data("resetText",h[c]()),h[c](f[g]||this.options[g]),setTimeout(function(){g=="loadingText"?h.addClass(d).attr(d,d):h.removeClass(d).removeAttr(d)},0)},a.prototype.toggle=function(){var c=this.$element.closest('[data-toggle="buttons-radio"]');c&&c.find(".active").removeClass("active"),this.$element.toggleClass("active")},b.fn.button=function(c){return this.each(function(){var f=b(this),d=f.data("button"),e=typeof c=="object"&&c;d||f.data("button",d=new a(this,e)),c=="toggle"?d.toggle():c&&d.setState(c)})},b.fn.button.defaults={loadingText:"loading..."},b.fn.button.Constructor=a,b(function(){b("body").on("click.button.data-api","[data-toggle^=button]",function(c){var d=b(c.target);d.hasClass("btn")||(d=d.closest(".btn")),d.button("toggle")})})}(window.jQuery),!function(b){var a=function(c,d){this.$element=b(c),this.options=d,this.options.slide&&this.slide(this.options.slide),this.options.pause=="hover"&&this.$element.on("mouseenter",b.proxy(this.pause,this)).on("mouseleave",b.proxy(this.cycle,this))};a.prototype={cycle:function(c){return c||(this.paused=!1),this.options.interval&&!this.paused&&(this.interval=setInterval(b.proxy(this.next,this),this.options.interval)),this},to:function(d){var g=this.$element.find(".item.active"),f=g.parent().children(),c=f.index(g),e=this;if(d>f.length-1||d<0){return}return this.sliding?this.$element.one("slid",function(){e.to(d)}):c==d?this.pause().cycle():this.slide(d>c?"next":"prev",b(f[d]))},pause:function(c){return c||(this.paused=!0),this.$element.find(".next, .prev").length&&b.support.transition.end&&(this.$element.trigger(b.support.transition.end),this.cycle()),clearInterval(this.interval),this.interval=null,this},next:function(){if(this.sliding){return}return this.slide("next")},prev:function(){if(this.sliding){return}return this.slide("prev")},slide:function(l,e){var c=this.$element.find(".item.active"),g=e||c[l](),m=this.interval,d=l=="next"?"left":"right",k=l=="next"?"first":"last",j=this,h=b.Event("slide",{relatedTarget:g[0]});this.sliding=!0,m&&this.pause(),g=g.length?g:this.$element.find(".item")[k]();if(g.hasClass("active")){return}if(b.support.transition&&this.$element.hasClass("slide")){this.$element.trigger(h);if(h.isDefaultPrevented()){return}g.addClass(l),g[0].offsetWidth,c.addClass(d),g.addClass(d),this.$element.one(b.support.transition.end,function(){g.removeClass([l,d].join(" ")).addClass("active"),c.removeClass(["active",d].join(" ")),j.sliding=!1,setTimeout(function(){j.$element.trigger("slid")},0)})}else{this.$element.trigger(h);if(h.isDefaultPrevented()){return}c.removeClass("active"),g.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return m&&this.cycle(),this}},b.fn.carousel=function(c){return this.each(function(){var f=b(this),d=f.data("carousel"),e=b.extend({},b.fn.carousel.defaults,typeof c=="object"&&c),g=typeof c=="string"?c:e.slide;d||f.data("carousel",d=new a(this,e)),typeof c=="number"?d.to(c):g?d[g]():e.interval&&d.cycle()})},b.fn.carousel.defaults={interval:5000,pause:"hover"},b.fn.carousel.Constructor=a,b(function(){b("body").on("click.carousel.data-api","[data-slide]",function(d){var g=b(this),f,c=b(g.attr("data-target")||(f=g.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=!c.data("modal")&&b.extend({},c.data(),g.data());c.carousel(e),d.preventDefault()})})}(window.jQuery),!function(b){var a=function(c,d){this.$element=b(c),this.options=b.extend({},b.fn.collapse.defaults,d),this.options.parent&&(this.$parent=b(this.options.parent)),this.options.toggle&&this.toggle()};a.prototype={constructor:a,dimension:function(){var c=this.$element.hasClass("width");return c?"width":"height"},show:funcLine truncated