diff --git a/.gitignore b/.gitignore index 218ceb9f3..0d74d48fe 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,3 @@ nbproject .CVS .idea node_modules -dist diff --git a/Makefile b/Makefile index 257754b50..7ae206537 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BOOTSTRAP ?= ./docs/assets/css/bootstrap.css +BOOTSTRAP ?= ./dist/css/bootstrap.css BOOTSTRAP_LESS ?= ./less/bootstrap.less DATE=$(shell date +%I:%M%p) CHECK=\033[32m✔ Done\033[39m @@ -22,14 +22,14 @@ build: @recess --compile ${BOOTSTRAP_LESS} > ${BOOTSTRAP} @echo " ${CHECK}" @printf "Prepping documentation assets..." - @cp js/tests/vendor/jquery.js docs/assets/js/ + @cp js/tests/vendor/jquery.js assets/js/ @echo " ${CHECK}" @printf "Compiling and minifying JavaScript..." - @cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > docs/assets/js/bootstrap.js - @uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js - @echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js - @cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js - @rm docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js + @cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > dist/js/bootstrap.js + @uglifyjs -nc dist/js/bootstrap.js > dist/js/bootstrap.min.tmp.js + @echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2013 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > dist/js/copyright.js + @cat dist/js/copyright.js dist/js/bootstrap.min.tmp.js > dist/js/bootstrap.min.js + @rm dist/js/copyright.js dist/js/bootstrap.min.tmp.js @echo " ${CHECK}" @echo "${HR}" @echo "\033[36mSuccess!\n\033[39m" @@ -72,7 +72,7 @@ bootstrap/js/*.js: js/*.js mkdir -p bootstrap/js cat js/transition.js js/alert.js js/button.js js/carousel.js js/collapse.js js/dropdown.js js/modal.js js/tooltip.js js/popover.js js/scrollspy.js js/tab.js js/affix.js > bootstrap/js/bootstrap.js uglifyjs -nc bootstrap/js/bootstrap.js > bootstrap/js/bootstrap.min.tmp.js - echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js + echo "/*!\n* Bootstrap.js by @fat & @mdo\n* Copyright 2013 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > bootstrap/js/copyright.js cat bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js > bootstrap/js/bootstrap.min.js rm bootstrap/js/copyright.js bootstrap/js/bootstrap.min.tmp.js diff --git a/_config.yml b/_config.yml index ddef7b2b9..0ab7ee81e 100644 --- a/_config.yml +++ b/_config.yml @@ -6,6 +6,6 @@ pygments: true permalink: pretty # Server -source: ./docs destination: ./_gh_pages +exclude: [".editorconfig", ".gitignore", ".ruby-version", "bower.json", "composer.json", "CONTRIBUTING.md", "LICENSE", "Makefile", "package.json", "node_modules", "README.md"] port: 9001 diff --git a/_includes/ads.html b/_includes/ads.html new file mode 100644 index 000000000..495e7ba47 --- /dev/null +++ b/_includes/ads.html @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/docs/_includes/footer.html b/_includes/footer.html similarity index 89% rename from docs/_includes/footer.html rename to _includes/footer.html index fcfc7c482..7c3bb5639 100644 --- a/docs/_includes/footer.html +++ b/_includes/footer.html @@ -2,10 +2,10 @@ ================================================== --> - + - + diff --git a/docs/_includes/header.html b/_includes/header.html similarity index 93% rename from docs/_includes/header.html rename to _includes/header.html index af2104ebb..35c2df084 100644 --- a/docs/_includes/header.html +++ b/_includes/header.html @@ -12,7 +12,7 @@ - + {% if page.layout != "example" %} @@ -23,7 +23,7 @@ diff --git a/docs/_includes/nav-components.html b/_includes/nav-components.html similarity index 100% rename from docs/_includes/nav-components.html rename to _includes/nav-components.html diff --git a/docs/_includes/nav-css.html b/_includes/nav-css.html similarity index 100% rename from docs/_includes/nav-css.html rename to _includes/nav-css.html diff --git a/docs/_includes/nav-customize.html b/_includes/nav-customize.html similarity index 100% rename from docs/_includes/nav-customize.html rename to _includes/nav-customize.html diff --git a/docs/_includes/nav-getting-started.html b/_includes/nav-getting-started.html similarity index 100% rename from docs/_includes/nav-getting-started.html rename to _includes/nav-getting-started.html diff --git a/docs/_includes/nav-javascript.html b/_includes/nav-javascript.html similarity index 100% rename from docs/_includes/nav-javascript.html rename to _includes/nav-javascript.html diff --git a/docs/_includes/nav-main.html b/_includes/nav-main.html similarity index 83% rename from docs/_includes/nav-main.html rename to _includes/nav-main.html index fceeb7a86..40244d3a2 100644 --- a/docs/_includes/nav-main.html +++ b/_includes/nav-main.html @@ -24,6 +24,13 @@ Customize + {% if page.layout == "default" %} + + {% endif %} diff --git a/docs/_includes/social-buttons.html b/_includes/social-buttons.html similarity index 100% rename from docs/_includes/social-buttons.html rename to _includes/social-buttons.html diff --git a/docs/_layouts/default.html b/_layouts/default.html similarity index 98% rename from docs/_layouts/default.html rename to _layouts/default.html index 019d7626a..30a261ce8 100644 --- a/docs/_layouts/default.html +++ b/_layouts/default.html @@ -1,4 +1,4 @@ - + @@ -15,6 +15,7 @@

{{ page.title }}

{{ page.lead }}

+ {% include ads.html %}
diff --git a/docs/_layouts/home.html b/_layouts/home.html similarity index 100% rename from docs/_layouts/home.html rename to _layouts/home.html diff --git a/docs/assets/css/docs.css b/assets/css/docs.css similarity index 90% rename from docs/assets/css/docs.css rename to assets/css/docs.css index aae9e0635..3aaecd065 100644 --- a/docs/assets/css/docs.css +++ b/assets/css/docs.css @@ -13,6 +13,19 @@ body { padding-top: 50px; /* Account for fixed navbar */ } +/* Custom docs button */ +.btn-bs { + color: #b94a48; + background-color: #fff; + border-color: #e5e5e5; +} +.btn-bs:hover, +.btn-bs:active { + color: #fff; + background-color: #b94a48; + border-color: #b94a48; +} + /* Top nav and header @@ -43,6 +56,15 @@ body { border-color: #993c3a; } +/* Old docs callout */ +.bs-old-docs { + padding: 15px 20px; + color: #777; + border-bottom: 1px solid #e5e5e5; +} +.bs-old-docs strong { + color: #555; +} /* Homepage masthead @@ -63,20 +85,11 @@ body { } /* Download button */ -.bs-masthead .btn { +.bs-masthead .btn-bs { margin-top: 5px; margin-bottom: 5px; padding: 18px 24px; font-size: 21px; - color: #b94a48; /* redeclare to override the `.jumbotron a` */ - background-color: #fff; - border-color: #e5e5e5; -} -.bs-masthead .btn:hover, -.bs-masthead .btn:active { - color: #fff; /* redeclare to override the `.jumbotron a` */ - background-color: #b94a48; - border-color: #b94a48; } /* Textual links */ @@ -95,12 +108,10 @@ body { } + /* Customize and Download button -------------------------------------------------- */ -.bs-customizer { - -} .bs-customizer .toggle { float: right; } @@ -116,23 +127,8 @@ body { background-color: #fafafa; } - .bs-customize-download { - text-align:center; -} -.bs-customize-download .btn { - margin-top: 5px; - margin-bottom: 5px; - padding: 18px 24px; - font-size: 21px; - color: #b94a48; - background-color: #fff; - border-color: #b94a48; -} -.bs-customize-download .btn:hover, -.bs-customize-download .btn:active { - color: #fff; - background-color: #b94a48; + text-align: center; } @@ -146,7 +142,7 @@ body { font-size: 16px; color: #5a5a5a; text-align: center; - border-bottom: 1px solid #ddd; + border-bottom: 1px solid #e5e5e5; } .bs-header h1 { color: #b94a48; @@ -155,6 +151,45 @@ body { font-weight: 300; line-height: 1.5; } +.bs-header .container { + position: relative; +} + +/* Ads in page headers */ +.carbonad { + width: auto !important; + margin: 50px -30px -40px !important; + padding: 20px !important; + overflow: hidden; /* clearfix */ + height: auto !important; + font-size: 13px !important; + line-height: 16px !important; + text-align: left; + background: none !important; + border: 0 !important; + border-top: 1px solid #e5e5e5 !important; +} +.carbonad-img { + margin: 0 !important; +} +.carbonad-text, +.carbonad-tag { + float: none !important; + display: block !important; + width: auto !important; + height: auto !important; + margin-left: 145px !important; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; +} +.carbonad-text { + padding-top: 0 !important; +} +.carbonad-tag { + text-align: left !important; +} +.carbonad #azcarbon > img { + display: none; /* hide what I assume are tracking images */ +} /* Padding for in-page bookmarks */ .bs-docs-section { @@ -720,6 +755,12 @@ input.focused { line-height: 1; } + .carbonad { + margin: 0 !important; + border: 1px solid #e5e5e5 !important; + border-radius: 4px; + } + /* Show the docs nav */ .bs-sidebar { display: block; @@ -756,9 +797,17 @@ input.focused { width: 213px; } - /* Icons */ - .the-icons li { - width: 12.5%; + .bs-header h1, + .bs-header p { + margin-right: 380px; + } + .carbonad { + position: absolute; + top: 20px; + right: 0; + padding: 15px !important; + width: 330px !important; + min-height: 132px; } } diff --git a/docs/assets/css/pygments-manni.css b/assets/css/pygments-manni.css similarity index 100% rename from docs/assets/css/pygments-manni.css rename to assets/css/pygments-manni.css diff --git a/docs/assets/ico/apple-touch-icon-114-precomposed.png b/assets/ico/apple-touch-icon-114-precomposed.png similarity index 100% rename from docs/assets/ico/apple-touch-icon-114-precomposed.png rename to assets/ico/apple-touch-icon-114-precomposed.png diff --git a/docs/assets/ico/apple-touch-icon-144-precomposed.png b/assets/ico/apple-touch-icon-144-precomposed.png similarity index 100% rename from docs/assets/ico/apple-touch-icon-144-precomposed.png rename to assets/ico/apple-touch-icon-144-precomposed.png diff --git a/docs/assets/ico/apple-touch-icon-57-precomposed.png b/assets/ico/apple-touch-icon-57-precomposed.png similarity index 100% rename from docs/assets/ico/apple-touch-icon-57-precomposed.png rename to assets/ico/apple-touch-icon-57-precomposed.png diff --git a/docs/assets/ico/apple-touch-icon-72-precomposed.png b/assets/ico/apple-touch-icon-72-precomposed.png similarity index 100% rename from docs/assets/ico/apple-touch-icon-72-precomposed.png rename to assets/ico/apple-touch-icon-72-precomposed.png diff --git a/docs/assets/ico/favicon.png b/assets/ico/favicon.png similarity index 100% rename from docs/assets/ico/favicon.png rename to assets/ico/favicon.png diff --git a/docs/assets/js/application.js b/assets/js/application.js similarity index 100% rename from docs/assets/js/application.js rename to assets/js/application.js diff --git a/docs/assets/js/holder/holder.js b/assets/js/holder.js similarity index 100% rename from docs/assets/js/holder/holder.js rename to assets/js/holder.js diff --git a/docs/assets/js/html5shiv.js b/assets/js/html5shiv.js similarity index 100% rename from docs/assets/js/html5shiv.js rename to assets/js/html5shiv.js diff --git a/docs/assets/js/jquery.js b/assets/js/jquery.js similarity index 100% rename from docs/assets/js/jquery.js rename to assets/js/jquery.js diff --git a/docs/assets/js/respond/respond.min.js b/assets/js/respond.min.js similarity index 100% rename from docs/assets/js/respond/respond.min.js rename to assets/js/respond.min.js diff --git a/docs/components.html b/components.html similarity index 100% rename from docs/components.html rename to components.html diff --git a/docs/css.html b/css.html similarity index 99% rename from docs/css.html rename to css.html index 10f2ea1dd..c0e6c5061 100644 --- a/docs/css.html +++ b/css.html @@ -2,7 +2,7 @@ layout: default title: CSS slug: css -lead: "Fundamental HTML elements styled and enhanced with extensible classes." +lead: "Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system." --- diff --git a/docs/customize.html b/customize.html similarity index 99% rename from docs/customize.html rename to customize.html index 876d81dde..511e94e41 100644 --- a/docs/customize.html +++ b/customize.html @@ -1155,7 +1155,7 @@ lead: Customize Bootstrap's components, LESS variables, and jQuery plugins to ge

Hooray! Your custom version of Bootstrap is now ready to be compiled. Just click the button below to finish the process.

- Customize and Download + Customize and Download

What's included?

diff --git a/docs/assets/css/bootstrap.css b/dist/css/bootstrap.css similarity index 100% rename from docs/assets/css/bootstrap.css rename to dist/css/bootstrap.css diff --git a/docs/assets/js/bootstrap.js b/dist/js/bootstrap.js similarity index 100% rename from docs/assets/js/bootstrap.js rename to dist/js/bootstrap.js diff --git a/docs/assets/js/bootstrap.min.js b/dist/js/bootstrap.min.js similarity index 99% rename from docs/assets/js/bootstrap.min.js rename to dist/js/bootstrap.min.js index efca8ac0d..a97da7572 100644 --- a/docs/assets/js/bootstrap.min.js +++ b/dist/js/bootstrap.min.js @@ -1,6 +1,6 @@ /** * Bootstrap.js v3.0.0 by @fat & @mdo -* Copyright 2012 Twitter, Inc. +* Copyright 2013 Twitter, Inc. * http://www.apache.org/licenses/LICENSE-2.0.txt */ +function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]}}e(function(){e.support.transition=t()})}(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.bs.alert").remove()}var n=e(this),r=n.attr("data-target");r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var i=e(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close.bs.alert"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(window.jQuery),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r)};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(e){var t="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();e+="Text",i.resetText||n.data("resetText",n[r]()),n[r](i[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"]');if(e.length){var t=this.$element.find("input").prop("checked",!this.$element.hasClass("active"));t.prop("type")==="radio"&&e.find(".active").removeClass("active")}this.$element.toggleClass("active")};var n=e.fn.button;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("bs.button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),t.preventDefault()})}(window.jQuery),+function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.DEFAULTS={interval:5e3,pause:"hover"},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},t.prototype.to=function(t){var n=this,r=this.getActiveIndex();if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid",function(){n.to(t)}):r==t?this.pause().cycle():this.slide(t>r?"next":"prev",e(this.$items[t]))},t.prototype.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(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(this.sliding)return;return this.slide("next")},t.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},t.prototype.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;this.sliding=!0,s&&this.pause(),i=i.length?i:this.$element.find(".item")[u]();var f=e.Event("slide.bs.carousel",{relatedTarget:i[0],direction:o});if(i.hasClass("active"))return;this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")}));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.find(".item").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};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("bs.carousel"),s=e.extend({},t.DEFAULTS,typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("bs.carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(s.interval=!1),i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("bs.carousel").to(o),t.preventDefault()}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);t.carousel(t.data())})})}(window.jQuery),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},t.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var t=e.Event("show.bs.collapse");this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this.dimension(),r=e.camelCase(["scroll",n].join("-")),i=this.$parent&&this.$parent.find("> .accordion-group > .in");if(i&&i.length){var s=i.data("bs.collapse");if(s&&s.transitioning)return;i.collapse("hide"),s||i.data("bs.collapse",null)}this.$element[n](0),this.transition("addClass","shown.bs.collapse"),e.support.transition&&this.$element[n](this.$element[0][r])},t.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var t=e.Event("hide.bs.collapse");this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this.dimension();this.reset(this.$element[n]()),this.transition("removeClass","shown.bs.hidden"),this.$element[n](0)},t.prototype.reset=function(e){var t=this.dimension();return this.$element.removeClass("collapse")[t](e||"auto")[0].offsetWidth,this.$element[e!=null?"addClass":"removeClass"]("collapse"),this},t.prototype.transition=function(t,n){var r=this,i=function(){n=="shown.bs.collapse"&&r.reset(),r.transitioning=0,r.$element.trigger(n)};this.transitioning=1,this.$element[t]("in"),e.support.transition&&this.$element.hasClass("collapse")?this.$element.one(e.support.transition.end,i):i()},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("bs.collapse"),s=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n);i||r.data("bs.collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i),o=s.data("bs.collapse"),u=o?"toggle":n.data(),a=n.attr("data-parent"),f=a&&e(a);if(!o||!o.transitioning)f&&f.find("[data-toggle=collapse][data-parent="+a+"]").not(n).addClass("collapsed"),n[s.hasClass("in")?"addClass":"removeClass"]("collapsed");s.collapse(u)})}(window.jQuery),+function(e){"use strict";function i(){e(t).remove(),e(n).each(function(t){var n=s(e(this));if(!n.hasClass("open"))return;n.trigger(t=e.Event("hide.bs.dropdown"));if(t.isDefaultPrevented())return;n.removeClass("open").trigger("hidden.bs.dropdown")})}function s(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&e(n);return r&&r.length?r:t.parent()}var t=".dropdown-backdrop",n="[data-toggle=dropdown]",r=function(t){var n=e(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(t){var n=e(this);if(n.is(".disabled, :disabled"))return;var r=s(n),o=r.hasClass("open");i();if(!o){"ontouchstart"in document.documentElement&&e('