aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Back/jinwei.me/mobile/js/bootstrap.min.js')
-rw-r--r--Back/jinwei.me/mobile/js/bootstrap.min.js759
1 files changed, 759 insertions, 0 deletions
diff --git a/Back/jinwei.me/mobile/js/bootstrap.min.js b/Back/jinwei.me/mobile/js/bootstrap.min.js
new file mode 100644
index 0000000..42eb86f
--- /dev/null
+++ b/Back/jinwei.me/mobile/js/bootstrap.min.js
@@ -0,0 +1,759 @@
1/*!
2 * Bootstrap v3.1.1 (http://getbootstrap.com)
3 * Copyright 2011-2014 Twitter, Inc.
4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5 */
6if ("undefined" == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); + function(a) {
7 "use strict";
8
9 function b() {
10 var a = document.createElement("bootstrap"),
11 b = {
12 WebkitTransition: "webkitTransitionEnd",
13 MozTransition: "transitionend",
14 OTransition: "oTransitionEnd otransitionend",
15 transition: "transitionend"
16 };
17 for (var c in b)
18 if (void 0 !== a.style[c]) return {
19 end: b[c]
20 };
21 return !1
22 }
23 a.fn.emulateTransitionEnd = function(b) {
24 var c = !1,
25 d = this;
26 a(this).one(a.support.transition.end, function() {
27 c = !0
28 });
29 var e = function() {
30 c || a(d).trigger(a.support.transition.end)
31 };
32 return setTimeout(e, b), this
33 }, a(function() {
34 a.support.transition = b()
35 })
36}(jQuery), + function(a) {
37 "use strict";
38 var b = '[data-dismiss="alert"]',
39 c = function(c) {
40 a(c).on("click", b, this.close)
41 };
42 c.prototype.close = function(b) {
43 function c() {
44 f.trigger("closed.bs.alert").remove()
45 }
46 var d = a(this),
47 e = d.attr("data-target");
48 e || (e = d.attr("href"), e = e && e.replace(/.*(?=#[^\s]*$)/, ""));
49 var f = a(e);
50 b && b.preventDefault(), f.length || (f = d.hasClass("alert") ? d : d.parent()), f.trigger(b = a.Event("close.bs.alert")), b.isDefaultPrevented() || (f.removeClass("in"), a.support.transition && f.hasClass("fade") ? f.one(a.support.transition.end, c).emulateTransitionEnd(150) : c())
51 };
52 var d = a.fn.alert;
53 a.fn.alert = function(b) {
54 return this.each(function() {
55 var d = a(this),
56 e = d.data("bs.alert");
57 e || d.data("bs.alert", e = new c(this)), "string" == typeof b && e[b].call(d)
58 })
59 }, a.fn.alert.Constructor = c, a.fn.alert.noConflict = function() {
60 return a.fn.alert = d, this
61 }, a(document).on("click.bs.alert.data-api", b, c.prototype.close)
62}(jQuery), + function(a) {
63 "use strict";
64 var b = function(c, d) {
65 this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d), this.isLoading = !1
66 };
67 b.DEFAULTS = {
68 loadingText: "loading..."
69 }, b.prototype.setState = function(b) {
70 var c = "disabled",
71 d = this.$element,
72 e = d.is("input") ? "val" : "html",
73 f = d.data();
74 b += "Text", f.resetText || d.data("resetText", d[e]()), d[e](f[b] || this.options[b]), setTimeout(a.proxy(function() {
75 "loadingText" == b ? (this.isLoading = !0, d.addClass(c).attr(c, c)) : this.isLoading && (this.isLoading = !1, d.removeClass(c).removeAttr(c))
76 }, this), 0)
77 }, b.prototype.toggle = function() {
78 var a = !0,
79 b = this.$element.closest('[data-toggle="buttons"]');
80 if (b.length) {
81 var c = this.$element.find("input");
82 "radio" == c.prop("type") && (c.prop("checked") && this.$element.hasClass("active") ? a = !1 : b.find(".active").removeClass("active")), a && c.prop("checked", !this.$element.hasClass("active")).trigger("change")
83 }
84 a && this.$element.toggleClass("active")
85 };
86 var c = a.fn.button;
87 a.fn.button = function(c) {
88 return this.each(function() {
89 var d = a(this),
90 e = d.data("bs.button"),
91 f = "object" == typeof c && c;
92 e || d.data("bs.button", e = new b(this, f)), "toggle" == c ? e.toggle() : c && e.setState(c)
93 })
94 }, a.fn.button.Constructor = b, a.fn.button.noConflict = function() {
95 return a.fn.button = c, this
96 }, a(document).on("click.bs.button.data-api", "[data-toggle^=button]", function(b) {
97 var c = a(b.target);
98 c.hasClass("btn") || (c = c.closest(".btn")), c.button("toggle"), b.preventDefault()
99 })
100}(jQuery), + function(a) {
101 "use strict";
102 var b = function(b, c) {
103 this.$element = a(b), this.$indicators = this.$element.find(".carousel-indicators"), this.options = c, this.paused = this.sliding = this.interval = this.$active = this.$items = null, "hover" == this.options.pause && this.$element.on("mouseenter", a.proxy(this.pause, this)).on("mouseleave", a.proxy(this.cycle, this))
104 };
105 b.DEFAULTS = {
106 interval: 5e3,
107 pause: "hover",
108 wrap: !0
109 }, b.prototype.cycle = function(b) {
110 return b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(a.proxy(this.next, this), this.options.interval)), this
111 }, b.prototype.getActiveIndex = function() {
112 return this.$active = this.$element.find(".item.active"), this.$items = this.$active.parent().children(), this.$items.index(this.$active)
113 }, b.prototype.to = function(b) {
114 var c = this,
115 d = this.getActiveIndex();
116 return b > this.$items.length - 1 || 0 > b ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function() {
117 c.to(b)
118 }) : d == b ? this.pause().cycle() : this.slide(b > d ? "next" : "prev", a(this.$items[b]))
119 }, b.prototype.pause = function(b) {
120 return b || (this.paused = !0), this.$element.find(".next, .prev").length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
121 }, b.prototype.next = function() {
122 return this.sliding ? void 0 : this.slide("next")
123 }, b.prototype.prev = function() {
124 return this.sliding ? void 0 : this.slide("prev")
125 }, b.prototype.slide = function(b, c) {
126 var d = this.$element.find(".item.active"),
127 e = c || d[b](),
128 f = this.interval,
129 g = "next" == b ? "left" : "right",
130 h = "next" == b ? "first" : "last",
131 i = this;
132 if (!e.length) {
133 if (!this.options.wrap) return;
134 e = this.$element.find(".item")[h]()
135 }
136 if (e.hasClass("active")) return this.sliding = !1;
137 var j = a.Event("slide.bs.carousel", {
138 relatedTarget: e[0],
139 direction: g
140 });
141 return this.$element.trigger(j), j.isDefaultPrevented() ? void 0 : (this.sliding = !0, f && this.pause(), this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), this.$element.one("slid.bs.carousel", function() {
142 var b = a(i.$indicators.children()[i.getActiveIndex()]);
143 b && b.addClass("active")
144 })), a.support.transition && this.$element.hasClass("slide") ? (e.addClass(b), e[0].offsetWidth, d.addClass(g), e.addClass(g), d.one(a.support.transition.end, function() {
145 e.removeClass([b, g].join(" ")).addClass("active"), d.removeClass(["active", g].join(" ")), i.sliding = !1, setTimeout(function() {
146 i.$element.trigger("slid.bs.carousel")
147 }, 0)
148 }).emulateTransitionEnd(1e3 * d.css("transition-duration").slice(0, -1))) : (d.removeClass("active"), e.addClass("active"), this.sliding = !1, this.$element.trigger("slid.bs.carousel")), f && this.cycle(), this)
149 };
150 var c = a.fn.carousel;
151 a.fn.carousel = function(c) {
152 return this.each(function() {
153 var d = a(this),
154 e = d.data("bs.carousel"),
155 f = a.extend({}, b.DEFAULTS, d.data(), "object" == typeof c && c),
156 g = "string" == typeof c ? c : f.slide;
157 e || d.data("bs.carousel", e = new b(this, f)), "number" == typeof c ? e.to(c) : g ? e[g]() : f.interval && e.pause().cycle()
158 })
159 }, a.fn.carousel.Constructor = b, a.fn.carousel.noConflict = function() {
160 return a.fn.carousel = c, this
161 }, a(document).on("click.bs.carousel.data-api", "[data-slide], [data-slide-to]", function(b) {
162 var c, d = a(this),
163 e = a(d.attr("data-target") || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, "")),
164 f = a.extend({}, e.data(), d.data()),
165 g = d.attr("data-slide-to");
166 g && (f.interval = !1), e.carousel(f), (g = d.attr("data-slide-to")) && e.data("bs.carousel").to(g), b.preventDefault()
167 }), a(window).on("load", function() {
168 a('[data-ride="carousel"]').each(function() {
169 var b = a(this);
170 b.carousel(b.data())
171 })
172 })
173}(jQuery), + function(a) {
174 "use strict";
175 var b = function(c, d) {
176 this.$element = a(c), this.options = a.extend({}, b.DEFAULTS, d), this.transitioning = null, this.options.parent && (this.$parent = a(this.options.parent)), this.options.toggle && this.toggle()
177 };
178 b.DEFAULTS = {
179 toggle: !0
180 }, b.prototype.dimension = function() {
181 var a = this.$element.hasClass("width");
182 return a ? "width" : "height"
183 }, b.prototype.show = function() {
184 if (!this.transitioning && !this.$element.hasClass("in")) {
185 var b = a.Event("show.bs.collapse");
186 if (this.$element.trigger(b), !b.isDefaultPrevented()) {
187 var c = this.$parent && this.$parent.find("> .panel > .in");
188 if (c && c.length) {
189 var d = c.data("bs.collapse");
190 if (d && d.transitioning) return;
191 c.collapse("hide"), d || c.data("bs.collapse", null)
192 }
193 var e = this.dimension();
194 this.$element.removeClass("collapse").addClass("collapsing")[e](0), this.transitioning = 1;
195 var f = function() {
196 this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
197 };
198 if (!a.support.transition) return f.call(this);
199 var g = a.camelCase(["scroll", e].join("-"));
200 this.$element.one(a.support.transition.end, a.proxy(f, this)).emulateTransitionEnd(350)[e](this.$element[0][g])
201 }
202 }
203 }, b.prototype.hide = function() {
204 if (!this.transitioning && this.$element.hasClass("in")) {
205 var b = a.Event("hide.bs.collapse");
206 if (this.$element.trigger(b), !b.isDefaultPrevented()) {
207 var c = this.dimension();
208 this.$element[c](this.$element[c]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"), this.transitioning = 1;
209 var d = function() {
210 this.transitioning = 0, this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")
211 };
212 return a.support.transition ? void this.$element[c](0).one(a.support.transition.end, a.proxy(d, this)).emulateTransitionEnd(350) : d.call(this)
213 }
214 }
215 }, b.prototype.toggle = function() {
216 this[this.$element.hasClass("in") ? "hide" : "show"]()
217 };
218 var c = a.fn.collapse;
219 a.fn.collapse = function(c) {
220 return this.each(function() {
221 var d = a(this),
222 e = d.data("bs.collapse"),
223 f = a.extend({}, b.DEFAULTS, d.data(), "object" == typeof c && c);
224 !e && f.toggle && "show" == c && (c = !c), e || d.data("bs.collapse", e = new b(this, f)), "string" == typeof c && e[c]()
225 })
226 }, a.fn.collapse.Constructor = b, a.fn.collapse.noConflict = function() {
227 return a.fn.collapse = c, this
228 }, a(document).on("click.bs.collapse.data-api", "[data-toggle=collapse]", function(b) {
229 var c, d = a(this),
230 e = d.attr("data-target") || b.preventDefault() || (c = d.attr("href")) && c.replace(/.*(?=#[^\s]+$)/, ""),
231 f = a(e),
232 g = f.data("bs.collapse"),
233 h = g ? "toggle" : d.data(),
234 i = d.attr("data-parent"),
235 j = i && a(i);
236 g && g.transitioning || (j && j.find('[data-toggle=collapse][data-parent="' + i + '"]').not(d).addClass("collapsed"), d[f.hasClass("in") ? "addClass" : "removeClass"]("collapsed")), f.collapse(h)
237 })
238}(jQuery), + function(a) {
239 "use strict";
240
241 function b(b) {
242 a(d).remove(), a(e).each(function() {
243 var d = c(a(this)),
244 e = {
245 relatedTarget: this
246 };
247 d.hasClass("open") && (d.trigger(b = a.Event("hide.bs.dropdown", e)), b.isDefaultPrevented() || d.removeClass("open").trigger("hidden.bs.dropdown", e))
248 })
249 }
250
251 function c(b) {
252 var c = b.attr("data-target");
253 c || (c = b.attr("href"), c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ""));
254 var d = c && a(c);
255 return d && d.length ? d : b.parent()
256 }
257 var d = ".dropdown-backdrop",
258 e = "[data-toggle=dropdown]",
259 f = function(b) {
260 a(b).on("click.bs.dropdown", this.toggle)
261 };
262 f.prototype.toggle = function(d) {
263 var e = a(this);
264 if (!e.is(".disabled, :disabled")) {
265 var f = c(e),
266 g = f.hasClass("open");
267 if (b(), !g) {
268 "ontouchstart" in document.documentElement && !f.closest(".navbar-nav").length && a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click", b);
269 var h = {
270 relatedTarget: this
271 };
272 if (f.trigger(d = a.Event("show.bs.dropdown", h)), d.isDefaultPrevented()) return;
273 f.toggleClass("open").trigger("shown.bs.dropdown", h), e.focus()
274 }
275 return !1
276 }
277 }, f.prototype.keydown = function(b) {
278 if (/(38|40|27)/.test(b.keyCode)) {
279 var d = a(this);
280 if (b.preventDefault(), b.stopPropagation(), !d.is(".disabled, :disabled")) {
281 var f = c(d),
282 g = f.hasClass("open");
283 if (!g || g && 27 == b.keyCode) return 27 == b.which && f.find(e).focus(), d.click();
284 var h = " li:not(.divider):visible a",
285 i = f.find("[role=menu]" + h + ", [role=listbox]" + h);
286 if (i.length) {
287 var j = i.index(i.filter(":focus"));
288 38 == b.keyCode && j > 0 && j--, 40 == b.keyCode && j < i.length - 1 && j++, ~j || (j = 0), i.eq(j).focus()
289 }
290 }
291 }
292 };
293 var g = a.fn.dropdown;
294 a.fn.dropdown = function(b) {
295 return this.each(function() {
296 var c = a(this),
297 d = c.data("bs.dropdown");
298 d || c.data("bs.dropdown", d = new f(this)), "string" == typeof b && d[b].call(c)
299 })
300 }, a.fn.dropdown.Constructor = f, a.fn.dropdown.noConflict = function() {
301 return a.fn.dropdown = g, this
302 }, a(document).on("click.bs.dropdown.data-api", b).on("click.bs.dropdown.data-api", ".dropdown form", function(a) {
303 a.stopPropagation()
304 }).on("click.bs.dropdown.data-api", e, f.prototype.toggle).on("keydown.bs.dropdown.data-api", e + ", [role=menu], [role=listbox]", f.prototype.keydown)
305}(jQuery), + function(a) {
306 "use strict";
307 var b = function(b, c) {
308 this.options = c, this.$element = a(b), this.$backdrop = this.isShown = null, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, a.proxy(function() {
309 this.$element.trigger("loaded.bs.modal")
310 }, this))
311 };
312 b.DEFAULTS = {
313 backdrop: !0,
314 keyboard: !0,
315 show: !0
316 }, b.prototype.toggle = function(a) {
317 return this[this.isShown ? "hide" : "show"](a)
318 }, b.prototype.show = function(b) {
319 var c = this,
320 d = a.Event("show.bs.modal", {
321 relatedTarget: b
322 });
323 this.$element.trigger(d), this.isShown || d.isDefaultPrevented() || (this.isShown = !0, this.escape(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.backdrop(function() {
324 var d = a.support.transition && c.$element.hasClass("fade");
325 c.$element.parent().length || c.$element.appendTo(document.body), c.$element.show().scrollTop(0), d && c.$element[0].offsetWidth, c.$element.addClass("in").attr("aria-hidden", !1), c.enforceFocus();
326 var e = a.Event("shown.bs.modal", {
327 relatedTarget: b
328 });
329 d ? c.$element.find(".modal-dialog").one(a.support.transition.end, function() {
330 c.$element.focus().trigger(e)
331 }).emulateTransitionEnd(300) : c.$element.focus().trigger(e)
332 }))
333 }, b.prototype.hide = function(b) {
334 b && b.preventDefault(), b = a.Event("hide.bs.modal"), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && (this.isShown = !1, this.escape(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0).off("click.dismiss.bs.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one(a.support.transition.end, a.proxy(this.hideModal, this)).emulateTransitionEnd(300) : this.hideModal())
335 }, b.prototype.enforceFocus = function() {
336 a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function(a) {
337 this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.focus()
338 }, this))
339 }, b.prototype.escape = function() {
340 this.isShown && this.options.keyboard ? this.$element.on("keyup.dismiss.bs.modal", a.proxy(function(a) {
341 27 == a.which && this.hide()
342 }, this)) : this.isShown || this.$element.off("keyup.dismiss.bs.modal")
343 }, b.prototype.hideModal = function() {
344 var a = this;
345 this.$element.hide(), this.backdrop(function() {
346 a.removeBackdrop(), a.$element.trigger("hidden.bs.modal")
347 })
348 }, b.prototype.removeBackdrop = function() {
349 this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
350 }, b.prototype.backdrop = function(b) {
351 var c = this.$element.hasClass("fade") ? "fade" : "";
352 if (this.isShown && this.options.backdrop) {
353 var d = a.support.transition && c;
354 if (this.$backdrop = a('<div class="modal-backdrop ' + c + '" />').appendTo(document.body), this.$element.on("click.dismiss.bs.modal", a.proxy(function(a) {
355 a.target === a.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this))
356 }, this)), d && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !b) return;
357 d ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b()
358 } else !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one(a.support.transition.end, b).emulateTransitionEnd(150) : b()) : b && b()
359 };
360 var c = a.fn.modal;
361 a.fn.modal = function(c, d) {
362 return this.each(function() {
363 var e = a(this),
364 f = e.data("bs.modal"),
365 g = a.extend({}, b.DEFAULTS, e.data(), "object" == typeof c && c);
366 f || e.data("bs.modal", f = new b(this, g)), "string" == typeof c ? f[c](d) : g.show && f.show(d)
367 })
368 }, a.fn.modal.Constructor = b, a.fn.modal.noConflict = function() {
369 return a.fn.modal = c, this
370 }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(b) {
371 var c = a(this),
372 d = c.attr("href"),
373 e = a(c.attr("data-target") || d && d.replace(/.*(?=#[^\s]+$)/, "")),
374 f = e.data("bs.modal") ? "toggle" : a.extend({
375 remote: !/#/.test(d) && d
376 }, e.data(), c.data());
377 c.is("a") && b.preventDefault(), e.modal(f, this).one("hide", function() {
378 c.is(":visible") && c.focus()
379 })
380 }), a(document).on("show.bs.modal", ".modal", function() {
381 a(document.body).addClass("modal-open")
382 }).on("hidden.bs.modal", ".modal", function() {
383 a(document.body).removeClass("modal-open")
384 })
385}(jQuery), + function(a) {
386 "use strict";
387 var b = function(a, b) {
388 this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", a, b)
389 };
390 b.DEFAULTS = {
391 animation: !0,
392 placement: "top",
393 selector: !1,
394 template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
395 trigger: "hover focus",
396 title: "",
397 delay: 0,
398 html: !1,
399 container: !1
400 }, b.prototype.init = function(b, c, d) {
401 this.enabled = !0, this.type = b, this.$element = a(c), this.options = this.getOptions(d);
402 for (var e = this.options.trigger.split(" "), f = e.length; f--;) {
403 var g = e[f];
404 if ("click" == g) this.$element.on("click." + this.type, this.options.selector, a.proxy(this.toggle, this));
405 else if ("manual" != g) {
406 var h = "hover" == g ? "mouseenter" : "focusin",
407 i = "hover" == g ? "mouseleave" : "focusout";
408 this.$element.on(h + "." + this.type, this.options.selector, a.proxy(this.enter, this)), this.$element.on(i + "." + this.type, this.options.selector, a.proxy(this.leave, this))
409 }
410 }
411 this.options.selector ? this._options = a.extend({}, this.options, {
412 trigger: "manual",
413 selector: ""
414 }) : this.fixTitle()
415 }, b.prototype.getDefaults = function() {
416 return b.DEFAULTS
417 }, b.prototype.getOptions = function(b) {
418 return b = a.extend({}, this.getDefaults(), this.$element.data(), b), b.delay && "number" == typeof b.delay && (b.delay = {
419 show: b.delay,
420 hide: b.delay
421 }), b
422 }, b.prototype.getDelegateOptions = function() {
423 var b = {},
424 c = this.getDefaults();
425 return this._options && a.each(this._options, function(a, d) {
426 c[a] != d && (b[a] = d)
427 }), b
428 }, b.prototype.enter = function(b) {
429 var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
430 return clearTimeout(c.timeout), c.hoverState = "in", c.options.delay && c.options.delay.show ? void(c.timeout = setTimeout(function() {
431 "in" == c.hoverState && c.show()
432 }, c.options.delay.show)) : c.show()
433 }, b.prototype.leave = function(b) {
434 var c = b instanceof this.constructor ? b : a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type);
435 return clearTimeout(c.timeout), c.hoverState = "out", c.options.delay && c.options.delay.hide ? void(c.timeout = setTimeout(function() {
436 "out" == c.hoverState && c.hide()
437 }, c.options.delay.hide)) : c.hide()
438 }, b.prototype.show = function() {
439 var b = a.Event("show.bs." + this.type);
440 if (this.hasContent() && this.enabled) {
441 if (this.$element.trigger(b), b.isDefaultPrevented()) return;
442 var c = this,
443 d = this.tip();
444 this.setContent(), this.options.animation && d.addClass("fade");
445 var e = "function" == typeof this.options.placement ? this.options.placement.call(this, d[0], this.$element[0]) : this.options.placement,
446 f = /\s?auto?\s?/i,
447 g = f.test(e);
448 g && (e = e.replace(f, "") || "top"), d.detach().css({
449 top: 0,
450 left: 0,
451 display: "block"
452 }).addClass(e), this.options.container ? d.appendTo(this.options.container) : d.insertAfter(this.$element);
453 var h = this.getPosition(),
454 i = d[0].offsetWidth,
455 j = d[0].offsetHeight;
456 if (g) {
457 var k = this.$element.parent(),
458 l = e,
459 m = document.documentElement.scrollTop || document.body.scrollTop,
460 n = "body" == this.options.container ? window.innerWidth : k.outerWidth(),
461 o = "body" == this.options.container ? window.innerHeight : k.outerHeight(),
462 p = "body" == this.options.container ? 0 : k.offset().left;
463 e = "bottom" == e && h.top + h.height + j - m > o ? "top" : "top" == e && h.top - m - j < 0 ? "bottom" : "right" == e && h.right + i > n ? "left" : "left" == e && h.left - i < p ? "right" : e, d.removeClass(l).addClass(e)
464 }
465 var q = this.getCalculatedOffset(e, h, i, j);
466 this.applyPlacement(q, e), this.hoverState = null;
467 var r = function() {
468 c.$element.trigger("shown.bs." + c.type)
469 };
470 a.support.transition && this.$tip.hasClass("fade") ? d.one(a.support.transition.end, r).emulateTransitionEnd(150) : r()
471 }
472 }, b.prototype.applyPlacement = function(b, c) {
473 var d, e = this.tip(),
474 f = e[0].offsetWidth,
475 g = e[0].offsetHeight,
476 h = parseInt(e.css("margin-top"), 10),
477 i = parseInt(e.css("margin-left"), 10);
478 isNaN(h) && (h = 0), isNaN(i) && (i = 0), b.top = b.top + h, b.left = b.left + i, a.offset.setOffset(e[0], a.extend({
479 using: function(a) {
480 e.css({
481 top: Math.round(a.top),
482 left: Math.round(a.left)
483 })
484 }
485 }, b), 0), e.addClass("in");
486 var j = e[0].offsetWidth,
487 k = e[0].offsetHeight;
488 if ("top" == c && k != g && (d = !0, b.top = b.top + g - k), /bottom|top/.test(c)) {
489 var l = 0;
490 b.left < 0 && (l = -2 * b.left, b.left = 0, e.offset(b), j = e[0].offsetWidth, k = e[0].offsetHeight), this.replaceArrow(l - f + j, j, "left")
491 } else this.replaceArrow(k - g, k, "top");
492 d && e.offset(b)
493 }, b.prototype.replaceArrow = function(a, b, c) {
494 this.arrow().css(c, a ? 50 * (1 - a / b) + "%" : "")
495 }, b.prototype.setContent = function() {
496 var a = this.tip(),
497 b = this.getTitle();
498 a.find(".tooltip-inner")[this.options.html ? "html" : "text"](b), a.removeClass("fade in top bottom left right")
499 }, b.prototype.hide = function() {
500 function b() {
501 "in" != c.hoverState && d.detach(), c.$element.trigger("hidden.bs." + c.type)
502 }
503 var c = this,
504 d = this.tip(),
505 e = a.Event("hide.bs." + this.type);
506 return this.$element.trigger(e), e.isDefaultPrevented() ? void 0 : (d.removeClass("in"), a.support.transition && this.$tip.hasClass("fade") ? d.one(a.support.transition.end, b).emulateTransitionEnd(150) : b(), this.hoverState = null, this)
507 }, b.prototype.fixTitle = function() {
508 var a = this.$element;
509 (a.attr("title") || "string" != typeof a.attr("data-original-title")) && a.attr("data-original-title", a.attr("title") || "").attr("title", "")
510 }, b.prototype.hasContent = function() {
511 return this.getTitle()
512 }, b.prototype.getPosition = function() {
513 var b = this.$element[0];
514 return a.extend({}, "function" == typeof b.getBoundingClientRect ? b.getBoundingClientRect() : {
515 width: b.offsetWidth,
516 height: b.offsetHeight
517 }, this.$element.offset())
518 }, b.prototype.getCalculatedOffset = function(a, b, c, d) {
519 return "bottom" == a ? {
520 top: b.top + b.height,
521 left: b.left + b.width / 2 - c / 2
522 } : "top" == a ? {
523 top: b.top - d,
524 left: b.left + b.width / 2 - c / 2
525 } : "left" == a ? {
526 top: b.top + b.height / 2 - d / 2,
527 left: b.left - c
528 } : {
529 top: b.top + b.height / 2 - d / 2,
530 left: b.left + b.width
531 }
532 }, b.prototype.getTitle = function() {
533 var a, b = this.$element,
534 c = this.options;
535 return a = b.attr("data-original-title") || ("function" == typeof c.title ? c.title.call(b[0]) : c.title)
536 }, b.prototype.tip = function() {
537 return this.$tip = this.$tip || a(this.options.template)
538 }, b.prototype.arrow = function() {
539 return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
540 }, b.prototype.validate = function() {
541 this.$element[0].parentNode || (this.hide(), this.$element = null, this.options = null)
542 }, b.prototype.enable = function() {
543 this.enabled = !0
544 }, b.prototype.disable = function() {
545 this.enabled = !1
546 }, b.prototype.toggleEnabled = function() {
547 this.enabled = !this.enabled
548 }, b.prototype.toggle = function(b) {
549 var c = b ? a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs." + this.type) : this;
550 c.tip().hasClass("in") ? c.leave(c) : c.enter(c)
551 }, b.prototype.destroy = function() {
552 clearTimeout(this.timeout), this.hide().$element.off("." + this.type).removeData("bs." + this.type)
553 };
554 var c = a.fn.tooltip;
555 a.fn.tooltip = function(c) {
556 return this.each(function() {
557 var d = a(this),
558 e = d.data("bs.tooltip"),
559 f = "object" == typeof c && c;
560 (e || "destroy" != c) && (e || d.data("bs.tooltip", e = new b(this, f)), "string" == typeof c && e[c]())
561 })
562 }, a.fn.tooltip.Constructor = b, a.fn.tooltip.noConflict = function() {
563 return a.fn.tooltip = c, this
564 }
565}(jQuery), + function(a) {
566 "use strict";
567 var b = function(a, b) {
568 this.init("popover", a, b)
569 };
570 if (!a.fn.tooltip) throw new Error("Popover requires tooltip.js");
571 b.DEFAULTS = a.extend({}, a.fn.tooltip.Constructor.DEFAULTS, {
572 placement: "right",
573 trigger: "click",
574 content: "",
575 template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
576 }), b.prototype = a.extend({}, a.fn.tooltip.Constructor.prototype), b.prototype.constructor = b, b.prototype.getDefaults = function() {
577 return b.DEFAULTS
578 }, b.prototype.setContent = function() {
579 var a = this.tip(),
580 b = this.getTitle(),
581 c = this.getContent();
582 a.find(".popover-title")[this.options.html ? "html" : "text"](b), a.find(".popover-content")[this.options.html ? "string" == typeof c ? "html" : "append" : "text"](c), a.removeClass("fade top bottom left right in"), a.find(".popover-title").html() || a.find(".popover-title").hide()
583 }, b.prototype.hasContent = function() {
584 return this.getTitle() || this.getContent()
585 }, b.prototype.getContent = function() {
586 var a = this.$element,
587 b = this.options;
588 return a.attr("data-content") || ("function" == typeof b.content ? b.content.call(a[0]) : b.content)
589 }, b.prototype.arrow = function() {
590 return this.$arrow = this.$arrow || this.tip().find(".arrow")
591 }, b.prototype.tip = function() {
592 return this.$tip || (this.$tip = a(this.options.template)), this.$tip
593 };
594 var c = a.fn.popover;
595 a.fn.popover = function(c) {
596 return this.each(function() {
597 var d = a(this),
598 e = d.data("bs.popover"),
599 f = "object" == typeof c && c;
600 (e || "destroy" != c) && (e || d.data("bs.popover", e = new b(this, f)), "string" == typeof c && e[c]())
601 })
602 }, a.fn.popover.Constructor = b, a.fn.popover.noConflict = function() {
603 return a.fn.popover = c, this
604 }
605}(jQuery), + function(a) {
606 "use strict";
607
608 function b(c, d) {
609 var e, f = a.proxy(this.process, this);
610 this.$element = a(a(c).is("body") ? window : c), this.$body = a("body"), this.$scrollElement = this.$element.on("scroll.bs.scroll-spy.data-api", f), this.options = a.extend({}, b.DEFAULTS, d), this.selector = (this.options.target || (e = a(c).attr("href")) && e.replace(/.*(?=#[^\s]+$)/, "") || "") + " .nav li > a", this.offsets = a([]), this.targets = a([]), this.activeTarget = null, this.refresh(), this.process()
611 }
612 b.DEFAULTS = {
613 offset: 10
614 }, b.prototype.refresh = function() {
615 var b = this.$element[0] == window ? "offset" : "position";
616 this.offsets = a([]), this.targets = a([]); {
617 var c = this;
618 this.$body.find(this.selector).map(function() {
619 var d = a(this),
620 e = d.data("target") || d.attr("href"),
621 f = /^#./.test(e) && a(e);
622 return f && f.length && f.is(":visible") && [
623 [f[b]().top + (!a.isWindow(c.$scrollElement.get(0)) && c.$scrollElement.scrollTop()), e]
624 ] || null
625 }).sort(function(a, b) {
626 return a[0] - b[0]
627 }).each(function() {
628 c.offsets.push(this[0]), c.targets.push(this[1])
629 })
630 }
631 }, b.prototype.process = function() {
632 var a, b = this.$scrollElement.scrollTop() + this.options.offset,
633 c = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight,
634 d = c - this.$scrollElement.height(),
635 e = this.offsets,
636 f = this.targets,
637 g = this.activeTarget;
638 if (b >= d) return g != (a = f.last()[0]) && this.activate(a);
639 if (g && b <= e[0]) return g != (a = f[0]) && this.activate(a);
640 for (a = e.length; a--;) g != f[a] && b >= e[a] && (!e[a + 1] || b <= e[a + 1]) && this.activate(f[a])
641 }, b.prototype.activate = function(b) {
642 this.activeTarget = b, a(this.selector).parentsUntil(this.options.target, ".active").removeClass("active");
643 var c = this.selector + '[data-target="' + b + '"],' + this.selector + '[href="' + b + '"]',
644 d = a(c).parents("li").addClass("active");
645 d.parent(".dropdown-menu").length && (d = d.closest("li.dropdown").addClass("active")), d.trigger("activate.bs.scrollspy")
646 };
647 var c = a.fn.scrollspy;
648 a.fn.scrollspy = function(c) {
649 return this.each(function() {
650 var d = a(this),
651 e = d.data("bs.scrollspy"),
652 f = "object" == typeof c && c;
653 e || d.data("bs.scrollspy", e = new b(this, f)), "string" == typeof c && e[c]()
654 })
655 }, a.fn.scrollspy.Constructor = b, a.fn.scrollspy.noConflict = function() {
656 return a.fn.scrollspy = c, this
657 }, a(window).on("load", function() {
658 a('[data-spy="scroll"]').each(function() {
659 var b = a(this);
660 b.scrollspy(b.data())
661 })
662 })
663}(jQuery), + function(a) {
664 "use strict";
665 var b = function(b) {
666 this.element = a(b)
667 };
668 b.prototype.show = function() {
669 var b = this.element,
670 c = b.closest("ul:not(.dropdown-menu)"),
671 d = b.data("target");
672 if (d || (d = b.attr("href"), d = d && d.replace(/.*(?=#[^\s]*$)/, "")), !b.parent("li").hasClass("active")) {
673 var e = c.find(".active:last a")[0],
674 f = a.Event("show.bs.tab", {
675 relatedTarget: e
676 });
677 if (b.trigger(f), !f.isDefaultPrevented()) {
678 var g = a(d);
679 this.activate(b.parent("li"), c), this.activate(g, g.parent(), function() {
680 b.trigger({
681 type: "shown.bs.tab",
682 relatedTarget: e
683 })
684 })
685 }
686 }
687 }, b.prototype.activate = function(b, c, d) {
688 function e() {
689 f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"), b.addClass("active"), g ? (b[0].offsetWidth, b.addClass("in")) : b.removeClass("fade"), b.parent(".dropdown-menu") && b.closest("li.dropdown").addClass("active"), d && d()
690 }
691 var f = c.find("> .active"),
692 g = d && a.support.transition && f.hasClass("fade");
693 g ? f.one(a.support.transition.end, e).emulateTransitionEnd(150) : e(), f.removeClass("in")
694 };
695 var c = a.fn.tab;
696 a.fn.tab = function(c) {
697 return this.each(function() {
698 var d = a(this),
699 e = d.data("bs.tab");
700 e || d.data("bs.tab", e = new b(this)), "string" == typeof c && e[c]()
701 })
702 }, a.fn.tab.Constructor = b, a.fn.tab.noConflict = function() {
703 return a.fn.tab = c, this
704 }, a(document).on("click.bs.tab.data-api", '[data-toggle="tab"], [data-toggle="pill"]', function(b) {
705 b.preventDefault(), a(this).tab("show")
706 })
707}(jQuery), + function(a) {
708 "use strict";
709 var b = function(c, d) {
710 this.options = a.extend({}, b.DEFAULTS, d), this.$window = a(window).on("scroll.bs.affix.data-api", a.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", a.proxy(this.checkPositionWithEventLoop, this)), this.$element = a(c), this.affixed = this.unpin = this.pinnedOffset = null, this.checkPosition()
711 };
712 b.RESET = "affix affix-top affix-bottom", b.DEFAULTS = {
713 offset: 0
714 }, b.prototype.getPinnedOffset = function() {
715 if (this.pinnedOffset) return this.pinnedOffset;
716 this.$element.removeClass(b.RESET).addClass("affix");
717 var a = this.$window.scrollTop(),
718 c = this.$element.offset();
719 return this.pinnedOffset = c.top - a
720 }, b.prototype.checkPositionWithEventLoop = function() {
721 setTimeout(a.proxy(this.checkPosition, this), 1)
722 }, b.prototype.checkPosition = function() {
723 if (this.$element.is(":visible")) {
724 var c = a(document).height(),
725 d = this.$window.scrollTop(),
726 e = this.$element.offset(),
727 f = this.options.offset,
728 g = f.top,
729 h = f.bottom;
730 "top" == this.affixed && (e.top += d), "object" != typeof f && (h = g = f), "function" == typeof g && (g = f.top(this.$element)), "function" == typeof h && (h = f.bottom(this.$element));
731 var i = null != this.unpin && d + this.unpin <= e.top ? !1 : null != h && e.top + this.$element.height() >= c - h ? "bottom" : null != g && g >= d ? "top" : !1;
732 if (this.affixed !== i) {
733 this.unpin && this.$element.css("top", "");
734 var j = "affix" + (i ? "-" + i : ""),
735 k = a.Event(j + ".bs.affix");
736 this.$element.trigger(k), k.isDefaultPrevented() || (this.affixed = i, this.unpin = "bottom" == i ? this.getPinnedOffset() : null, this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix", "affixed"))), "bottom" == i && this.$element.offset({
737 top: c - h - this.$element.height()
738 }))
739 }
740 }
741 };
742 var c = a.fn.affix;
743 a.fn.affix = function(c) {
744 return this.each(function() {
745 var d = a(this),
746 e = d.data("bs.affix"),
747 f = "object" == typeof c && c;
748 e || d.data("bs.affix", e = new b(this, f)), "string" == typeof c && e[c]()
749 })
750 }, a.fn.affix.Constructor = b, a.fn.affix.noConflict = function() {
751 return a.fn.affix = c, this
752 }, a(window).on("load", function() {
753 a('[data-spy="affix"]').each(function() {
754 var b = a(this),
755 c = b.data();
756 c.offset = c.offset || {}, c.offsetBottom && (c.offset.bottom = c.offsetBottom), c.offsetTop && (c.offset.top = c.offsetTop), b.affix(c)
757 })
758 })
759}(jQuery); \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)