info@54: /*! info@54: * Bootstrap v3.0.3 (http://getbootstrap.com) info@54: * Copyright 2013 Twitter, Inc. info@54: * Licensed under http://www.apache.org/licenses/LICENSE-2.0 info@54: */ info@54: info@54: if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") } info@54: info@54: /* ======================================================================== info@54: * Bootstrap: transition.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#transitions info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/) info@54: // ============================================================ info@54: info@54: function transitionEnd() { info@54: var el = document.createElement('bootstrap') info@54: info@54: var transEndEventNames = { info@54: 'WebkitTransition' : 'webkitTransitionEnd' info@54: , 'MozTransition' : 'transitionend' info@54: , 'OTransition' : 'oTransitionEnd otransitionend' info@54: , 'transition' : 'transitionend' info@54: } info@54: info@54: for (var name in transEndEventNames) { info@54: if (el.style[name] !== undefined) { info@54: return { end: transEndEventNames[name] } info@54: } info@54: } info@54: } info@54: info@54: // http://blog.alexmaccaw.com/css-transitions info@54: $.fn.emulateTransitionEnd = function (duration) { info@54: var called = false, $el = this info@54: $(this).one($.support.transition.end, function () { called = true }) info@54: var callback = function () { if (!called) $($el).trigger($.support.transition.end) } info@54: setTimeout(callback, duration) info@54: return this info@54: } info@54: info@54: $(function () { info@54: $.support.transition = transitionEnd() info@54: }) info@54: info@54: }(jQuery); info@54: info@54: /* ======================================================================== info@54: * Bootstrap: alert.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#alerts info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // ALERT CLASS DEFINITION info@54: // ====================== info@54: info@54: var dismiss = '[data-dismiss="alert"]' info@54: var Alert = function (el) { info@54: $(el).on('click', dismiss, this.close) info@54: } info@54: info@54: Alert.prototype.close = function (e) { info@54: var $this = $(this) info@54: var selector = $this.attr('data-target') info@54: info@54: if (!selector) { info@54: selector = $this.attr('href') info@54: selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 info@54: } info@54: info@54: var $parent = $(selector) info@54: info@54: if (e) e.preventDefault() info@54: info@54: if (!$parent.length) { info@54: $parent = $this.hasClass('alert') ? $this : $this.parent() info@54: } info@54: info@54: $parent.trigger(e = $.Event('close.bs.alert')) info@54: info@54: if (e.isDefaultPrevented()) return info@54: info@54: $parent.removeClass('in') info@54: info@54: function removeElement() { info@54: $parent.trigger('closed.bs.alert').remove() info@54: } info@54: info@54: $.support.transition && $parent.hasClass('fade') ? info@54: $parent info@54: .one($.support.transition.end, removeElement) info@54: .emulateTransitionEnd(150) : info@54: removeElement() info@54: } info@54: info@54: info@54: // ALERT PLUGIN DEFINITION info@54: // ======================= info@54: info@54: var old = $.fn.alert info@54: info@54: $.fn.alert = function (option) { info@54: return this.each(function () { info@54: var $this = $(this) info@54: var data = $this.data('bs.alert') info@54: info@54: if (!data) $this.data('bs.alert', (data = new Alert(this))) info@54: if (typeof option == 'string') data[option].call($this) info@54: }) info@54: } info@54: info@54: $.fn.alert.Constructor = Alert info@54: info@54: info@54: // ALERT NO CONFLICT info@54: // ================= info@54: info@54: $.fn.alert.noConflict = function () { info@54: $.fn.alert = old info@54: return this info@54: } info@54: info@54: info@54: // ALERT DATA-API info@54: // ============== info@54: info@54: $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close) info@54: info@54: }(jQuery); info@54: info@54: /* ======================================================================== info@54: * Bootstrap: button.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#buttons info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // BUTTON PUBLIC CLASS DEFINITION info@54: // ============================== info@54: info@54: var Button = function (element, options) { info@54: this.$element = $(element) info@54: this.options = $.extend({}, Button.DEFAULTS, options) info@54: } info@54: info@54: Button.DEFAULTS = { info@54: loadingText: 'loading...' info@54: } info@54: info@54: Button.prototype.setState = function (state) { info@54: var d = 'disabled' info@54: var $el = this.$element info@54: var val = $el.is('input') ? 'val' : 'html' info@54: var data = $el.data() info@54: info@54: state = state + 'Text' info@54: info@54: if (!data.resetText) $el.data('resetText', $el[val]()) info@54: info@54: $el[val](data[state] || this.options[state]) info@54: info@54: // push to event loop to allow forms to submit info@54: setTimeout(function () { info@54: state == 'loadingText' ? info@54: $el.addClass(d).attr(d, d) : info@54: $el.removeClass(d).removeAttr(d); info@54: }, 0) info@54: } info@54: info@54: Button.prototype.toggle = function () { info@54: var $parent = this.$element.closest('[data-toggle="buttons"]') info@54: var changed = true info@54: info@54: if ($parent.length) { info@54: var $input = this.$element.find('input') info@54: if ($input.prop('type') === 'radio') { info@54: // see if clicking on current one info@54: if ($input.prop('checked') && this.$element.hasClass('active')) info@54: changed = false info@54: else info@54: $parent.find('.active').removeClass('active') info@54: } info@54: if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change') info@54: } info@54: info@54: if (changed) this.$element.toggleClass('active') info@54: } info@54: info@54: info@54: // BUTTON PLUGIN DEFINITION info@54: // ======================== info@54: info@54: var old = $.fn.button info@54: info@54: $.fn.button = function (option) { info@54: return this.each(function () { info@54: var $this = $(this) info@54: var data = $this.data('bs.button') info@54: var options = typeof option == 'object' && option info@54: info@54: if (!data) $this.data('bs.button', (data = new Button(this, options))) info@54: info@54: if (option == 'toggle') data.toggle() info@54: else if (option) data.setState(option) info@54: }) info@54: } info@54: info@54: $.fn.button.Constructor = Button info@54: info@54: info@54: // BUTTON NO CONFLICT info@54: // ================== info@54: info@54: $.fn.button.noConflict = function () { info@54: $.fn.button = old info@54: return this info@54: } info@54: info@54: info@54: // BUTTON DATA-API info@54: // =============== info@54: info@54: $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { info@54: var $btn = $(e.target) info@54: if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') info@54: $btn.button('toggle') info@54: e.preventDefault() info@54: }) info@54: info@54: }(jQuery); info@54: info@54: /* ======================================================================== info@54: * Bootstrap: carousel.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#carousel info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // CAROUSEL CLASS DEFINITION info@54: // ========================= info@54: info@54: var Carousel = function (element, options) { info@54: this.$element = $(element) info@54: this.$indicators = this.$element.find('.carousel-indicators') info@54: this.options = options info@54: this.paused = info@54: this.sliding = info@54: this.interval = info@54: this.$active = info@54: this.$items = null info@54: info@54: this.options.pause == 'hover' && this.$element info@54: .on('mouseenter', $.proxy(this.pause, this)) info@54: .on('mouseleave', $.proxy(this.cycle, this)) info@54: } info@54: info@54: Carousel.DEFAULTS = { info@54: interval: 5000 info@54: , pause: 'hover' info@54: , wrap: true info@54: } info@54: info@54: Carousel.prototype.cycle = function (e) { info@54: e || (this.paused = false) info@54: info@54: this.interval && clearInterval(this.interval) info@54: info@54: this.options.interval info@54: && !this.paused info@54: && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) info@54: info@54: return this info@54: } info@54: info@54: Carousel.prototype.getActiveIndex = function () { info@54: this.$active = this.$element.find('.item.active') info@54: this.$items = this.$active.parent().children() info@54: info@54: return this.$items.index(this.$active) info@54: } info@54: info@54: Carousel.prototype.to = function (pos) { info@54: var that = this info@54: var activeIndex = this.getActiveIndex() info@54: info@54: if (pos > (this.$items.length - 1) || pos < 0) return info@54: info@54: if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) info@54: if (activeIndex == pos) return this.pause().cycle() info@54: info@54: return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) info@54: } info@54: info@54: Carousel.prototype.pause = function (e) { info@54: e || (this.paused = true) info@54: info@54: if (this.$element.find('.next, .prev').length && $.support.transition.end) { info@54: this.$element.trigger($.support.transition.end) info@54: this.cycle(true) info@54: } info@54: info@54: this.interval = clearInterval(this.interval) info@54: info@54: return this info@54: } info@54: info@54: Carousel.prototype.next = function () { info@54: if (this.sliding) return info@54: return this.slide('next') info@54: } info@54: info@54: Carousel.prototype.prev = function () { info@54: if (this.sliding) return info@54: return this.slide('prev') info@54: } info@54: info@54: Carousel.prototype.slide = function (type, next) { info@54: var $active = this.$element.find('.item.active') info@54: var $next = next || $active[type]() info@54: var isCycling = this.interval info@54: var direction = type == 'next' ? 'left' : 'right' info@54: var fallback = type == 'next' ? 'first' : 'last' info@54: var that = this info@54: info@54: if (!$next.length) { info@54: if (!this.options.wrap) return info@54: $next = this.$element.find('.item')[fallback]() info@54: } info@54: info@54: this.sliding = true info@54: info@54: isCycling && this.pause() info@54: info@54: var e = $.Event('slide.bs.carousel', { relatedTarget: $next[0], direction: direction }) info@54: info@54: if ($next.hasClass('active')) return info@54: info@54: if (this.$indicators.length) { info@54: this.$indicators.find('.active').removeClass('active') info@54: this.$element.one('slid.bs.carousel', function () { info@54: var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()]) info@54: $nextIndicator && $nextIndicator.addClass('active') info@54: }) info@54: } info@54: info@54: if ($.support.transition && this.$element.hasClass('slide')) { info@54: this.$element.trigger(e) info@54: if (e.isDefaultPrevented()) return info@54: $next.addClass(type) info@54: $next[0].offsetWidth // force reflow info@54: $active.addClass(direction) info@54: $next.addClass(direction) info@54: $active info@54: .one($.support.transition.end, function () { info@54: $next.removeClass([type, direction].join(' ')).addClass('active') info@54: $active.removeClass(['active', direction].join(' ')) info@54: that.sliding = false info@54: setTimeout(function () { that.$element.trigger('slid.bs.carousel') }, 0) info@54: }) info@54: .emulateTransitionEnd(600) info@54: } else { info@54: this.$element.trigger(e) info@54: if (e.isDefaultPrevented()) return info@54: $active.removeClass('active') info@54: $next.addClass('active') info@54: this.sliding = false info@54: this.$element.trigger('slid.bs.carousel') info@54: } info@54: info@54: isCycling && this.cycle() info@54: info@54: return this info@54: } info@54: info@54: info@54: // CAROUSEL PLUGIN DEFINITION info@54: // ========================== info@54: info@54: var old = $.fn.carousel info@54: info@54: $.fn.carousel = function (option) { info@54: return this.each(function () { info@54: var $this = $(this) info@54: var data = $this.data('bs.carousel') info@54: var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) info@54: var action = typeof option == 'string' ? option : options.slide info@54: info@54: if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) info@54: if (typeof option == 'number') data.to(option) info@54: else if (action) data[action]() info@54: else if (options.interval) data.pause().cycle() info@54: }) info@54: } info@54: info@54: $.fn.carousel.Constructor = Carousel info@54: info@54: info@54: // CAROUSEL NO CONFLICT info@54: // ==================== info@54: info@54: $.fn.carousel.noConflict = function () { info@54: $.fn.carousel = old info@54: return this info@54: } info@54: info@54: info@54: // CAROUSEL DATA-API info@54: // ================= info@54: info@54: $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { info@54: var $this = $(this), href info@54: var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 info@54: var options = $.extend({}, $target.data(), $this.data()) info@54: var slideIndex = $this.attr('data-slide-to') info@54: if (slideIndex) options.interval = false info@54: info@54: $target.carousel(options) info@54: info@54: if (slideIndex = $this.attr('data-slide-to')) { info@54: $target.data('bs.carousel').to(slideIndex) info@54: } info@54: info@54: e.preventDefault() info@54: }) info@54: info@54: $(window).on('load', function () { info@54: $('[data-ride="carousel"]').each(function () { info@54: var $carousel = $(this) info@54: $carousel.carousel($carousel.data()) info@54: }) info@54: }) info@54: info@54: }(jQuery); info@54: info@54: /* ======================================================================== info@54: * Bootstrap: collapse.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#collapse info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // COLLAPSE PUBLIC CLASS DEFINITION info@54: // ================================ info@54: info@54: var Collapse = function (element, options) { info@54: this.$element = $(element) info@54: this.options = $.extend({}, Collapse.DEFAULTS, options) info@54: this.transitioning = null info@54: info@54: if (this.options.parent) this.$parent = $(this.options.parent) info@54: if (this.options.toggle) this.toggle() info@54: } info@54: info@54: Collapse.DEFAULTS = { info@54: toggle: true info@54: } info@54: info@54: Collapse.prototype.dimension = function () { info@54: var hasWidth = this.$element.hasClass('width') info@54: return hasWidth ? 'width' : 'height' info@54: } info@54: info@54: Collapse.prototype.show = function () { info@54: if (this.transitioning || this.$element.hasClass('in')) return info@54: info@54: var startEvent = $.Event('show.bs.collapse') info@54: this.$element.trigger(startEvent) info@54: if (startEvent.isDefaultPrevented()) return info@54: info@54: var actives = this.$parent && this.$parent.find('> .panel > .in') info@54: info@54: if (actives && actives.length) { info@54: var hasData = actives.data('bs.collapse') info@54: if (hasData && hasData.transitioning) return info@54: actives.collapse('hide') info@54: hasData || actives.data('bs.collapse', null) info@54: } info@54: info@54: var dimension = this.dimension() info@54: info@54: this.$element info@54: .removeClass('collapse') info@54: .addClass('collapsing') info@54: [dimension](0) info@54: info@54: this.transitioning = 1 info@54: info@54: var complete = function () { info@54: this.$element info@54: .removeClass('collapsing') info@54: .addClass('in') info@54: [dimension]('auto') info@54: this.transitioning = 0 info@54: this.$element.trigger('shown.bs.collapse') info@54: } info@54: info@54: if (!$.support.transition) return complete.call(this) info@54: info@54: var scrollSize = $.camelCase(['scroll', dimension].join('-')) info@54: info@54: this.$element info@54: .one($.support.transition.end, $.proxy(complete, this)) info@54: .emulateTransitionEnd(350) info@54: [dimension](this.$element[0][scrollSize]) info@54: } info@54: info@54: Collapse.prototype.hide = function () { info@54: if (this.transitioning || !this.$element.hasClass('in')) return info@54: info@54: var startEvent = $.Event('hide.bs.collapse') info@54: this.$element.trigger(startEvent) info@54: if (startEvent.isDefaultPrevented()) return info@54: info@54: var dimension = this.dimension() info@54: info@54: this.$element info@54: [dimension](this.$element[dimension]()) info@54: [0].offsetHeight info@54: info@54: this.$element info@54: .addClass('collapsing') info@54: .removeClass('collapse') info@54: .removeClass('in') info@54: info@54: this.transitioning = 1 info@54: info@54: var complete = function () { info@54: this.transitioning = 0 info@54: this.$element info@54: .trigger('hidden.bs.collapse') info@54: .removeClass('collapsing') info@54: .addClass('collapse') info@54: } info@54: info@54: if (!$.support.transition) return complete.call(this) info@54: info@54: this.$element info@54: [dimension](0) info@54: .one($.support.transition.end, $.proxy(complete, this)) info@54: .emulateTransitionEnd(350) info@54: } info@54: info@54: Collapse.prototype.toggle = function () { info@54: this[this.$element.hasClass('in') ? 'hide' : 'show']() info@54: } info@54: info@54: info@54: // COLLAPSE PLUGIN DEFINITION info@54: // ========================== info@54: info@54: var old = $.fn.collapse info@54: info@54: $.fn.collapse = function (option) { info@54: return this.each(function () { info@54: var $this = $(this) info@54: var data = $this.data('bs.collapse') info@54: var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) info@54: info@54: if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) info@54: if (typeof option == 'string') data[option]() info@54: }) info@54: } info@54: info@54: $.fn.collapse.Constructor = Collapse info@54: info@54: info@54: // COLLAPSE NO CONFLICT info@54: // ==================== info@54: info@54: $.fn.collapse.noConflict = function () { info@54: $.fn.collapse = old info@54: return this info@54: } info@54: info@54: info@54: // COLLAPSE DATA-API info@54: // ================= info@54: info@54: $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) { info@54: var $this = $(this), href info@54: var target = $this.attr('data-target') info@54: || e.preventDefault() info@54: || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 info@54: var $target = $(target) info@54: var data = $target.data('bs.collapse') info@54: var option = data ? 'toggle' : $this.data() info@54: var parent = $this.attr('data-parent') info@54: var $parent = parent && $(parent) info@54: info@54: if (!data || !data.transitioning) { info@54: if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addClass('collapsed') info@54: $this[$target.hasClass('in') ? 'addClass' : 'removeClass']('collapsed') info@54: } info@54: info@54: $target.collapse(option) info@54: }) info@54: info@54: }(jQuery); info@54: info@54: /* ======================================================================== info@54: * Bootstrap: dropdown.js v3.0.3 info@54: * http://getbootstrap.com/javascript/#dropdowns info@54: * ======================================================================== info@54: * Copyright 2013 Twitter, Inc. info@54: * info@54: * Licensed under the Apache License, Version 2.0 (the "License"); info@54: * you may not use this file except in compliance with the License. info@54: * You may obtain a copy of the License at info@54: * info@54: * http://www.apache.org/licenses/LICENSE-2.0 info@54: * info@54: * Unless required by applicable law or agreed to in writing, software info@54: * distributed under the License is distributed on an "AS IS" BASIS, info@54: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. info@54: * See the License for the specific language governing permissions and info@54: * limitations under the License. info@54: * ======================================================================== */ info@54: info@54: info@54: +function ($) { "use strict"; info@54: info@54: // DROPDOWN CLASS DEFINITION info@54: // ========================= info@54: info@54: var backdrop = '.dropdown-backdrop' info@54: var toggle = '[data-toggle=dropdown]' info@54: var Dropdown = function (element) { info@54: $(element).on('click.bs.dropdown', this.toggle) info@54: } info@54: info@54: Dropdown.prototype.toggle = function (e) { info@54: var $this = $(this) info@54: info@54: if ($this.is('.disabled, :disabled')) return info@54: info@54: var $parent = getParent($this) info@54: var isActive = $parent.hasClass('open') info@54: info@54: clearMenus() info@54: info@54: if (!isActive) { info@54: if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { info@54: // if mobile we use a backdrop because click events don't delegate info@54: $('