/*! * bootstrap v3.0.1 by @fat and @mdo * copyright 2013 twitter, inc. * licensed under http://www.apache.org/licenses/license-2.0 * * designed and built with all the love in the world by @mdo and @fat. */ if (typeof jquery === "undefined") { throw new error("bootstrap requires jquery") } /* ======================================================================== * bootstrap: transition.js v3.0.0 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * copyright 2013 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 ($) { "use strict"; // css transition support (shoutout: http://www.modernizr.com/) // ============================================================ function transitionend() { var el = document.createelement('bootstrap') var transendeventnames = { 'webkittransition' : 'webkittransitionend' , 'moztransition' : 'transitionend' , 'otransition' : 'otransitionend otransitionend' , 'transition' : 'transitionend' } for (var name in transendeventnames) { if (el.style[name] !== undefined) { return { end: transendeventnames[name] } } } } // http://blog.alexmaccaw.com/css-transitions $.fn.emulatetransitionend = function (duration) { var called = false, $el = this $(this).one($.support.transition.end, function () { called = true }) var callback = function () { if (!called) $($el).trigger($.support.transition.end) } settimeout(callback, duration) return this } $(function () { $.support.transition = transitionend() }) }(window.jquery); /* ======================================================================== * bootstrap: alert.js v3.0.0 * http://getbootstrap.com/javascript/#alerts * ======================================================================== * copyright 2013 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 ($) { "use strict"; // alert class definition // ====================== var dismiss = '[data-dismiss="alert"]' var alert = function (el) { $(el).on('click', dismiss, this.close) } alert.prototype.close = function (e) { var $this = $(this) var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 } var $parent = $(selector) if (e) e.preventdefault() if (!$parent.length) { $parent = $this.hasclass('alert') ? $this : $this.parent() } $parent.trigger(e = $.event('close.bs.alert')) if (e.isdefaultprevented()) return $parent.removeclass('in') function removeelement() { $parent.trigger('closed.bs.alert').remove() } $.support.transition && $parent.hasclass('fade') ? $parent .one($.support.transition.end, removeelement) .emulatetransitionend(150) : removeelement() } // alert plugin definition // ======================= var old = $.fn.alert $.fn.alert = function (option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.alert') if (!data) $this.data('bs.alert', (data = new alert(this))) if (typeof option == 'string') data[option].call($this) }) } $.fn.alert.constructor = alert // alert no conflict // ================= $.fn.alert.noconflict = function () { $.fn.alert = old return this } // alert data-api // ============== $(document).on('click.bs.alert.data-api', dismiss, alert.prototype.close) }(window.jquery); /* ======================================================================== * bootstrap: button.js v3.0.0 * http://getbootstrap.com/javascript/#buttons * ======================================================================== * copyright 2013 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 ($) { "use strict"; // button public class definition // ============================== var button = function (element, options) { this.$element = $(element) this.options = $.extend({}, button.defaults, options) } button.defaults = { loadingtext: 'loading...' } button.prototype.setstate = function (state) { var d = 'disabled' var $el = this.$element var val = $el.is('input') ? 'val' : 'html' var data = $el.data() state = state + 'text' if (!data.resettext) $el.data('resettext', $el[val]()) $el[val](data[state] || this.options[state]) // push to event loop to allow forms to submit settimeout(function () { state == 'loadingtext' ? $el.addclass(d).attr(d, d) : $el.removeclass(d).removeattr(d); }, 0) } button.prototype.toggle = function () { var $parent = this.$element.closest('[data-toggle="buttons"]') if ($parent.length) { var $input = this.$element.find('input') .prop('checked', !this.$element.hasclass('active')) .trigger('change') if ($input.prop('type') === 'radio') $parent.find('.active').removeclass('active') } this.$element.toggleclass('active') } // button plugin definition // ======================== var old = $.fn.button $.fn.button = function (option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.button') var options = typeof option == 'object' && option if (!data) $this.data('bs.button', (data = new button(this, options))) if (option == 'toggle') data.toggle() else if (option) data.setstate(option) }) } $.fn.button.constructor = button // button no conflict // ================== $.fn.button.noconflict = function () { $.fn.button = old return this } // button data-api // =============== $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { var $btn = $(e.target) if (!$btn.hasclass('btn')) $btn = $btn.closest('.btn') $btn.button('toggle') e.preventdefault() }) }(window.jquery); /* ======================================================================== * bootstrap: carousel.js v3.0.0 * http://getbootstrap.com/javascript/#carousel * ======================================================================== * copyright 2013 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 ($) { "use strict"; // carousel class definition // ========================= var carousel = function (element, options) { this.$element = $(element) this.$indicators = this.$element.find('.carousel-indicators') this.options = options this.paused = this.sliding = this.interval = this.$active = this.$items = null this.options.pause == 'hover' && this.$element .on('mouseenter', $.proxy(this.pause, this)) .on('mouseleave', $.proxy(this.cycle, this)) } carousel.defaults = { interval: 5000 , pause: 'hover' , wrap: true } carousel.prototype.cycle = function (e) { e || (this.paused = false) this.interval && clearinterval(this.interval) this.options.interval && !this.paused && (this.interval = setinterval($.proxy(this.next, this), this.options.interval)) return this } carousel.prototype.getactiveindex = function () { this.$active = this.$element.find('.item.active') this.$items = this.$active.parent().children() return this.$items.index(this.$active) } carousel.prototype.to = function (pos) { var that = this var activeindex = this.getactiveindex() if (pos > (this.$items.length - 1) || pos < 0) return if (this.sliding) return this.$element.one('slid', function () { that.to(pos) }) if (activeindex == pos) return this.pause().cycle() return this.slide(pos > activeindex ? 'next' : 'prev', $(this.$items[pos])) } carousel.prototype.pause = function (e) { e || (this.paused = true) if (this.$element.find('.next, .prev').length && $.support.transition.end) { this.$element.trigger($.support.transition.end) this.cycle(true) } this.interval = clearinterval(this.interval) return this } carousel.prototype.next = function () { if (this.sliding) return return this.slide('next') } carousel.prototype.prev = function () { if (this.sliding) return return this.slide('prev') } carousel.prototype.slide = function (type, next) { var $active = this.$element.find('.item.active') var $next = next || $active[type]() var iscycling = this.interval var direction = type == 'next' ? 'left' : 'right' var fallback = type == 'next' ? 'first' : 'last' var that = this if (!$next.length) { if (!this.options.wrap) return $next = this.$element.find('.item')[fallback]() } this.sliding = true iscycling && this.pause() var e = $.event('slide.bs.carousel', { relatedtarget: $next[0], direction: direction }) if ($next.hasclass('active')) return if (this.$indicators.length) { this.$indicators.find('.active').removeclass('active') this.$element.one('slid', function () { var $nextindicator = $(that.$indicators.children()[that.getactiveindex()]) $nextindicator && $nextindicator.addclass('active') }) } if ($.support.transition && this.$element.hasclass('slide')) { this.$element.trigger(e) if (e.isdefaultprevented()) return $next.addclass(type) $next[0].offsetwidth // force reflow $active.addclass(direction) $next.addclass(direction) $active .one($.support.transition.end, function () { $next.removeclass([type, direction].join(' ')).addclass('active') $active.removeclass(['active', direction].join(' ')) that.sliding = false settimeout(function () { that.$element.trigger('slid') }, 0) }) .emulatetransitionend(600) } else { this.$element.trigger(e) if (e.isdefaultprevented()) return $active.removeclass('active') $next.addclass('active') this.sliding = false this.$element.trigger('slid') } iscycling && this.cycle() return this } // carousel plugin definition // ========================== var old = $.fn.carousel $.fn.carousel = function (option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.carousel') var options = $.extend({}, carousel.defaults, $this.data(), typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide if (!data) $this.data('bs.carousel', (data = new carousel(this, options))) if (typeof option == 'number') data.to(option) else if (action) data[action]() else if (options.interval) data.pause().cycle() }) } $.fn.carousel.constructor = carousel // carousel no conflict // ==================== $.fn.carousel.noconflict = function () { $.fn.carousel = old return this } // carousel data-api // ================= $(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) { var $this = $(this), href var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 var options = $.extend({}, $target.data(), $this.data()) var slideindex = $this.attr('data-slide-to') if (slideindex) options.interval = false $target.carousel(options) if (slideindex = $this.attr('data-slide-to')) { $target.data('bs.carousel').to(slideindex) } e.preventdefault() }) $(window).on('load', function () { $('[data-ride="carousel"]').each(function () { var $carousel = $(this) $carousel.carousel($carousel.data()) }) }) }(window.jquery); /* ======================================================================== * bootstrap: collapse.js v3.0.0 * http://getbootstrap.com/javascript/#collapse * ======================================================================== * copyright 2013 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 ($) { "use strict"; // collapse public class definition // ================================ var collapse = function (element, options) { this.$element = $(element) this.options = $.extend({}, collapse.defaults, options) this.transitioning = null if (this.options.parent) this.$parent = $(this.options.parent) if (this.options.toggle) this.toggle() } collapse.defaults = { toggle: true } collapse.prototype.dimension = function () { var haswidth = this.$element.hasclass('width') return haswidth ? 'width' : 'height' } collapse.prototype.show = function () { if (this.transitioning || this.$element.hasclass('in')) return var startevent = $.event('show.bs.collapse') this.$element.trigger(startevent) if (startevent.isdefaultprevented()) return var actives = this.$parent && this.$parent.find('> .panel > .in') if (actives && actives.length) { var hasdata = actives.data('bs.collapse') if (hasdata && hasdata.transitioning) return actives.collapse('hide') hasdata || actives.data('bs.collapse', null) } var dimension = this.dimension() this.$element .removeclass('collapse') .addclass('collapsing') [dimension](0) this.transitioning = 1 var complete = function () { this.$element .removeclass('collapsing') .addclass('in') [dimension]('auto') this.transitioning = 0 this.$element.trigger('shown.bs.collapse') } if (!$.support.transition) return complete.call(this) var scrollsize = $.camelcase(['scroll', dimension].join('-')) this.$element .one($.support.transition.end, $.proxy(complete, this)) .emulatetransitionend(350) [dimension](this.$element[0][scrollsize]) } collapse.prototype.hide = function () { if (this.transitioning || !this.$element.hasclass('in')) return var startevent = $.event('hide.bs.collapse') this.$element.trigger(startevent) if (startevent.isdefaultprevented()) return var dimension = this.dimension() this.$element [dimension](this.$element[dimension]()) [0].offsetheight this.$element .addclass('collapsing') .removeclass('collapse') .removeclass('in') this.transitioning = 1 var complete = function () { this.transitioning = 0 this.$element .trigger('hidden.bs.collapse') .removeclass('collapsing') .addclass('collapse') } if (!$.support.transition) return complete.call(this) this.$element [dimension](0) .one($.support.transition.end, $.proxy(complete, this)) .emulatetransitionend(350) } collapse.prototype.toggle = function () { this[this.$element.hasclass('in') ? 'hide' : 'show']() } // collapse plugin definition // ========================== var old = $.fn.collapse $.fn.collapse = function (option) { return this.each(function () { var $this = $(this) var data = $this.data('bs.collapse') var options = $.extend({}, collapse.defaults, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.collapse', (data = new collapse(this, options))) if (typeof option == 'string') data[option]() }) } $.fn.collapse.constructor = collapse // collapse no conflict // ==================== $.fn.collapse.noconflict = function () { $.fn.collapse = old return this } // collapse data-api // ================= $(document).on('click.bs.collapse.data-api', '[data-toggle=collapse]', function (e) { var $this = $(this), href var target = $this.attr('data-target') || e.preventdefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 var $target = $(target) var data = $target.data('bs.collapse') var option = data ? 'toggle' : $this.data() var parent = $this.attr('data-parent') var $parent = parent && $(parent) if (!data || !data.transitioning) { if ($parent) $parent.find('[data-toggle=collapse][data-parent="' + parent + '"]').not($this).addclass('collapsed') $this[$target.hasclass('in') ? 'addclass' : 'removeclass']('collapsed') } $target.collapse(option) }) }(window.jquery); /* ======================================================================== * bootstrap: dropdown.js v3.0.0 * http://getbootstrap.com/javascript/#dropdowns * ======================================================================== * copyright 2013 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 ($) { "use strict"; // dropdown class definition // ========================= var backdrop = '.dropdown-backdrop' var toggle = '[data-toggle=dropdown]' var dropdown = function (element) { var $el = $(element).on('click.bs.dropdown', this.toggle) } dropdown.prototype.toggle = function (e) { var $this = $(this) if ($this.is('.disabled, :disabled')) return var $parent = getparent($this) var isactive = $parent.hasclass('open') clearmenus() if (!isactive) { if ('ontouchstart' in document.documentelement && !$parent.closest('.navbar-nav').length) { // if mobile we we use a backdrop because click events don't delegate $('
').insertafter($(this)).on('click', clearmenus) } $parent.trigger(e = $.event('show.bs.dropdown')) if (e.isdefaultprevented()) return $parent .toggleclass('open') .trigger('shown.bs.dropdown') $this.focus() } return false } dropdown.prototype.keydown = function (e) { if (!/(38|40|27)/.test(e.keycode)) return var $this = $(this) e.preventdefault() e.stoppropagation() if ($this.is('.disabled, :disabled')) return var $parent = getparent($this) var isactive = $parent.hasclass('open') if (!isactive || (isactive && e.keycode == 27)) { if (e.which == 27) $parent.find(toggle).focus() return $this.click() } var $items = $('[role=menu] li:not(.divider):visible a', $parent) if (!$items.length) return var index = $items.index($items.filter(':focus')) if (e.keycode == 38 && index > 0) index-- // up if (e.keycode == 40 && index < $items.length - 1) index++ // down if (!~index) index=0 $items.eq(index).focus() } function clearmenus() { $(backdrop).remove() $(toggle).each(function (e) { var $parent = getparent($(this)) if (!$parent.hasclass('open')) return $parent.trigger(e = $.event('hide.bs.dropdown')) if (e.isdefaultprevented()) return $parent.removeclass('open').trigger('hidden.bs.dropdown') }) } function getparent($this) { var selector = $this.attr('data-target') if (!selector) { selector = $this.attr('href') selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 } var $parent = selector && $(selector) return $parent && $parent.length ? $parent : $this.parent() } // dropdown plugin definition // ========================== var old = $.fn.dropdown $.fn.dropdown = function (option) { return this.each(function () { var $this = $(this) var data = $this.data('dropdown') if (!data) $this.data('dropdown', (data = new dropdown(this))) if (typeof option == 'string') data[option].call($this) }) } $.fn.dropdown.constructor = dropdown // dropdown no conflict // ==================== $.fn.dropdown.noconflict = function () { $.fn.dropdown = old return this } // apply to standard dropdown elements // =================================== $(document) .on('click.bs.dropdown.data-api', clearmenus) .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stoppropagation() }) .on('click.bs.dropdown.data-api' , toggle, dropdown.prototype.toggle) .on('keydown.bs.dropdown.data-api', toggle + ', [role=menu]' , dropdown.prototype.keydown) }(window.jquery); /* ======================================================================== * bootstrap: modal.js v3.0.0 * http://getbootstrap.com/javascript/#modals * ======================================================================== * copyright 2013 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 ($) { "use strict"; // modal class definition // ====================== var modal = function (element, options) { this.options = options this.$element = $(element) this.$backdrop = this.isshown = null if (this.options.remote) this.$element.load(this.options.remote) } modal.defaults = { backdrop: true , keyboard: true , show: true } modal.prototype.toggle = function (_relatedtarget) { return this[!this.isshown ? 'show' : 'hide'](_relatedtarget) } modal.prototype.show = function (_relatedtarget) { var that = this var e = $.event('show.bs.modal', { relatedtarget: _relatedtarget }) this.$element.trigger(e) if (this.isshown || e.isdefaultprevented()) return this.isshown = true this.escape() this.$element.on('click.dismiss.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this)) this.backdrop(function () { var transition = $.support.transition && that.$element.hasclass('fade') if (!that.$element.parent().length) { that.$element.appendto(document.body) // don't move modals dom position } that.$element.show() if (transition) { that.$element[0].offsetwidth // force reflow } that.$element .addclass('in') .attr('aria-hidden', false) that.enforcefocus() var e = $.event('shown.bs.modal', { relatedtarget: _relatedtarget }) transition ? that.$element.find('.modal-dialog') // wait for modal to slide in .one($.support.transition.end, function () { that.$element.focus().trigger(e) }) .emulatetransitionend(300) : that.$element.focus().trigger(e) }) } modal.prototype.hide = function (e) { if (e) e.preventdefault() e = $.event('hide.bs.modal') this.$element.trigger(e) if (!this.isshown || e.isdefaultprevented()) return this.isshown = false this.escape() $(document).off('focusin.bs.modal') this.$element .removeclass('in') .attr('aria-hidden', true) .off('click.dismiss.modal') $.support.transition && this.$element.hasclass('fade') ? this.$element .one($.support.transition.end, $.proxy(this.hidemodal, this)) .emulatetransitionend(300) : this.hidemodal() } modal.prototype.enforcefocus = function () { $(document) .off('focusin.bs.modal') // guard against infinite focus loop .on('focusin.bs.modal', $.proxy(function (e) { if (this.$element[0] !== e.target && !this.$element.has(e.target).length) { this.$element.focus() } }, this)) } modal.prototype.escape = function () { if (this.isshown && this.options.keyboard) { this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) { e.which == 27 && this.hide() }, this)) } else if (!this.isshown) { this.$element.off('keyup.dismiss.bs.modal') } } modal.prototype.hidemodal = function () { var that = this this.$element.hide() this.backdrop(function () { that.removebackdrop() that.$element.trigger('hidden.bs.modal') }) } modal.prototype.removebackdrop = function () { this.$backdrop && this.$backdrop.remove() this.$backdrop = null } modal.prototype.backdrop = function (callback) { var that = this var animate = this.$element.hasclass('fade') ? 'fade' : '' if (this.isshown && this.options.backdrop) { var doanimate = $.support.transition && animate this.$backdrop = $('') .appendto(document.body) this.$element.on('click.dismiss.modal', $.proxy(function (e) { if (e.target !== e.currenttarget) return this.options.backdrop == 'static' ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this) }, this)) if (doanimate) this.$backdrop[0].offsetwidth // force reflow this.$backdrop.addclass('in') if (!callback) return doanimate ? this.$backdrop .one($.support.transition.end, callback) .emulatetransitionend(150) : callback() } else if (!this.isshown && this.$backdrop) { this.$backdrop.removeclass('in') $.support.transition && this.$element.hasclass('fade')? this.$backdrop .one($.support.transition.end, callback) .emulatetransitionend(150) : callback() } else if (callback) { callback() } } // modal plugin definition // ======================= var old = $.fn.modal $.fn.modal = function (option, _relatedtarget) { return this.each(function () { var $this = $(this) var data = $this.data('bs.modal') var options = $.extend({}, modal.defaults, $this.data(), typeof option == 'object' && option) if (!data) $this.data('bs.modal', (data = new modal(this, options))) if (typeof option == 'string') data[option](_relatedtarget) else if (options.show) data.show(_relatedtarget) }) } $.fn.modal.constructor = modal // modal no conflict // ================= $.fn.modal.noconflict = function () { $.fn.modal = old return this } // modal data-api // ============== $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) { var $this = $(this) var href = $this.attr('href') var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7 var option = $target.data('modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data()) e.preventdefault() $target .modal(option, this) .one('hide', function () { $this.is(':visible') && $this.focus() }) }) $(document) .on('show.bs.modal', '.modal', function () { $(document.body).addclass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $(document.body).removeclass('modal-open') }) }(window.jquery); /* ======================================================================== * bootstrap: tooltip.js v3.0.0 * http://getbootstrap.com/javascript/#tooltip * inspired by the original jquery.tipsy by jason frame * ======================================================================== * copyright 2013 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 ($) { "use strict"; // tooltip public class definition // =============================== var tooltip = function (element, options) { this.type = this.options = this.enabled = this.timeout = this.hoverstate = this.$element = null this.init('tooltip', element, options) } tooltip.defaults = { animation: true , placement: 'top' , selector: false , template: '