compress JS files && add monitor feature

This commit is contained in:
Tjatse 2014-12-29 12:08:43 +08:00
parent 00595d098e
commit 2fa183143b
12 changed files with 1125 additions and 18866 deletions

View File

@ -20,7 +20,6 @@ html, body {
END OF COMMON
******************/
/*****************
SPINNER
******************/
@ -487,4 +486,56 @@ END OF REPO && VER
/*****************
END OF POPUP
******************/
/*****************
GRAPH
******************/
.graph svg {
font-size: 10px;
margin: 5px 20px;
}
.graph .line {
fill: none;
stroke-width: 1px;
}
.graph .axis path,
.graph .axis line {
fill: none;
stroke: #999999;
shape-rendering: crispEdges;
}
.graph .axis text {
fill: #999999
}
.graph ul, .graph ul li {
list-style: none;
padding: 0;
margin: 0;
}
.graph ul {
position: absolute;
right: 0;
top: 0;
}
.graph ul li {
height: 18px;
line-height: 18px;
list-style-type: square;
}
.graph ul li span {
width: 10px;
height: 5px;
display: block;
}
/*****************
END OF GRAPH
******************/

View File

@ -1,765 +1,27 @@
/*!
* Bootstrap v3.3.0 (http://getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=96424a68f1fcf5ec132f)
* Config saved to config.json and https://gist.github.com/96424a68f1fcf5ec132f
*/
if ("undefined" == typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");
+function(t){
var e = t.fn.jquery.split(" ")[0].split(".");
if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var i = t(this), s = i.data("bs.alert");
s || i.data("bs.alert", s = new o(this)), "string" == typeof e && s[e].call(i)
})
}
var i = '[data-dismiss="alert"]', o = function(e){
t(e).on("click", i, this.close)
};
o.VERSION = "3.3.0", o.TRANSITION_DURATION = 150, o.prototype.close = function(e){
function i(){
r.detach().trigger("closed.bs.alert").remove()
}
var s = t(this), n = s.attr("data-target");
n || (n = s.attr("href"), n = n && n.replace(/.*(?=#[^\s]*$)/, ""));
var r = t(n);
e && e.preventDefault(), r.length || (r = s.closest(".alert")), r.trigger(e = t.Event("close.bs.alert")), e.isDefaultPrevented() || (r.removeClass("in"), t.support.transition && r.hasClass("fade") ? r.one("bsTransitionEnd", i).emulateTransitionEnd(o.TRANSITION_DURATION) : i())
};
var s = t.fn.alert;
t.fn.alert = e, t.fn.alert.Constructor = o, t.fn.alert.noConflict = function(){
return t.fn.alert = s, this
}, t(document).on("click.bs.alert.data-api", i, o.prototype.close)
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.button"), n = "object" == typeof e && e;
s || o.data("bs.button", s = new i(this, n)), "toggle" == e ? s.toggle() : e && s.setState(e)
})
}
var i = function(e, o){
this.$element = t(e), this.options = t.extend({}, i.DEFAULTS, o), this.isLoading = !1
};
i.VERSION = "3.3.0", i.DEFAULTS = {loadingText: "loading..."}, i.prototype.setState = function(e){
var i = "disabled", o = this.$element, s = o.is("input") ? "val" : "html", n = o.data();
e += "Text", null == n.resetText && o.data("resetText", o[s]()), setTimeout(t.proxy(function(){
o[s](null == n[e] ? this.options[e] : n[e]), "loadingText" == e ? (this.isLoading = !0, o.addClass(i).attr(i, i)) : this.isLoading && (this.isLoading = !1, o.removeClass(i).removeAttr(i))
}, this), 0)
}, i.prototype.toggle = function(){
var t = !0, e = this.$element.closest('[data-toggle="buttons"]');
if (e.length) {
var i = this.$element.find("input");
"radio" == i.prop("type") && (i.prop("checked") && this.$element.hasClass("active") ? t = !1 : e.find(".active").removeClass("active")), t && i.prop("checked", !this.$element.hasClass("active")).trigger("change")
} else this.$element.attr("aria-pressed", !this.$element.hasClass("active"));
t && this.$element.toggleClass("active")
};
var o = t.fn.button;
t.fn.button = e, t.fn.button.Constructor = i, t.fn.button.noConflict = function(){
return t.fn.button = o, this
}, t(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function(i){
var o = t(i.target);
o.hasClass("btn") || (o = o.closest(".btn")), e.call(o, "toggle"), i.preventDefault()
}).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function(e){
t(e.target).closest(".btn").toggleClass("focus", "focus" == e.type)
})
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.carousel"), n = t.extend({}, i.DEFAULTS, o.data(), "object" == typeof e && e), r = "string" == typeof e ? e : n.slide;
s || o.data("bs.carousel", s = new i(this, n)), "number" == typeof e ? s.to(e) : r ? s[r]() : n.interval && s.pause().cycle()
})
}
var i = function(e, i){
this.$element = t(e), this.$indicators = this.$element.find(".carousel-indicators"), this.options = i, this.paused = this.sliding = this.interval = this.$active = this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", t.proxy(this.keydown, this)), "hover" == this.options.pause && !("ontouchstart"in document.documentElement) && this.$element.on("mouseenter.bs.carousel", t.proxy(this.pause, this)).on("mouseleave.bs.carousel", t.proxy(this.cycle, this))
};
i.VERSION = "3.3.0", i.TRANSITION_DURATION = 600, i.DEFAULTS = {
interval: 5e3,
pause : "hover",
wrap : !0,
keyboard: !0
}, i.prototype.keydown = function(t){
switch (t.which) {
case 37:
this.prev();
break;
case 39:
this.next();
break;
default:
return
}
t.preventDefault()
}, i.prototype.cycle = function(e){
return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this
}, i.prototype.getItemIndex = function(t){
return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active)
}, i.prototype.getItemForDirection = function(t, e){
var i = "prev" == t ? -1 : 1, o = this.getItemIndex(e), s = (o + i) % this.$items.length;
return this.$items.eq(s)
}, i.prototype.to = function(t){
var e = this, i = this.getItemIndex(this.$active = this.$element.find(".item.active"));
return t > this.$items.length - 1 || 0 > t ? void 0 : this.sliding ? this.$element.one("slid.bs.carousel", function(){
e.to(t)
}) : i == t ? this.pause().cycle() : this.slide(t > i ? "next" : "prev", this.$items.eq(t))
}, i.prototype.pause = function(e){
return e || (this.paused = !0), this.$element.find(".next, .prev").length && t.support.transition && (this.$element.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
}, i.prototype.next = function(){
return this.sliding ? void 0 : this.slide("next")
}, i.prototype.prev = function(){
return this.sliding ? void 0 : this.slide("prev")
}, i.prototype.slide = function(e, o){
var s = this.$element.find(".item.active"), n = o || this.getItemForDirection(e, s), r = this.interval, a = "next" == e ? "left" : "right", l = "next" == e ? "first" : "last", h = this;
if (!n.length) {
if (!this.options.wrap)return;
n = this.$element.find(".item")[l]()
}
if (n.hasClass("active"))return this.sliding = !1;
var d = n[0], p = t.Event("slide.bs.carousel", {relatedTarget: d, direction: a});
if (this.$element.trigger(p), !p.isDefaultPrevented()) {
if (this.sliding = !0, r && this.pause(), this.$indicators.length) {
this.$indicators.find(".active").removeClass("active");
var c = t(this.$indicators.children()[this.getItemIndex(n)]);
c && c.addClass("active")
}
var f = t.Event("slid.bs.carousel", {relatedTarget: d, direction: a});
return t.support.transition && this.$element.hasClass("slide") ? (n.addClass(e), n[0].offsetWidth, s.addClass(a), n.addClass(a), s.one("bsTransitionEnd", function(){
n.removeClass([e, a].join(" ")).addClass("active"), s.removeClass(["active", a].join(" ")), h.sliding = !1, setTimeout(function(){
h.$element.trigger(f)
}, 0)
}).emulateTransitionEnd(i.TRANSITION_DURATION)) : (s.removeClass("active"), n.addClass("active"), this.sliding = !1, this.$element.trigger(f)), r && this.cycle(), this
}
};
var o = t.fn.carousel;
t.fn.carousel = e, t.fn.carousel.Constructor = i, t.fn.carousel.noConflict = function(){
return t.fn.carousel = o, this
};
var s = function(i){
var o, s = t(this), n = t(s.attr("data-target") || (o = s.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, ""));
if (n.hasClass("carousel")) {
var r = t.extend({}, n.data(), s.data()), a = s.attr("data-slide-to");
a && (r.interval = !1), e.call(n, r), a && n.data("bs.carousel").to(a), i.preventDefault()
}
};
t(document).on("click.bs.carousel.data-api", "[data-slide]", s).on("click.bs.carousel.data-api", "[data-slide-to]", s), t(window).on("load", function(){
t('[data-ride="carousel"]').each(function(){
var i = t(this);
e.call(i, i.data())
})
})
}(jQuery), +function(t){
"use strict";
function e(e){
e && 3 === e.which || (t(s).remove(), t(n).each(function(){
var o = t(this), s = i(o), n = {relatedTarget: this};
s.hasClass("open") && (s.trigger(e = t.Event("hide.bs.dropdown", n)), e.isDefaultPrevented() || (o.attr("aria-expanded", "false"), s.removeClass("open").trigger("hidden.bs.dropdown", n)))
}))
}
function i(e){
var i = e.attr("data-target");
i || (i = e.attr("href"), i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ""));
var o = i && t(i);
return o && o.length ? o : e.parent()
}
function o(e){
return this.each(function(){
var i = t(this), o = i.data("bs.dropdown");
o || i.data("bs.dropdown", o = new r(this)), "string" == typeof e && o[e].call(i)
})
}
var s = ".dropdown-backdrop", n = '[data-toggle="dropdown"]', r = function(e){
t(e).on("click.bs.dropdown", this.toggle)
};
r.VERSION = "3.3.0", r.prototype.toggle = function(o){
var s = t(this);
if (!s.is(".disabled, :disabled")) {
var n = i(s), r = n.hasClass("open");
if (e(), !r) {
"ontouchstart"in document.documentElement && !n.closest(".navbar-nav").length && t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click", e);
var a = {relatedTarget: this};
if (n.trigger(o = t.Event("show.bs.dropdown", a)), o.isDefaultPrevented())return;
s.trigger("focus").attr("aria-expanded", "true"), n.toggleClass("open").trigger("shown.bs.dropdown", a)
}
return !1
}
}, r.prototype.keydown = function(e){
if (/(38|40|27|32)/.test(e.which)) {
var o = t(this);
if (e.preventDefault(), e.stopPropagation(), !o.is(".disabled, :disabled")) {
var s = i(o), r = s.hasClass("open");
if (!r && 27 != e.which || r && 27 == e.which)return 27 == e.which && s.find(n).trigger("focus"), o.trigger("click");
var a = " li:not(.divider):visible a", l = s.find('[role="menu"]' + a + ', [role="listbox"]' + a);
if (l.length) {
var h = l.index(e.target);
38 == e.which && h > 0 && h--, 40 == e.which && h < l.length - 1 && h++, ~h || (h = 0), l.eq(h).trigger("focus")
}
}
}
};
var a = t.fn.dropdown;
t.fn.dropdown = o, t.fn.dropdown.Constructor = r, t.fn.dropdown.noConflict = function(){
return t.fn.dropdown = a, this
}, t(document).on("click.bs.dropdown.data-api", e).on("click.bs.dropdown.data-api", ".dropdown form", function(t){
t.stopPropagation()
}).on("click.bs.dropdown.data-api", n, r.prototype.toggle).on("keydown.bs.dropdown.data-api", n, r.prototype.keydown).on("keydown.bs.dropdown.data-api", '[role="menu"]', r.prototype.keydown).on("keydown.bs.dropdown.data-api", '[role="listbox"]', r.prototype.keydown)
}(jQuery), +function(t){
"use strict";
function e(e, o){
return this.each(function(){
var s = t(this), n = s.data("bs.modal"), r = t.extend({}, i.DEFAULTS, s.data(), "object" == typeof e && e);
n || s.data("bs.modal", n = new i(this, r)), "string" == typeof e ? n[e](o) : r.show && n.show(o)
})
}
var i = function(e, i){
this.options = i, this.$body = t(document.body), this.$element = t(e), this.$backdrop = this.isShown = null, this.scrollbarWidth = 0, this.options.remote && this.$element.find(".modal-content").load(this.options.remote, t.proxy(function(){
this.$element.trigger("loaded.bs.modal")
}, this))
};
i.VERSION = "3.3.0", i.TRANSITION_DURATION = 300, i.BACKDROP_TRANSITION_DURATION = 150, i.DEFAULTS = {
backdrop: !0,
keyboard: !0,
show : !0
}, i.prototype.toggle = function(t){
return this.isShown ? this.hide() : this.show(t)
}, i.prototype.show = function(e){
var o = this, s = t.Event("show.bs.modal", {relatedTarget: e});
this.$element.trigger(s), this.isShown || s.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.$body.addClass("modal-open"), this.setScrollbar(), this.escape(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', t.proxy(this.hide, this)), this.backdrop(function(){
var s = t.support.transition && o.$element.hasClass("fade");
o.$element.parent().length || o.$element.appendTo(o.$body), o.$element.show().scrollTop(0), s && o.$element[0].offsetWidth, o.$element.addClass("in").attr("aria-hidden", !1), o.enforceFocus();
var n = t.Event("shown.bs.modal", {relatedTarget: e});
s ? o.$element.find(".modal-dialog").one("bsTransitionEnd", function(){
o.$element.trigger("focus").trigger(n)
}).emulateTransitionEnd(i.TRANSITION_DURATION) : o.$element.trigger("focus").trigger(n)
}))
}, i.prototype.hide = function(e){
e && e.preventDefault(), e = t.Event("hide.bs.modal"), this.$element.trigger(e), this.isShown && !e.isDefaultPrevented() && (this.isShown = !1, this.escape(), t(document).off("focusin.bs.modal"), this.$element.removeClass("in").attr("aria-hidden", !0).off("click.dismiss.bs.modal"), t.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", t.proxy(this.hideModal, this)).emulateTransitionEnd(i.TRANSITION_DURATION) : this.hideModal())
}, i.prototype.enforceFocus = function(){
t(document).off("focusin.bs.modal").on("focusin.bs.modal", t.proxy(function(t){
this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus")
}, this))
}, i.prototype.escape = function(){
this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", t.proxy(function(t){
27 == t.which && this.hide()
}, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal")
}, i.prototype.hideModal = function(){
var t = this;
this.$element.hide(), this.backdrop(function(){
t.$body.removeClass("modal-open"), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal")
})
}, i.prototype.removeBackdrop = function(){
this.$backdrop && this.$backdrop.remove(), this.$backdrop = null
}, i.prototype.backdrop = function(e){
var o = this, s = this.$element.hasClass("fade") ? "fade" : "";
if (this.isShown && this.options.backdrop) {
var n = t.support.transition && s;
if (this.$backdrop = t('<div class="modal-backdrop ' + s + '" />').prependTo(this.$element).on("click.dismiss.bs.modal", t.proxy(function(t){
t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus.call(this.$element[0]) : this.hide.call(this))
}, this)), n && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !e)return;
n ? this.$backdrop.one("bsTransitionEnd", e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : e()
} else if (!this.isShown && this.$backdrop) {
this.$backdrop.removeClass("in");
var r = function(){
o.removeBackdrop(), e && e()
};
t.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION) : r()
} else e && e()
}, i.prototype.checkScrollbar = function(){
this.scrollbarWidth = this.measureScrollbar()
}, i.prototype.setScrollbar = function(){
var t = parseInt(this.$body.css("padding-right") || 0, 10);
this.scrollbarWidth && this.$body.css("padding-right", t + this.scrollbarWidth)
}, i.prototype.resetScrollbar = function(){
this.$body.css("padding-right", "")
}, i.prototype.measureScrollbar = function(){
if (document.body.clientWidth >= window.innerWidth)return 0;
var t = document.createElement("div");
t.className = "modal-scrollbar-measure", this.$body.append(t);
var e = t.offsetWidth - t.clientWidth;
return this.$body[0].removeChild(t), e
};
var o = t.fn.modal;
t.fn.modal = e, t.fn.modal.Constructor = i, t.fn.modal.noConflict = function(){
return t.fn.modal = o, this
}, t(document).on("click.bs.modal.data-api", '[data-toggle="modal"]', function(i){
var o = t(this), s = o.attr("href"), n = t(o.attr("data-target") || s && s.replace(/.*(?=#[^\s]+$)/, "")), r = n.data("bs.modal") ? "toggle" : t.extend({remote: !/#/.test(s) && s}, n.data(), o.data());
o.is("a") && i.preventDefault(), n.one("show.bs.modal", function(t){
t.isDefaultPrevented() || n.one("hidden.bs.modal", function(){
o.is(":visible") && o.trigger("focus")
})
}), e.call(n, r, this)
})
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.tooltip"), n = "object" == typeof e && e, r = n && n.selector;
(s || "destroy" != e) && (r ? (s || o.data("bs.tooltip", s = {}), s[r] || (s[r] = new i(this, n))) : s || o.data("bs.tooltip", s = new i(this, n)), "string" == typeof e && s[e]())
})
}
var i = function(t, e){
this.type = this.options = this.enabled = this.timeout = this.hoverState = this.$element = null, this.init("tooltip", t, e)
};
i.VERSION = "3.3.0", i.TRANSITION_DURATION = 150, i.DEFAULTS = {
animation: !0,
placement: "top",
selector : !1,
template : '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
trigger : "hover focus",
title : "",
delay : 0,
html : !1,
container: !1,
viewport : {selector: "body", padding: 0}
}, i.prototype.init = function(e, i, o){
this.enabled = !0, this.type = e, this.$element = t(i), this.options = this.getOptions(o), this.$viewport = this.options.viewport && t(this.options.viewport.selector || this.options.viewport);
for (var s = this.options.trigger.split(" "), n = s.length; n--;) {
var r = s[n];
if ("click" == r)this.$element.on("click." + this.type, this.options.selector, t.proxy(this.toggle, this)); else if ("manual" != r) {
var a = "hover" == r ? "mouseenter" : "focusin", l = "hover" == r ? "mouseleave" : "focusout";
this.$element.on(a + "." + this.type, this.options.selector, t.proxy(this.enter, this)), this.$element.on(l + "." + this.type, this.options.selector, t.proxy(this.leave, this))
}
}
this.options.selector ? this._options = t.extend({}, this.options, {
trigger : "manual",
selector: ""
}) : this.fixTitle()
}, i.prototype.getDefaults = function(){
return i.DEFAULTS
}, i.prototype.getOptions = function(e){
return e = t.extend({}, this.getDefaults(), this.$element.data(), e), e.delay && "number" == typeof e.delay && (e.delay = {
show: e.delay,
hide: e.delay
}), e
}, i.prototype.getDelegateOptions = function(){
var e = {}, i = this.getDefaults();
return this._options && t.each(this._options, function(t, o){
i[t] != o && (e[t] = o)
}), e
}, i.prototype.enter = function(e){
var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
return i && i.$tip && i.$tip.is(":visible") ? void(i.hoverState = "in") : (i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), clearTimeout(i.timeout), i.hoverState = "in", i.options.delay && i.options.delay.show ? void(i.timeout = setTimeout(function(){
"in" == i.hoverState && i.show()
}, i.options.delay.show)) : i.show())
}, i.prototype.leave = function(e){
var i = e instanceof this.constructor ? e : t(e.currentTarget).data("bs." + this.type);
return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i)), clearTimeout(i.timeout), i.hoverState = "out", i.options.delay && i.options.delay.hide ? void(i.timeout = setTimeout(function(){
"out" == i.hoverState && i.hide()
}, i.options.delay.hide)) : i.hide()
}, i.prototype.show = function(){
var e = t.Event("show.bs." + this.type);
if (this.hasContent() && this.enabled) {
this.$element.trigger(e);
var o = t.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]);
if (e.isDefaultPrevented() || !o)return;
var s = this, n = this.tip(), r = this.getUID(this.type);
this.setContent(), n.attr("id", r), this.$element.attr("aria-describedby", r), this.options.animation && n.addClass("fade");
var a = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement, l = /\s?auto?\s?/i, h = l.test(a);
h && (a = a.replace(l, "") || "top"), n.detach().css({
top : 0,
left : 0,
display: "block"
}).addClass(a).data("bs." + this.type, this), this.options.container ? n.appendTo(this.options.container) : n.insertAfter(this.$element);
var d = this.getPosition(), p = n[0].offsetWidth, c = n[0].offsetHeight;
if (h) {
var f = a, u = this.options.container ? t(this.options.container) : this.$element.parent(), g = this.getPosition(u);
a = "bottom" == a && d.bottom + c > g.bottom ? "top" : "top" == a && d.top - c < g.top ? "bottom" : "right" == a && d.right + p > g.width ? "left" : "left" == a && d.left - p < g.left ? "right" : a, n.removeClass(f).addClass(a)
}
var v = this.getCalculatedOffset(a, d, p, c);
this.applyPlacement(v, a);
var m = function(){
var t = s.hoverState;
s.$element.trigger("shown.bs." + s.type), s.hoverState = null, "out" == t && s.leave(s)
};
t.support.transition && this.$tip.hasClass("fade") ? n.one("bsTransitionEnd", m).emulateTransitionEnd(i.TRANSITION_DURATION) : m()
}
}, i.prototype.applyPlacement = function(e, i){
var o = this.tip(), s = o[0].offsetWidth, n = o[0].offsetHeight, r = parseInt(o.css("margin-top"), 10), a = parseInt(o.css("margin-left"), 10);
isNaN(r) && (r = 0), isNaN(a) && (a = 0), e.top = e.top + r, e.left = e.left + a, t.offset.setOffset(o[0], t.extend({
using: function(t){
o.css({top: Math.round(t.top), left: Math.round(t.left)})
}
}, e), 0), o.addClass("in");
var l = o[0].offsetWidth, h = o[0].offsetHeight;
"top" == i && h != n && (e.top = e.top + n - h);
var d = this.getViewportAdjustedDelta(i, e, l, h);
d.left ? e.left += d.left : e.top += d.top;
var p = /top|bottom/.test(i), c = p ? 2 * d.left - s + l : 2 * d.top - n + h, f = p ? "offsetWidth" : "offsetHeight";
o.offset(e), this.replaceArrow(c, o[0][f], p)
}, i.prototype.replaceArrow = function(t, e, i){
this.arrow().css(i ? "left" : "top", 50 * (1 - t / e) + "%").css(i ? "top" : "left", "")
}, i.prototype.setContent = function(){
var t = this.tip(), e = this.getTitle();
t.find(".tooltip-inner")[this.options.html ? "html" : "text"](e), t.removeClass("fade in top bottom left right")
}, i.prototype.hide = function(e){
function o(){
"in" != s.hoverState && n.detach(), s.$element.removeAttr("aria-describedby").trigger("hidden.bs." + s.type), e && e()
}
var s = this, n = this.tip(), r = t.Event("hide.bs." + this.type);
return this.$element.trigger(r), r.isDefaultPrevented() ? void 0 : (n.removeClass("in"), t.support.transition && this.$tip.hasClass("fade") ? n.one("bsTransitionEnd", o).emulateTransitionEnd(i.TRANSITION_DURATION) : o(), this.hoverState = null, this)
}, i.prototype.fixTitle = function(){
var t = this.$element;
(t.attr("title") || "string" != typeof t.attr("data-original-title")) && t.attr("data-original-title", t.attr("title") || "").attr("title", "")
}, i.prototype.hasContent = function(){
return this.getTitle()
}, i.prototype.getPosition = function(e){
e = e || this.$element;
var i = e[0], o = "BODY" == i.tagName, s = i.getBoundingClientRect();
null == s.width && (s = t.extend({}, s, {width: s.right - s.left, height: s.bottom - s.top}));
var n = o ? {
top : 0,
left: 0
} : e.offset(), r = {scroll: o ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()}, a = o ? {
width : t(window).width(),
height: t(window).height()
} : null;
return t.extend({}, s, r, a, n)
}, i.prototype.getCalculatedOffset = function(t, e, i, o){
return "bottom" == t ? {top: e.top + e.height, left: e.left + e.width / 2 - i / 2} : "top" == t ? {
top : e.top - o,
left: e.left + e.width / 2 - i / 2
} : "left" == t ? {top: e.top + e.height / 2 - o / 2, left: e.left - i} : {
top : e.top + e.height / 2 - o / 2,
left: e.left + e.width
}
}, i.prototype.getViewportAdjustedDelta = function(t, e, i, o){
var s = {top: 0, left: 0};
if (!this.$viewport)return s;
var n = this.options.viewport && this.options.viewport.padding || 0, r = this.getPosition(this.$viewport);
if (/right|left/.test(t)) {
var a = e.top - n - r.scroll, l = e.top + n - r.scroll + o;
a < r.top ? s.top = r.top - a : l > r.top + r.height && (s.top = r.top + r.height - l)
} else {
var h = e.left - n, d = e.left + n + i;
h < r.left ? s.left = r.left - h : d > r.width && (s.left = r.left + r.width - d)
}
return s
}, i.prototype.getTitle = function(){
var t, e = this.$element, i = this.options;
return t = e.attr("data-original-title") || ("function" == typeof i.title ? i.title.call(e[0]) : i.title)
}, i.prototype.getUID = function(t){
do t += ~~(1e6 * Math.random()); while (document.getElementById(t));
return t
}, i.prototype.tip = function(){
return this.$tip = this.$tip || t(this.options.template)
}, i.prototype.arrow = function(){
return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow")
}, i.prototype.enable = function(){
this.enabled = !0
}, i.prototype.disable = function(){
this.enabled = !1
}, i.prototype.toggleEnabled = function(){
this.enabled = !this.enabled
}, i.prototype.toggle = function(e){
var i = this;
e && (i = t(e.currentTarget).data("bs." + this.type), i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data("bs." + this.type, i))), i.tip().hasClass("in") ? i.leave(i) : i.enter(i)
}, i.prototype.destroy = function(){
var t = this;
clearTimeout(this.timeout), this.hide(function(){
t.$element.off("." + t.type).removeData("bs." + t.type)
})
};
var o = t.fn.tooltip;
t.fn.tooltip = e, t.fn.tooltip.Constructor = i, t.fn.tooltip.noConflict = function(){
return t.fn.tooltip = o, this
}
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.popover"), n = "object" == typeof e && e, r = n && n.selector;
(s || "destroy" != e) && (r ? (s || o.data("bs.popover", s = {}), s[r] || (s[r] = new i(this, n))) : s || o.data("bs.popover", s = new i(this, n)), "string" == typeof e && s[e]())
})
}
var i = function(t, e){
this.init("popover", t, e)
};
if (!t.fn.tooltip)throw new Error("Popover requires tooltip.js");
i.VERSION = "3.3.0", i.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {
placement: "right",
trigger : "click",
content : "",
template : '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
}), i.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype), i.prototype.constructor = i, i.prototype.getDefaults = function(){
return i.DEFAULTS
}, i.prototype.setContent = function(){
var t = this.tip(), e = this.getTitle(), i = this.getContent();
t.find(".popover-title")[this.options.html ? "html" : "text"](e), t.find(".popover-content").children().detach().end()[this.options.html ? "string" == typeof i ? "html" : "append" : "text"](i), t.removeClass("fade top bottom left right in"), t.find(".popover-title").html() || t.find(".popover-title").hide()
}, i.prototype.hasContent = function(){
return this.getTitle() || this.getContent()
}, i.prototype.getContent = function(){
var t = this.$element, e = this.options;
return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content)
}, i.prototype.arrow = function(){
return this.$arrow = this.$arrow || this.tip().find(".arrow")
}, i.prototype.tip = function(){
return this.$tip || (this.$tip = t(this.options.template)), this.$tip
};
var o = t.fn.popover;
t.fn.popover = e, t.fn.popover.Constructor = i, t.fn.popover.noConflict = function(){
return t.fn.popover = o, this
}
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.tab");
s || o.data("bs.tab", s = new i(this)), "string" == typeof e && s[e]()
})
}
var i = function(e){
this.element = t(e)
};
i.VERSION = "3.3.0", i.TRANSITION_DURATION = 150, i.prototype.show = function(){
var e = this.element, i = e.closest("ul:not(.dropdown-menu)"), o = e.data("target");
if (o || (o = e.attr("href"), o = o && o.replace(/.*(?=#[^\s]*$)/, "")), !e.parent("li").hasClass("active")) {
var s = i.find(".active:last a"), n = t.Event("hide.bs.tab", {relatedTarget: e[0]}), r = t.Event("show.bs.tab", {relatedTarget: s[0]});
if (s.trigger(n), e.trigger(r), !r.isDefaultPrevented() && !n.isDefaultPrevented()) {
var a = t(o);
this.activate(e.closest("li"), i), this.activate(a, a.parent(), function(){
s.trigger({type: "hidden.bs.tab", relatedTarget: e[0]}), e.trigger({
type : "shown.bs.tab",
relatedTarget: s[0]
})
})
}
}
}, i.prototype.activate = function(e, o, s){
function n(){
r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), a ? (e[0].offsetWidth, e.addClass("in")) : e.removeClass("fade"), e.parent(".dropdown-menu") && e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), s && s()
}
var r = o.find("> .active"), a = s && t.support.transition && (r.length && r.hasClass("fade") || !!o.find("> .fade").length);
r.length && a ? r.one("bsTransitionEnd", n).emulateTransitionEnd(i.TRANSITION_DURATION) : n(), r.removeClass("in")
};
var o = t.fn.tab;
t.fn.tab = e, t.fn.tab.Constructor = i, t.fn.tab.noConflict = function(){
return t.fn.tab = o, this
};
var s = function(i){
i.preventDefault(), e.call(t(this), "show")
};
t(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', s).on("click.bs.tab.data-api", '[data-toggle="pill"]', s)
}(jQuery), +function(t){
"use strict";
function e(e){
return this.each(function(){
var o = t(this), s = o.data("bs.affix"), n = "object" == typeof e && e;
s || o.data("bs.affix", s = new i(this, n)), "string" == typeof e && s[e]()
})
}
var i = function(e, o){
this.options = t.extend({}, i.DEFAULTS, o), this.$target = t(this.options.target).on("scroll.bs.affix.data-api", t.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", t.proxy(this.checkPositionWithEventLoop, this)), this.$element = t(e), this.affixed = this.unpin = this.pinnedOffset = null, this.checkPosition()
};
i.VERSION = "3.3.0", i.RESET = "affix affix-top affix-bottom", i.DEFAULTS = {
offset: 0,
target: window
}, i.prototype.getState = function(t, e, i, o){
var s = this.$target.scrollTop(), n = this.$element.offset(), r = this.$target.height();
if (null != i && "top" == this.affixed)return i > s ? "top" : !1;
if ("bottom" == this.affixed)return null != i ? s + this.unpin <= n.top ? !1 : "bottom" : t - o >= s + r ? !1 : "bottom";
var a = null == this.affixed, l = a ? s : n.top, h = a ? r : e;
return null != i && i >= l ? "top" : null != o && l + h >= t - o ? "bottom" : !1
}, i.prototype.getPinnedOffset = function(){
if (this.pinnedOffset)return this.pinnedOffset;
this.$element.removeClass(i.RESET).addClass("affix");
var t = this.$target.scrollTop(), e = this.$element.offset();
return this.pinnedOffset = e.top - t
}, i.prototype.checkPositionWithEventLoop = function(){
setTimeout(t.proxy(this.checkPosition, this), 1)
}, i.prototype.checkPosition = function(){
if (this.$element.is(":visible")) {
var e = this.$element.height(), o = this.options.offset, s = o.top, n = o.bottom, r = t("body").height();
"object" != typeof o && (n = s = o), "function" == typeof s && (s = o.top(this.$element)), "function" == typeof n && (n = o.bottom(this.$element));
var a = this.getState(r, e, s, n);
if (this.affixed != a) {
null != this.unpin && this.$element.css("top", "");
var l = "affix" + (a ? "-" + a : ""), h = t.Event(l + ".bs.affix");
if (this.$element.trigger(h), h.isDefaultPrevented())return;
this.affixed = a, this.unpin = "bottom" == a ? this.getPinnedOffset() : null, this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix", "affixed") + ".bs.affix")
}
"bottom" == a && this.$element.offset({top: r - e - n})
}
};
var o = t.fn.affix;
t.fn.affix = e, t.fn.affix.Constructor = i, t.fn.affix.noConflict = function(){
return t.fn.affix = o, this
}, t(window).on("load", function(){
t('[data-spy="affix"]').each(function(){
var i = t(this), o = i.data();
o.offset = o.offset || {}, null != o.offsetBottom && (o.offset.bottom = o.offsetBottom), null != o.offsetTop && (o.offset.top = o.offsetTop), e.call(i, o)
})
})
}(jQuery), +function(t){
"use strict";
function e(e){
var i, o = e.attr("data-target") || (i = e.attr("href")) && i.replace(/.*(?=#[^\s]+$)/, "");
return t(o)
}
function i(e){
return this.each(function(){
var i = t(this), s = i.data("bs.collapse"), n = t.extend({}, o.DEFAULTS, i.data(), "object" == typeof e && e);
!s && n.toggle && "show" == e && (n.toggle = !1), s || i.data("bs.collapse", s = new o(this, n)), "string" == typeof e && s[e]()
})
}
var o = function(e, i){
this.$element = t(e), this.options = t.extend({}, o.DEFAULTS, i), this.$trigger = t(this.options.trigger).filter('[href="#' + e.id + '"], [data-target="#' + e.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle()
};
o.VERSION = "3.3.0", o.TRANSITION_DURATION = 350, o.DEFAULTS = {
toggle : !0,
trigger: '[data-toggle="collapse"]'
}, o.prototype.dimension = function(){
var t = this.$element.hasClass("width");
return t ? "width" : "height"
}, o.prototype.show = function(){
if (!this.transitioning && !this.$element.hasClass("in")) {
var e, s = this.$parent && this.$parent.find("> .panel").children(".in, .collapsing");
if (!(s && s.length && (e = s.data("bs.collapse"), e && e.transitioning))) {
var n = t.Event("show.bs.collapse");
if (this.$element.trigger(n), !n.isDefaultPrevented()) {
s && s.length && (i.call(s, "hide"), e || s.data("bs.collapse", null));
var r = this.dimension();
this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1;
var a = function(){
this.$element.removeClass("collapsing").addClass("collapse in")[r](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse")
};
if (!t.support.transition)return a.call(this);
var l = t.camelCase(["scroll", r].join("-"));
this.$element.one("bsTransitionEnd", t.proxy(a, this)).emulateTransitionEnd(o.TRANSITION_DURATION)[r](this.$element[0][l])
}
}
}
}, o.prototype.hide = function(){
if (!this.transitioning && this.$element.hasClass("in")) {
var e = t.Event("hide.bs.collapse");
if (this.$element.trigger(e), !e.isDefaultPrevented()) {
var i = this.dimension();
this.$element[i](this.$element[i]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1;
var s = function(){
this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")
};
return t.support.transition ? void this.$element[i](0).one("bsTransitionEnd", t.proxy(s, this)).emulateTransitionEnd(o.TRANSITION_DURATION) : s.call(this)
}
}
}, o.prototype.toggle = function(){
this[this.$element.hasClass("in") ? "hide" : "show"]()
}, o.prototype.getParent = function(){
return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy(function(i, o){
var s = t(o);
this.addAriaAndCollapsedClass(e(s), s)
}, this)).end()
}, o.prototype.addAriaAndCollapsedClass = function(t, e){
var i = t.hasClass("in");
t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i)
};
var s = t.fn.collapse;
t.fn.collapse = i, t.fn.collapse.Constructor = o, t.fn.collapse.noConflict = function(){
return t.fn.collapse = s, this
}, t(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function(o){
var s = t(this);
s.attr("data-target") || o.preventDefault();
var n = e(s), r = n.data("bs.collapse"), a = r ? "toggle" : t.extend({}, s.data(), {trigger: this});
i.call(n, a)
})
}(jQuery), +function(t){
"use strict";
function e(i, o){
var s = t.proxy(this.process, this);
this.$body = t("body"), this.$scrollElement = t(t(i).is("body") ? window : i), this.options = t.extend({}, e.DEFAULTS, o), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", s), this.refresh(), this.process()
}
function i(i){
return this.each(function(){
var o = t(this), s = o.data("bs.scrollspy"), n = "object" == typeof i && i;
s || o.data("bs.scrollspy", s = new e(this, n)), "string" == typeof i && s[i]()
})
}
e.VERSION = "3.3.0", e.DEFAULTS = {offset: 10}, e.prototype.getScrollHeight = function(){
return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
}, e.prototype.refresh = function(){
var e = "offset", i = 0;
t.isWindow(this.$scrollElement[0]) || (e = "position", i = this.$scrollElement.scrollTop()), this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight();
var o = this;
this.$body.find(this.selector).map(function(){
var o = t(this), s = o.data("target") || o.attr("href"), n = /^#./.test(s) && t(s);
return n && n.length && n.is(":visible") && [[n[e]().top + i, s]] || null
}).sort(function(t, e){
return t[0] - e[0]
}).each(function(){
o.offsets.push(this[0]), o.targets.push(this[1])
})
}, e.prototype.process = function(){
var t, e = this.$scrollElement.scrollTop() + this.options.offset, i = this.getScrollHeight(), o = this.options.offset + i - this.$scrollElement.height(), s = this.offsets, n = this.targets, r = this.activeTarget;
if (this.scrollHeight != i && this.refresh(), e >= o)return r != (t = n[n.length - 1]) && this.activate(t);
if (r && e < s[0])return this.activeTarget = null, this.clear();
for (t = s.length; t--;)r != n[t] && e >= s[t] && (!s[t + 1] || e <= s[t + 1]) && this.activate(n[t])
}, e.prototype.activate = function(e){
this.activeTarget = e, this.clear();
var i = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]', o = t(i).parents("li").addClass("active");
o.parent(".dropdown-menu").length && (o = o.closest("li.dropdown").addClass("active")), o.trigger("activate.bs.scrollspy")
}, e.prototype.clear = function(){
t(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")
};
var o = t.fn.scrollspy;
t.fn.scrollspy = i, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function(){
return t.fn.scrollspy = o, this
}, t(window).on("load.bs.scrollspy.data-api", function(){
t('[data-spy="scroll"]').each(function(){
var e = t(this);
i.call(e, e.data())
})
})
}(jQuery), +function(t){
"use strict";
function e(){
var t = document.createElement("bootstrap"), e = {
WebkitTransition: "webkitTransitionEnd",
MozTransition : "transitionend",
OTransition : "oTransitionEnd otransitionend",
transition : "transitionend"
};
for (var i in e)if (void 0 !== t.style[i])return {end: e[i]};
return !1
}
t.fn.emulateTransitionEnd = function(e){
var i = !1, o = this;
t(this).one("bsTransitionEnd", function(){
i = !0
});
var s = function(){
i || t(o).trigger(t.support.transition.end)
};
return setTimeout(s, e), this
}, t(function(){
t.support.transition = e(), t.support.transition && (t.event.special.bsTransitionEnd = {
bindType : t.support.transition.end,
delegateType: t.support.transition.end,
handle : function(e){
return t(e.target).is(this) ? e.handleObj.handler.apply(this, arguments) : void 0
}
})
})
}(jQuery);
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new o(this)),"string"==typeof e&&s[e].call(i)})}
var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.3.0",o.TRANSITION_DURATION=150,o.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}
var s=t(this),n=s.attr("data-target");n||(n=s.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,""));var r=t(n);e&&e.preventDefault(),r.length||(r=s.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.button"),n="object"==typeof e&&e;s||o.data("bs.button",s=new i(this,n)),"toggle"==e?s.toggle():e&&s.setState(e)})}
var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.3.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,s=o.is("input")?"val":"html",n=o.data();e+="Text",null==n.resetText&&o.data("resetText",o[s]()),setTimeout(t.proxy(function(){o[s](null==n[e]?this.options[e]:n[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus","focus"==e.type)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.carousel"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:n.slide;s||o.data("bs.carousel",s=new i(this,n)),"number"==typeof e?s.to(e):r?s[r]():n.interval&&s.pause().cycle()})}
var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.0",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}
t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i="prev"==t?-1:1,o=this.getItemIndex(e),s=(o+i)%this.$items.length;return this.$items.eq(s)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,o){var s=this.$element.find(".item.active"),n=o||this.getItemForDirection(e,s),r=this.interval,a="next"==e?"left":"right",l="next"==e?"first":"last",h=this;if(!n.length){if(!this.options.wrap)return;n=this.$element.find(".item")[l]()}
if(n.hasClass("active"))return this.sliding=!1;var d=n[0],p=t.Event("slide.bs.carousel",{relatedTarget:d,direction:a});if(this.$element.trigger(p),!p.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(n)]);c&&c.addClass("active")}
var f=t.Event("slid.bs.carousel",{relatedTarget:d,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(n.addClass(e),n[0].offsetWidth,s.addClass(a),n.addClass(a),s.one("bsTransitionEnd",function(){n.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),h.sliding=!1,setTimeout(function(){h.$element.trigger(f)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger(f)),r&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this};var s=function(i){var o,s=t(this),n=t(s.attr("data-target")||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var r=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(n,r),a&&n.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var o=t(this),s=i(o),n={relatedTarget:this};s.hasClass("open")&&(s.trigger(e=t.Event("hide.bs.dropdown",n)),e.isDefaultPrevented()||(o.attr("aria-expanded","false"),s.removeClass("open").trigger("hidden.bs.dropdown",n)))}))}
function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}
function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}
var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.0",r.prototype.toggle=function(o){var s=t(this);if(!s.is(".disabled, :disabled")){var n=i(s),r=n.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(n.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger("shown.bs.dropdown",a)}
return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&s.find(n).trigger("focus"),o.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(e.target);38==e.which&&h>0&&h--,40==e.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n,r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);n||s.data("bs.modal",n=new i(this,r)),"string"==typeof e?n[e](o):r.show&&n.show(o)})}
var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.0",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var o=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var s=t.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),s&&o.$element[0].offsetWidth,o.$element.addClass("in").attr("aria-hidden",!1),o.enforceFocus();var n=t.Event("shown.bs.modal",{relatedTarget:e});s?o.$element.find(".modal-dialog").one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(n)}).emulateTransitionEnd(i.TRANSITION_DURATION):o.$element.trigger("focus").trigger(n)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=t.support.transition&&s;if(this.$backdrop=t('<div class="modal-backdrop '+s+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;n?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.checkScrollbar=function(){this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),s=o.attr("href"),n=t(o.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());o.is("a")&&i.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(n,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tooltip"),n="object"==typeof e&&e,r=n&&n.selector;(s||"destroy"!=e)&&(r?(s||o.data("bs.tooltip",s={}),s[r]||(s[r]=new i(this,n))):s||o.data("bs.tooltip",s=new i(this,n)),"string"==typeof e&&s[e]())})}
var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.3.0",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),n=s.length;n--;){var r=s[n];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}
this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var o=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!o)return;var s=this,n=this.tip(),r=this.getUID(this.type);this.setContent(),n.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&n.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?n.appendTo(this.options.container):n.insertAfter(this.$element);var d=this.getPosition(),p=n[0].offsetWidth,c=n[0].offsetHeight;if(h){var f=a,u=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(u);a="bottom"==a&&d.bottom+c>g.bottom?"top":"top"==a&&d.top-c<g.top?"bottom":"right"==a&&d.right+p>g.width?"left":"left"==a&&d.left-p<g.left?"right":a,n.removeClass(f).addClass(a)}
var v=this.getCalculatedOffset(a,d,p,c);this.applyPlacement(v,a);var m=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),s=o[0].offsetWidth,n=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var d=this.getViewportAdjustedDelta(i,e,l,h);d.left?e.left+=d.left:e.top+=d.top;var p=/top|bottom/.test(i),c=p?2*d.left-s+l:2*d.top-n+h,f=p?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][f],p)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function o(){"in"!=s.hoverState&&n.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}
var s=this,n=this.tip(),r=t.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var n=o?{top:0,left:0}:e.offset(),r={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=o?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,r,a,n)},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var s={top:0,left:0};if(!this.$viewport)return s;var n=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-n-r.scroll,l=e.top+n-r.scroll+o;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-n,d=e.left+n+i;h<r.left?s.left=r.left-h:d>r.width&&(s.left=r.left+r.width-d)}
return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.popover"),n="object"==typeof e&&e,r=n&&n.selector;(s||"destroy"!=e)&&(r?(s||o.data("bs.popover",s={}),s[r]||(s[r]=new i(this,n))):s||o.data("bs.popover",s=new i(this,n)),"string"==typeof e&&s[e]())})}
var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tab");s||o.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}
var i=function(e){this.element=t(e)};i.VERSION="3.3.0",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),n=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(n),e.trigger(r),!r.isDefaultPrevented()&&!n.isDefaultPrevented()){var a=t(o);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,o,s){function n(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}
var r=o.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!o.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),r.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.affix"),n="object"==typeof e&&e;s||o.data("bs.affix",s=new i(this,n)),"string"==typeof e&&s[e]()})}
var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,o){var s=this.$target.scrollTop(),n=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s?"top":!1;if("bottom"==this.affixed)return null!=i?s+this.unpin<=n.top?!1:"bottom":t-o>=s+r?!1:"bottom";var a=null==this.affixed,l=a?s:n.top,h=a?r:e;return null!=i&&i>=l?"top":null!=o&&l+h>=t-o?"bottom":!1},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),o=this.options.offset,s=o.top,n=o.bottom,r=t("body").height();"object"!=typeof o&&(n=s=o),"function"==typeof s&&(s=o.top(this.$element)),"function"==typeof n&&(n=o.bottom(this.$element));var a=this.getState(r,e,s,n);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-n})}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){var i,o=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(o)}
function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),n=t.extend({},o.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&n.toggle&&"show"==e&&(n.toggle=!1),s||i.data("bs.collapse",s=new o(this,n)),"string"==typeof e&&s[e]()})}
var o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,i),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.0",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var n=t.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[r](this.$element[0][l])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION):s.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,o){var s=t(o);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var s=t(this);s.attr("data-target")||o.preventDefault();var n=e(s),r=n.data("bs.collapse"),a=r?"toggle":t.extend({},s.data(),{trigger:this});i.call(n,a)})}(jQuery),+function(t){"use strict";function e(i,o){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}
function i(i){return this.each(function(){var o=t(this),s=o.data("bs.scrollspy"),n="object"==typeof i&&i;s||o.data("bs.scrollspy",s=new e(this,n)),"string"==typeof i&&s[i]()})}
e.VERSION="3.3.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var o=this;this.$body.find(this.selector).map(function(){var o=t(this),s=o.data("target")||o.attr("href"),n=/^#./.test(s)&&t(s);return n&&n.length&&n.is(":visible")&&[[n[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){o.offsets.push(this[0]),o.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,n=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=o)return r!=(t=n[n.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var o=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=o,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}
t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery);

6140
web/public/js/d3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,14 @@
"use strict";
var sysStat,
sockets = {},
sockets = {},
pageIndex = 1,
pageLoaded,
procAnimated,
procs,
prevProcs,
tmps = {},
eles = {},
tmps = {},
eles = {},
timer,
popupShown,
popupProc,
@ -667,6 +667,7 @@ function bindPopup(o){
popupShown = false;
setFPEnable(true, false);
destroyTail();
destroyMonitor();
popupProc = null;
},
template : '<div id="popup"><div class="load"></div></div>'
@ -726,18 +727,30 @@ function showPopupTab(proc, delayed){
scrollTo: 0
});
var tab = $(this).text().trim();
if (tab != 'Log') {
destroyTail();
$('#log').html('<div class="load"></div>');
scrolled = false;
popupProc = null;
}
if (tab != 'Monitor') {
destroyMonitor();
$('#monitor').html('<div class="load"></div>');
popupProc = null;
}
// Tail logs.
if ($(this).text().trim() == 'Log') {
if (tab == 'Log') {
popupProc = proc;
return tailLogs();
}
// Reset log tab to `loading` status
$('#log').html('<div class="load"></div>');
scrolled = false;
// Destroy tail immediately.
destroyTail();
popupProc = null;
if (tab == 'Monitor') {
popupProc = proc;
return monitorProc();
}
})
}
@ -746,17 +759,17 @@ function showPopupTab(proc, delayed){
* @returns {*}
*/
function tailLogs(){
if(!popupProc){
if (!popupProc) {
$('#log').html('<span style="color:#ff0000">Process does not exist.</span>')
return;
}
if(!sockets.log) {
if (!sockets.log) {
sockets.log = io('/log');
sockets.log.on('log', appendLogs);
sockets.log.on('connect', function(){
sockets.log.emit('tail', popupProc.pm_id);
});
}else{
} else {
sockets.log.connect();
}
}
@ -789,15 +802,70 @@ function appendLogs(log){
}
/**
* Destroy heart beat of tail.
* Destroy tail socket.
*/
function destroyTail(){
if(!sockets.log){
if (!sockets.log) {
return;
}
sockets.log.disconnect();
}
/**
* Monitor the memory && CPU usage of process.
*/
function monitorProc(){
if (!popupProc || popupProc.pid == 0) {
$('#monitor').html('<span style="color:#ff0000">Process does not exist or is not running.</span>')
return;
}
if (!sockets.proc) {
sockets.proc = io('/proc');
sockets.proc.on('proc', appendData);
sockets.proc.on('connect', function(){
sockets.proc.emit('proc', popupProc.pid);
var now = Date.now(),
delay = 3000,
len = lineChart.settings.queueLength;
lineChart.data = d3.range(len).map(function(n){
return {time: now - (len - n) * delay, usage: {cpu: 0, memory: 0}};
});
});
} else {
sockets.proc.connect();
}
}
/**
* Append data to lineChart.
* @param proc
*/
function appendData(proc){
if (!popupProc || popupProc.pid != proc.pid) {
return;
}
var loadEl = $('#monitor>.load');
lineChart.data.push(proc);
if (loadEl.length > 0) {
loadEl.remove();
lineChart.next();
}
}
/**
* Destroy monitor socket.
*/
function destroyMonitor(){
if (!sockets.proc) {
return;
}
sockets.proc.disconnect();
lineChart.data = [];
lineChart.eles = {};
}
/**
* Get process by Uid span element.
* @param {jQuery} ele
@ -907,4 +975,158 @@ function highlight(data, indent){
}
return '<span style="color: #' + color + '">' + m + '</span>';
}).replace(/\n/, '<br />');
};
/**
* Line chart represents memory / CPU usage.
*/
var lineChart = {
settings: {
id : '#monitor',
width : 580,
height : 270,
ticks : 5,
tension : 0.8,
padding : 10,
queueLength : 20,
transitionDelay: 3000,
fancyDelay : 1000,
tickFormat : '%H:%M:%S',
series : ['cpu', 'memory'],
colors : {
line: {cpu: 'rgba(0, 200, 0, 1)', memory: 'rgba(200, 200, 0, 1)'},
dot : '#ff5400'
}
},
data : [],
eles : {},
next : function(){
var ng = !this.eles.svg;
if (ng) {
this._graph();
}
var st = this.settings;
if (this.data.length < st.queueLength) {
return;
}
this.eles.path.attr('transform', 'translate(0, ' + st.padding + ')');
this.eles.xAxis.call(this.eles.x.axis);
this.eles.x.domain([this.data[1].time, this.data[st.queueLength - 1].time]);
st.series.forEach(function(key){
lineChart.eles[key + 'LineEl']
.attr('d', lineChart.eles[key + 'Line'])
.attr('transform', null);
});
if (ng) {
return this.next();
}
this.eles.path
.transition()
.duration(st.transitionDelay)
.ease('linear')
.attr('transform', 'translate(' + this.eles.x(this.data[0].time) + ', ' + st.padding + ')')
.each('end', function(){
lineChart.next();
});
this.eles.xAxis.transition()
.duration(st.transitionDelay)
.ease('basic')
.call(this.eles.x.axis);
this.data.shift();
},
_graph : function(){
var st = this.settings;
st.gWidth = st.width;
st.gHeight = st.height - 50;
var series = '<ul>';
st.series.forEach(function(key){
series += '<li style="color:' + st.colors.line[key] + '">' + key + '</li>';
});
series += '</ul>';
$(series).appendTo(st.id);
this.eles.x = d3.time
.scale()
.range([0, st.gWidth]);
this.eles.x.axis = d3.svg.axis()
.scale(this.eles.x)
.tickFormat(d3.time.format(st.tickFormat))
.ticks(st.ticks)
.orient('bottom');
this.eles.y = d3.scale
.linear()
.domain([0, 100])
.range([st.gHeight, 0])
.clamp(true);
this.eles.y.axis = d3.svg
.axis()
.scale(this.eles.y)
.orient('right')
.ticks(st.ticks);
this.eles.svg = d3
.select(lineChart.settings.id)
.append('svg')
.attr('width', st.width)
.attr('height', st.height);
this.eles.svg.append('defs').append('clipPath')
.attr('id', 'clip')
.append('rect')
.attr('width', st.gWidth)
.attr('height', st.height);
this.eles.g = this.eles.svg
.append('g')
.attr('clip-path', 'url(#clip)')
.selectAll('g')
.data([this.data])
.enter()
.append('g')
.attr('transform', 'translate(0, 0)');
this.eles.path = this.eles.g.append('g')
.attr('transform', 'translate(0, ' + st.padding + ')');
st.series.forEach(function(key){
lineChart.eles[key + 'Line'] = d3.svg
.line()
.interpolate('cardinal')
.tension(st.tension)
.x(function(d){
return lineChart.eles.x(d.time);
})
.y(function(d){
return lineChart.eles.y(d.usage[key]);
});
lineChart.eles[key + 'LineEl'] = lineChart.eles.path.append('path')
.attr('class', 'line')
.style('stroke', st.colors.line[key])
.attr('d', lineChart.eles[key + 'Line']);
});
this.eles.g.append('g')
.attr('class', 'y axis')
.attr('transform', 'translate(1, ' + st.padding + ')')
.call(this.eles.y.axis);
this.eles.xAxis = this.eles.g.append('g')
.attr('class', 'x axis')
.attr('transform', 'translate(0,' + (st.gHeight + st.padding) + ')')
.call(this.eles.x.axis);
}
};

File diff suppressed because one or more lines are too long

View File

@ -1,57 +1,5 @@
/*! jquery.avgrund - v1.3.2 (http://labs.voronianski.com/jquery.avgrund.js) */
!function(a){
"function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? module.exports = a : a(jQuery)
}(function($){
$.fn.avgrund = function(a){
var b = {
width : 380,
height : 280,
showClose : !1,
showCloseText : "",
closeByEscape : !0,
closeByDocument : !0,
holderClass : "",
overlayClass : "",
enableStackAnimation: !1,
onBlurContainer : "",
openOnEvent : !0,
setEvent : "click",
onLoad : !1,
onUnload : !1,
template : "<p>This is test popin content!</p>"
};
return a = $.extend(b, a), this.each(function(){
function b(b){
a.closeByEscape && 27 === b.keyCode && e()
}
function c(b){
a.closeByDocument ? $(b.target).is(".avgrund-overlay, .avgrund-close") && (b.preventDefault(), e()) : $(b.target).is(".avgrund-close") && (b.preventDefault(), e())
}
function d(){
"function" == typeof a.onLoad && a.onLoad(f), setTimeout(function(){
g.addClass("avgrund-active")
}, 100);
var d = $('<div class="avgrund-popin ' + a.holderClass + '"></div>');
d.append(j), g.append(d), $(".avgrund-popin").css({
width : h + "px",
height : i + "px",
"margin-left": "-" + (h / 2 + 10) + "px",
"margin-top" : "-" + (i / 2 + 10) + "px"
}), a.showClose && $(".avgrund-popin").append('<a href="#" class="avgrund-close">' + a.showCloseText + "</a>"), a.enableStackAnimation && $(".avgrund-popin").addClass("stack"), g.bind("keyup", b).bind("click", c)
}
function e(){
g.unbind("keyup", b).unbind("click", c).removeClass("avgrund-active"), setTimeout(function(){
$(".avgrund-popin").remove()
}, 500), "function" == typeof a.onUnload && a.onUnload(f)
}
var f = $(this), g = $("body"), h = a.width > 640 ? 640 : a.width, i = a.height > 350 ? 350 : a.height, j = "function" == typeof a.template ? a.template(f) : a.template;
g.addClass("avgrund-ready"), 0 === $(".avgrund-overlay").length && g.append('<div class="avgrund-overlay ' + a.overlayClass + '"></div>'), "" !== a.onBlurContainer && $(a.onBlurContainer).addClass("avgrund-blur"), a.openOnEvent ? f.bind(a.setEvent, function(a){
a.stopPropagation(), $(a.target).is("a") && a.preventDefault(), d()
}) : d()
})
}
});
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function($){$.fn.avgrund=function(a){var b={width:380,height:280,showClose:!1,showCloseText:"",closeByEscape:!0,closeByDocument:!0,holderClass:"",overlayClass:"",enableStackAnimation:!1,onBlurContainer:"",openOnEvent:!0,setEvent:"click",onLoad:!1,onUnload:!1,template:"<p>This is test popin content!</p>"};return a=$.extend(b,a),this.each(function(){function b(b){a.closeByEscape&&27===b.keyCode&&e()}
function c(b){a.closeByDocument?$(b.target).is(".avgrund-overlay, .avgrund-close")&&(b.preventDefault(),e()):$(b.target).is(".avgrund-close")&&(b.preventDefault(),e())}
function d(){"function"==typeof a.onLoad&&a.onLoad(f),setTimeout(function(){g.addClass("avgrund-active")},100);var d=$('<div class="avgrund-popin '+a.holderClass+'"></div>');d.append(j),g.append(d),$(".avgrund-popin").css({width:h+"px",height:i+"px","margin-left":"-"+(h/2+10)+"px","margin-top":"-"+(i/2+10)+"px"}),a.showClose&&$(".avgrund-popin").append('<a href="#" class="avgrund-close">'+a.showCloseText+"</a>"),a.enableStackAnimation&&$(".avgrund-popin").addClass("stack"),g.bind("keyup",b).bind("click",c)}
function e(){g.unbind("keyup",b).unbind("click",c).removeClass("avgrund-active"),setTimeout(function(){$(".avgrund-popin").remove()},500),"function"==typeof a.onUnload&&a.onUnload(f)}
var f=$(this),g=$("body"),h=a.width>640?640:a.width,i=a.height>350?350:a.height,j="function"==typeof a.template?a.template(f):a.template;g.addClass("avgrund-ready"),0===$(".avgrund-overlay").length&&g.append('<div class="avgrund-overlay '+a.overlayClass+'"></div>'),""!==a.onBlurContainer&&$(a.onBlurContainer).addClass("avgrund-blur"),a.openOnEvent?f.bind(a.setEvent,function(a){a.stopPropagation(),$(a.target).is("a")&&a.preventDefault(),d()}):d()})}});

View File

@ -1,642 +1,50 @@
/**
* fullPage 2.4.5
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function(a){
a.fn.fullpage = function(c){
function ga(){
a("body").append('<div id="fp-nav"><ul></ul></div>');
h = a("#fp-nav");
h.css("color", c.navigationColor);
h.addClass(c.navigationPosition);
for (var b = 0; b < a(".fp-section").length; b++) {
var d = "";
c.anchors.length && (d = c.anchors[b]);
var e = c.navigationTooltips[b];
"undefined" === typeof e && (e = "");
h.find("ul").append('<li data-tooltip="' + e + '"><a href="#' + d + '"><span></span></a></li>')
}
}
function I(){
a(".fp-section").each(function(){
var b = a(this).find(".fp-slide");
b.length ? b.each(function(){
w(a(this))
}) : w(a(this))
});
a.isFunction(c.afterRender) && c.afterRender.call(this)
}
function J(){
if (!c.autoScrolling || c.scrollBar) {
var b = a(window).scrollTop(), d = 0, e = Math.abs(b - a(".fp-section").first().offset().top);
a(".fp-section").each(function(c){
var f = Math.abs(b - a(this).offset().top);
f < e && (d = c, e = f)
});
var f = a(".fp-section").eq(d)
}
if (!c.autoScrolling && !f.hasClass("active")) {
A = !0;
var g = a(".fp-section.active").index(".fp-section") + 1, ha = B(f), h = f.data("anchor");
f.addClass("active").siblings().removeClass("active");
l || (a.isFunction(c.onLeave) && c.onLeave.call(this, g, f.index(".fp-section") + 1, ha), a.isFunction(c.afterLoad) && c.afterLoad.call(this, h, f.index(".fp-section") + 1));
C(h, 0);
c.anchors.length && !l && (q = h, location.hash = h);
clearTimeout(K);
K = setTimeout(function(){
A = !1
}, 100)
}
c.scrollBar && (clearTimeout(L), L = setTimeout(function(){
l || m(f)
}, 1E3))
}
function M(b){
return scrollable = b.find(".fp-slides").length ? b.find(".fp-slide.active").find(".fp-scrollable") : b.find(".fp-scrollable")
}
function x(b, d){
if ("down" == b)var c = "bottom",
f = a.fn.fullpage.moveSectionDown; else c = "top", f = a.fn.fullpage.moveSectionUp;
if (0 < d.length)if (c = "top" === c ? !d.scrollTop() : "bottom" === c ? d.scrollTop() + 1 + d.innerHeight() >= d[0].scrollHeight : void 0, c)f(); else return !0; else f()
}
function ia(b){
var d = b.originalEvent;
if (!N(b.target)) {
c.autoScrolling && b.preventDefault();
b = a(".fp-section.active");
var e = M(b);
l || t || (d = O(d), r = d.y, y = d.x, b.find(".fp-slides").length && Math.abs(z - y) > Math.abs(s - r) ? Math.abs(z - y) > a(window).width() / 100 * c.touchSensitivity && (z > y ? a.fn.fullpage.moveSlideRight() :
a.fn.fullpage.moveSlideLeft()) : c.autoScrolling && Math.abs(s - r) > a(window).height() / 100 * c.touchSensitivity && (s > r ? x("down", e) : r > s && x("up", e)))
}
}
function N(b, d){
d = d || 0;
var e = a(b).parent();
return d < c.normalScrollElementTouchThreshold && e.is(c.normalScrollElements) ? !0 : d == c.normalScrollElementTouchThreshold ? !1 : N(e, ++d)
}
function ja(b){
b = O(b.originalEvent);
s = b.y;
z = b.x
}
function n(b){
if (c.autoScrolling) {
b = window.event || b;
var d = Math.max(-1, Math.min(1, b.wheelDelta || -b.deltaY || -b.detail));
c.scrollBar && (b.preventDefault ?
b.preventDefault() : b.returnValue = !1);
b = a(".fp-section.active");
b = M(b);
l || (0 > d ? x("down", b) : x("up", b));
return !1
}
}
function P(b){
var d = a(".fp-section.active").find(".fp-slides");
if (d.length && !t) {
var e = d.find(".fp-slide.active"), f = null, f = "prev" === b ? e.prev(".fp-slide") : e.next(".fp-slide");
if (!f.length) {
if (!c.loopHorizontal)return;
f = "prev" === b ? e.siblings(":last") : e.siblings(":first")
}
t = !0;
u(d, f)
}
}
function Q(){
a(".fp-slide.active").each(function(){
D(a(this))
})
}
function m(b, d, e){
var f = b.position();
if ("undefined" !== typeof f && (d = {
element : b,
callback : d,
isMovementUp : e,
dest : f,
dtop : f.top,
yMovement : B(b),
anchorLink : b.data("anchor"),
sectionIndex : b.index(".fp-section"),
activeSlide : b.find(".fp-slide.active"),
activeSection : a(".fp-section.active"),
leavingSection : a(".fp-section.active").index(".fp-section") + 1,
localIsResizing: v
}, !(d.activeSection.is(b) && !v || c.scrollBar && a(window).scrollTop() === d.dtop))) {
if (d.activeSlide.length)var g = d.activeSlide.data("anchor"), h = d.activeSlide.index();
c.autoScrolling && c.continuousVertical &&
"undefined" !== typeof d.isMovementUp && (!d.isMovementUp && "up" == d.yMovement || d.isMovementUp && "down" == d.yMovement) && (d.isMovementUp ? a(".fp-section.active").before(d.activeSection.nextAll(".fp-section")) : a(".fp-section.active").after(d.activeSection.prevAll(".fp-section").get().reverse()), p(a(".fp-section.active").position().top), Q(), d.wrapAroundElements = d.activeSection, d.dest = d.element.position(), d.dtop = d.dest.top, d.yMovement = B(d.element));
b.addClass("active").siblings().removeClass("active");
l = !0;
"undefined" !== typeof d.anchorLink && R(h, g, d.anchorLink);
a.isFunction(c.onLeave) && !d.localIsResizing && c.onLeave.call(this, d.leavingSection, d.sectionIndex + 1, d.yMovement);
ka(d);
q = d.anchorLink;
c.autoScrolling && C(d.anchorLink, d.sectionIndex)
}
}
function ka(b){
if (c.css3 && c.autoScrolling && !c.scrollBar)S("translate3d(0px, -" + b.dtop + "px, 0px)", !0), setTimeout(function(){
T(b)
}, c.scrollingSpeed); else {
var d = la(b);
a(d.element).animate(d.options, c.scrollingSpeed, c.easing).promise().done(function(){
T(b)
})
}
}
function la(b){
var a = {};
c.autoScrolling && !c.scrollBar ? (a.options = {top: -b.dtop}, a.element = "." + U) : (a.options = {scrollTop: b.dtop}, a.element = "html, body");
return a
}
function ma(b){
b.wrapAroundElements && b.wrapAroundElements.length && (b.isMovementUp ? a(".fp-section:first").before(b.wrapAroundElements) : a(".fp-section:last").after(b.wrapAroundElements), p(a(".fp-section.active").position().top), Q())
}
function T(b){
ma(b);
a.isFunction(c.afterLoad) && !b.localIsResizing && c.afterLoad.call(this, b.anchorLink, b.sectionIndex + 1);
setTimeout(function(){
l = !1;
a.isFunction(b.callback) && b.callback.call(this)
}, 600)
}
function V(){
if (!A) {
var b = window.location.hash.replace("#", "").split("/"), a = b[0], b = b[1];
if (a.length) {
var c = "undefined" === typeof q, f = "undefined" === typeof q && "undefined" === typeof b && !t;
(a && a !== q && !c || f || !t && E != b) && F(a, b)
}
}
}
function u(b, d){
var e = d.position(), f = b.find(".fp-slidesContainer").parent(), g = d.index(), h = b.closest(".fp-section"), l = h.index(".fp-section"), m = h.data("anchor"), p = h.find(".fp-slidesNav"), k = d.data("anchor"), q = v;
if (c.onSlideLeave) {
var n =
h.find(".fp-slide.active").index(), r;
r = n == g ? "none" : n > g ? "left" : "right";
q || "none" === r || a.isFunction(c.onSlideLeave) && c.onSlideLeave.call(this, m, l + 1, n, r)
}
d.addClass("active").siblings().removeClass("active");
"undefined" === typeof k && (k = g);
c.loopHorizontal || (h.find(".fp-controlArrow.fp-prev").toggle(0 != g), h.find(".fp-controlArrow.fp-next").toggle(!d.is(":last-child")));
h.hasClass("active") && R(g, k, m);
var s = function(){
q || a.isFunction(c.afterSlideLoad) && c.afterSlideLoad.call(this, m, l + 1, k, g);
t = !1
};
c.css3 ?
(e = "translate3d(-" + e.left + "px, 0px, 0px)", W(b.find(".fp-slidesContainer"), 0 < c.scrollingSpeed).css(X(e)), setTimeout(function(){
s()
}, c.scrollingSpeed, c.easing)) : f.animate({scrollLeft: e.left}, c.scrollingSpeed, c.easing, function(){
s()
});
p.find(".active").removeClass("active");
p.find("li").eq(g).find("a").addClass("active")
}
function Y(){
Z();
G ? "text" !== a(document.activeElement).attr("type") && a.fn.fullpage.reBuild(!0) : (clearTimeout($), $ = setTimeout(function(){
a.fn.fullpage.reBuild(!0)
}, 500))
}
function Z(){
if (c.responsive) {
var b =
g.hasClass("fp-responsive");
a(window).width() < c.responsive ? b || (a.fn.fullpage.setAutoScrolling(!1), a("#fp-nav").hide(), g.addClass("fp-responsive")) : b && (a.fn.fullpage.setAutoScrolling(!0), a("#fp-nav").show(), g.removeClass("fp-responsive"))
}
}
function W(b, a){
var e = "all " + c.scrollingSpeed + "ms " + c.easingcss3;
return a ? (b.removeClass("fp-notransition"), b.css({"-webkit-transition": e, transition: e})) : H(b)
}
function H(b){
return b.addClass("fp-notransition")
}
function na(b, c){
if (825 > b || 900 > c) {
var e = Math.min(100 *
b / 825, 100 * c / 900).toFixed(2);
a("body").css("font-size", e + "%")
} else a("body").css("font-size", "100%")
}
function C(b, d){
c.menu && (a(c.menu).find(".active").removeClass("active"), a(c.menu).find('[data-menuanchor="' + b + '"]').addClass("active"));
c.navigation && (a("#fp-nav").find(".active").removeClass("active"), b ? a("#fp-nav").find('a[href="#' + b + '"]').addClass("active") : a("#fp-nav").find("li").eq(d).find("a").addClass("active"))
}
function B(b){
var c = a(".fp-section.active").index(".fp-section");
b = b.index(".fp-section");
return c == b ? "none" : c > b ? "up" : "down"
}
function w(b){
b.css("overflow", "hidden");
var a = b.closest(".fp-section"), e = b.find(".fp-scrollable");
if (e.length)var f = e.get(0).scrollHeight; else f = b.get(0).scrollHeight, c.verticalCentered && (f = b.find(".fp-tableCell").get(0).scrollHeight);
a = k - parseInt(a.css("padding-bottom")) - parseInt(a.css("padding-top"));
f > a ? e.length ? e.css("height", a + "px").parent().css("height", a + "px") : (c.verticalCentered ? b.find(".fp-tableCell").wrapInner('<div class="fp-scrollable" />') : b.wrapInner('<div class="fp-scrollable" />'),
b.find(".fp-scrollable").slimScroll({
allowPageScroll: !0,
height : a + "px",
size : "10px",
alwaysVisible : !0
})) : aa(b);
b.css("overflow", "")
}
function aa(b){
b.find(".fp-scrollable").children().first().unwrap().unwrap();
b.find(".slimScrollBar").remove();
b.find(".slimScrollRail").remove()
}
function ba(b){
b.addClass("fp-table").wrapInner('<div class="fp-tableCell" style="height:' + ca(b) + 'px;" />')
}
function ca(b){
var a = k;
if (c.paddingTop || c.paddingBottom)a = b, a.hasClass("fp-section") || (a = b.closest(".fp-section")), b = parseInt(a.css("padding-top")) +
parseInt(a.css("padding-bottom")), a = k - b;
return a
}
function S(b, a){
W(g, a);
g.css(X(b))
}
function F(b, c){
"undefined" === typeof c && (c = 0);
var e = isNaN(b) ? a('[data-anchor="' + b + '"]') : a(".fp-section").eq(b - 1);
b === q || e.hasClass("active") ? da(e, c) : m(e, function(){
da(e, c)
})
}
function da(b, a){
if ("undefined" != typeof a) {
var c = b.find(".fp-slides"), f = c.find('[data-anchor="' + a + '"]');
f.length || (f = c.find(".fp-slide").eq(a));
f.length && u(c, f)
}
}
function oa(b, a){
b.append('<div class="fp-slidesNav"><ul></ul></div>');
var e = b.find(".fp-slidesNav");
e.addClass(c.slidesNavPosition);
for (var f = 0; f < a; f++)e.find("ul").append('<li><a href="#"><span></span></a></li>');
e.css("margin-left", "-" + e.width() / 2 + "px");
e.find("li").first().find("a").addClass("active")
}
function R(b, a, e){
var f = "";
c.anchors.length && (b ? ("undefined" !== typeof e && (f = e), "undefined" === typeof a && (a = b), E = a, location.hash = f + "/" + a) : ("undefined" !== typeof b && (E = a), location.hash = e))
}
function pa(){
var a = document.createElement("p"), c, e = {
webkitTransform: "-webkit-transform", OTransform: "-o-transform",
msTransform : "-ms-transform", MozTransform: "-moz-transform", transform: "transform"
};
document.body.insertBefore(a, null);
for (var f in e)void 0 !== a.style[f] && (a.style[f] = "translate3d(1px,1px,1px)", c = window.getComputedStyle(a).getPropertyValue(e[f]));
document.body.removeChild(a);
return void 0 !== c && 0 < c.length && "none" !== c
}
function ea(){
return window.PointerEvent ? {down: "pointerdown", move: "pointermove"} : {
down: "MSPointerDown",
move: "MSPointerMove"
}
}
function O(a){
var c = [];
window.navigator.msPointerEnabled ? (c.y =
a.pageY, c.x = a.pageX) : (c.y = a.touches[0].pageY, c.x = a.touches[0].pageX);
return c
}
function D(b){
var d = c.scrollingSpeed;
a.fn.fullpage.setScrollingSpeed(0);
u(b.closest(".fp-slides"), b);
a.fn.fullpage.setScrollingSpeed(d)
}
function p(a){
c.scrollBar ? g.scrollTop(a) : c.css3 ? S("translate3d(0px, -" + a + "px, 0px)", !1) : g.css("top", -a)
}
function X(a){
return {"-webkit-transform": a, "-moz-transform": a, "-ms-transform": a, transform: a}
}
function qa(){
p(0);
a("#fp-nav, .fp-slidesNav, .fp-controlArrow").remove();
a(".fp-section").css({
height : "",
"background-color": "", padding: ""
});
a(".fp-slide").css({width: ""});
g.css({height: "", position: "", "-ms-touch-action": "", "touch-action": ""});
a(".fp-section, .fp-slide").each(function(){
aa(a(this));
a(this).removeClass("fp-table active")
});
H(g);
H(g.find(".fp-easing"));
g.find(".fp-tableCell, .fp-slidesContainer, .fp-slides").each(function(){
a(this).replaceWith(this.childNodes)
});
a("html, body").scrollTop(0)
}
c = a.extend({
menu : !1,
anchors : [],
navigation : !1,
navigationPosition : "right",
navigationColor : "#000",
navigationTooltips : [],
slidesNavigation : !1,
slidesNavPosition : "bottom",
scrollBar : !1,
css3 : !0,
scrollingSpeed : 700,
autoScrolling : !0,
easing : "easeInQuart",
easingcss3 : "ease",
loopBottom : !1,
loopTop : !1,
loopHorizontal : !0,
continuousVertical : !1,
normalScrollElements : null,
scrollOverflow : !1,
touchSensitivity : 5,
normalScrollElementTouchThreshold: 5,
keyboardScrolling : !0,
animateAnchor : !0,
controlArrowColor : "#fff",
verticalCentered : !0,
resize : !0,
sectionsColor : [],
paddingTop : 0,
paddingBottom : 0,
fixedElements : null,
responsive : 0,
sectionSelector : ".section",
slideSelector : ".slide",
afterLoad : null,
onLeave : null,
afterRender : null,
afterResize : null,
afterReBuild : null,
afterSlideLoad : null,
onSlideLeave : null
}, c);
c.continuousVertical && (c.loopTop || c.loopBottom) && (c.continuousVertical = !1, console && console.warn && console.warn("Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));
c.continuousVertical && c.scrollBar && (c.continuousVertical = !1, console && console.warn && console.warn("Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));
a.fn.fullpage.setAutoScrolling = function(b){
c.autoScrolling = b;
b = a(".fp-section.active");
c.autoScrolling && !c.scrollBar ? (a("html, body").css({
overflow: "hidden",
height : "100%"
}), g.css({
"-ms-touch-action": "none",
"touch-action" : "none"
}), b.length && p(b.position().top)) : (a("html, body").css({
overflow: "visible",
height : "initial"
}), g.css({"-ms-touch-action": "", "touch-action": ""}), p(0), a("html, body").scrollTop(b.position().top))
};
a.fn.fullpage.setScrollingSpeed = function(a){
c.scrollingSpeed = a
};
a.fn.fullpage.setMouseWheelScrolling =
function(a){
a ? document.addEventListener ? (document.addEventListener("mousewheel", n, !1), document.addEventListener("wheel", n, !1)) : document.attachEvent("onmousewheel", n) : document.addEventListener ? (document.removeEventListener("mousewheel", n, !1), document.removeEventListener("wheel", n, !1)) : document.detachEvent("onmousewheel", n)
};
a.fn.fullpage.setAllowScrolling = function(b){
if (b) {
if (a.fn.fullpage.setMouseWheelScrolling(!0), G || fa)MSPointer = ea(), a(document).off("touchstart " + MSPointer.down).on("touchstart " +
MSPointer.down, ja), a(document).off("touchmove " + MSPointer.move).on("touchmove " + MSPointer.move, ia)
} else if (a.fn.fullpage.setMouseWheelScrolling(!1), G || fa)MSPointer = ea(), a(document).off("touchstart " + MSPointer.down), a(document).off("touchmove " + MSPointer.move)
};
a.fn.fullpage.setKeyboardScrolling = function(a){
c.keyboardScrolling = a
};
a.fn.fullpage.moveSectionUp = function(){
var b = a(".fp-section.active").prev(".fp-section");
b.length || !c.loopTop && !c.continuousVertical || (b = a(".fp-section").last());
b.length &&
m(b, null, !0)
};
a.fn.fullpage.moveSectionDown = function(){
var b = a(".fp-section.active").next(".fp-section");
b.length || !c.loopBottom && !c.continuousVertical || (b = a(".fp-section").first());
b.length && m(b, null, !1)
};
a.fn.fullpage.moveTo = function(b, c){
var e = "", e = isNaN(b) ? a('[data-anchor="' + b + '"]') : a(".fp-section").eq(b - 1);
"undefined" !== typeof c ? F(b, c) : 0 < e.length && m(e)
};
a.fn.fullpage.moveSlideRight = function(){
P("next")
};
a.fn.fullpage.moveSlideLeft = function(){
P("prev")
};
a.fn.fullpage.reBuild = function(b){
v = !0;
var d = a(window).width();
k = a(window).height();
c.resize && na(k, d);
a(".fp-section").each(function(){
parseInt(a(this).css("padding-bottom"));
parseInt(a(this).css("padding-top"));
c.verticalCentered && a(this).find(".fp-tableCell").css("height", ca(a(this)) + "px");
a(this).css("height", k + "px");
if (c.scrollOverflow) {
var b = a(this).find(".fp-slide");
b.length ? b.each(function(){
w(a(this))
}) : w(a(this))
}
b = a(this).find(".fp-slides");
b.length && u(b, b.find(".fp-slide.active"))
});
a(".fp-section.active").position();
d = a(".fp-section.active");
d.index(".fp-section") && m(d);
v = !1;
a.isFunction(c.afterResize) && b && c.afterResize.call(this);
a.isFunction(c.afterReBuild) && !b && c.afterReBuild.call(this)
};
var t = !1, G = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|Windows Phone|Tizen|Bada)/), fa = "ontouchstart"in window || 0 < navigator.msMaxTouchPoints, g = a(this), k = a(window).height(), l = !1, v = !1, q, E, h, U = "fullpage-wrapper";
a.fn.fullpage.setAllowScrolling(!0);
c.css3 && (c.css3 = pa());
a(this).length ? (g.css({height: "100%", position: "relative"}),
g.addClass(U)) : console.error("Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();");
a(c.sectionSelector).each(function(){
a(this).addClass("fp-section")
});
a(c.slideSelector).each(function(){
a(this).addClass("fp-slide")
});
c.navigation && ga();
a(".fp-section").each(function(b){
var d = a(this), e = a(this).find(".fp-slide"), f = e.length;
b || 0 !== a(".fp-section.active").length || a(this).addClass("active");
a(this).css("height", k + "px");
(c.paddingTop || c.paddingBottom) &&
a(this).css("padding", c.paddingTop + " 0 " + c.paddingBottom + " 0");
"undefined" !== typeof c.sectionsColor[b] && a(this).css("background-color", c.sectionsColor[b]);
"undefined" !== typeof c.anchors[b] && a(this).attr("data-anchor", c.anchors[b]);
if (1 < f) {
b = 100 * f;
var g = 100 / f;
e.wrapAll('<div class="fp-slidesContainer" />');
e.parent().wrap('<div class="fp-slides" />');
a(this).find(".fp-slidesContainer").css("width", b + "%");
a(this).find(".fp-slides").after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>');
"#fff" != c.controlArrowColor && (a(this).find(".fp-controlArrow.fp-next").css("border-color", "transparent transparent transparent " + c.controlArrowColor), a(this).find(".fp-controlArrow.fp-prev").css("border-color", "transparent " + c.controlArrowColor + " transparent transparent"));
c.loopHorizontal || a(this).find(".fp-controlArrow.fp-prev").hide();
c.slidesNavigation && oa(a(this), f);
e.each(function(b){
a(this).css("width", g + "%");
c.verticalCentered && ba(a(this))
});
d = d.find(".fp-slide.active");
0 == d.length ? e.eq(0).addClass("active") :
D(d)
} else c.verticalCentered && ba(a(this))
}).promise().done(function(){
a.fn.fullpage.setAutoScrolling(c.autoScrolling);
var b = a(".fp-section.active").find(".fp-slide.active");
b.length && (0 != a(".fp-section.active").index(".fp-section") || 0 == a(".fp-section.active").index(".fp-section") && 0 != b.index()) && D(b);
c.fixedElements && c.css3 && a(c.fixedElements).appendTo("body");
c.navigation && (h.css("margin-top", "-" + h.height() / 2 + "px"), h.find("li").eq(a(".fp-section.active").index(".fp-section")).find("a").addClass("active"));
c.menu && c.css3 && a(c.menu).closest(".fullpage-wrapper").length && a(c.menu).appendTo("body");
c.scrollOverflow ? ("complete" === document.readyState && I(), a(window).on("load", I)) : a.isFunction(c.afterRender) && c.afterRender.call(this);
Z();
b = window.location.hash.replace("#", "").split("/")[0];
if (b.length) {
var d = a('[data-anchor="' + b + '"]');
!c.animateAnchor && d.length && (c.autoScrolling ? p(d.position().top) : (p(0), a("html, body").scrollTop(d.position().top)), C(b, null), a.isFunction(c.afterLoad) && c.afterLoad.call(this,
b, d.index(".fp-section") + 1), d.addClass("active").siblings().removeClass("active"))
}
a(window).on("load", function(){
var a = window.location.hash.replace("#", "").split("/"), b = a[0], a = a[1];
b && F(b, a)
})
});
var K, L, A = !1;
a(window).on("scroll", J);
var s = 0, z = 0, r = 0, y = 0;
a(window).on("hashchange", V);
a(document).keydown(function(b){
if (c.keyboardScrolling && !l && c.autoScrolling)switch (b.which) {
case 38:
case 33:
a.fn.fullpage.moveSectionUp();
break;
case 40:
case 34:
a.fn.fullpage.moveSectionDown();
break;
case 36:
a.fn.fullpage.moveTo(1);
break;
case 35:
a.fn.fullpage.moveTo(a(".fp-section").length);
break;
case 37:
a.fn.fullpage.moveSlideLeft();
break;
case 39:
a.fn.fullpage.moveSlideRight()
}
});
a(document).on("click touchstart", "#fp-nav a", function(b){
b.preventDefault();
b = a(this).parent().index();
m(a(".fp-section").eq(b))
});
a(document).on("click touchstart", ".fp-slidesNav a", function(b){
b.preventDefault();
b = a(this).closest(".fp-section").find(".fp-slides");
var c = b.find(".fp-slide").eq(a(this).closest("li").index());
u(b, c)
});
a(document).on({
mouseenter : function(){
var b =
a(this).data("tooltip");
a('<div class="fp-tooltip ' + c.navigationPosition + '">' + b + "</div>").hide().appendTo(a(this)).fadeIn(200)
}, mouseleave: function(){
a(this).find(".fp-tooltip").fadeOut(200, function(){
a(this).remove()
})
}
}, "#fp-nav li");
c.normalScrollElements && (a(document).on("mouseenter", c.normalScrollElements, function(){
a.fn.fullpage.setMouseWheelScrolling(!1)
}), a(document).on("mouseleave", c.normalScrollElements, function(){
a.fn.fullpage.setMouseWheelScrolling(!0)
}));
a(".fp-section").on("click touchstart",
".fp-controlArrow", function(){
a(this).hasClass("fp-prev") ? a.fn.fullpage.moveSlideLeft() : a.fn.fullpage.moveSlideRight()
});
a(window).resize(Y);
var $;
a.fn.fullpage.destroy = function(b){
a.fn.fullpage.setAutoScrolling(!1);
a.fn.fullpage.setAllowScrolling(!1);
a.fn.fullpage.setKeyboardScrolling(!1);
a(window).off("scroll", J).off("hashchange", V).off("resize", Y);
a(document).off("click", "#fp-nav a").off("mouseenter", "#fp-nav li").off("mouseleave", "#fp-nav li").off("click", ".fp-slidesNav a").off("mouseover", c.normalScrollElements).off("mouseout",
c.normalScrollElements);
a(".fp-section").off("click", ".fp-controlArrow");
b && qa()
}
}
})(jQuery);
(function(a){a.fn.fullpage=function(c){function ga(){a("body").append('<div id="fp-nav"><ul></ul></div>');h=a("#fp-nav");h.css("color",c.navigationColor);h.addClass(c.navigationPosition);for(var b=0;b<a(".fp-section").length;b++){var d="";c.anchors.length&&(d=c.anchors[b]);var e=c.navigationTooltips[b];"undefined"===typeof e&&(e="");h.find("ul").append('<li data-tooltip="'+e+'"><a href="#'+d+'"><span></span></a></li>')}}
function I(){a(".fp-section").each(function(){var b=a(this).find(".fp-slide");b.length?b.each(function(){w(a(this))}):w(a(this))});a.isFunction(c.afterRender)&&c.afterRender.call(this)}
function J(){if(!c.autoScrolling||c.scrollBar){var b=a(window).scrollTop(),d=0,e=Math.abs(b-a(".fp-section").first().offset().top);a(".fp-section").each(function(c){var f=Math.abs(b-a(this).offset().top);f<e&&(d=c,e=f)});var f=a(".fp-section").eq(d)}
if(!c.autoScrolling&&!f.hasClass("active")){A=!0;var g=a(".fp-section.active").index(".fp-section")+1,ha=B(f),h=f.data("anchor");f.addClass("active").siblings().removeClass("active");l||(a.isFunction(c.onLeave)&&c.onLeave.call(this,g,f.index(".fp-section")+1,ha),a.isFunction(c.afterLoad)&&c.afterLoad.call(this,h,f.index(".fp-section")+1));C(h,0);c.anchors.length&&!l&&(q=h,location.hash=h);clearTimeout(K);K=setTimeout(function(){A=!1},100)}
c.scrollBar&&(clearTimeout(L),L=setTimeout(function(){l||m(f)},1E3))}
function M(b){return scrollable=b.find(".fp-slides").length?b.find(".fp-slide.active").find(".fp-scrollable"):b.find(".fp-scrollable")}
function x(b,d){if("down"==b)var c="bottom",f=a.fn.fullpage.moveSectionDown;else c="top",f=a.fn.fullpage.moveSectionUp;if(0<d.length)if(c="top"===c?!d.scrollTop():"bottom"===c?d.scrollTop()+1+d.innerHeight()>=d[0].scrollHeight:void 0,c)f();else return!0;else f()}
function ia(b){var d=b.originalEvent;if(!N(b.target)){c.autoScrolling&&b.preventDefault();b=a(".fp-section.active");var e=M(b);l||t||(d=O(d),r=d.y,y=d.x,b.find(".fp-slides").length&&Math.abs(z-y)>Math.abs(s-r)?Math.abs(z-y)>a(window).width()/100*c.touchSensitivity&&(z>y?a.fn.fullpage.moveSlideRight():a.fn.fullpage.moveSlideLeft()):c.autoScrolling&&Math.abs(s-r)>a(window).height()/100*c.touchSensitivity&&(s>r?x("down",e):r>s&&x("up",e)))}}
function N(b,d){d=d||0;var e=a(b).parent();return d<c.normalScrollElementTouchThreshold&&e.is(c.normalScrollElements)?!0:d==c.normalScrollElementTouchThreshold?!1:N(e,++d)}
function ja(b){b=O(b.originalEvent);s=b.y;z=b.x}
function n(b){if(c.autoScrolling){b=window.event||b;var d=Math.max(-1,Math.min(1,b.wheelDelta||-b.deltaY||-b.detail));c.scrollBar&&(b.preventDefault?b.preventDefault():b.returnValue=!1);b=a(".fp-section.active");b=M(b);l||(0>d?x("down",b):x("up",b));return!1}}
function P(b){var d=a(".fp-section.active").find(".fp-slides");if(d.length&&!t){var e=d.find(".fp-slide.active"),f=null,f="prev"===b?e.prev(".fp-slide"):e.next(".fp-slide");if(!f.length){if(!c.loopHorizontal)return;f="prev"===b?e.siblings(":last"):e.siblings(":first")}
t=!0;u(d,f)}}
function Q(){a(".fp-slide.active").each(function(){D(a(this))})}
function m(b,d,e){var f=b.position();if("undefined"!==typeof f&&(d={element:b,callback:d,isMovementUp:e,dest:f,dtop:f.top,yMovement:B(b),anchorLink:b.data("anchor"),sectionIndex:b.index(".fp-section"),activeSlide:b.find(".fp-slide.active"),activeSection:a(".fp-section.active"),leavingSection:a(".fp-section.active").index(".fp-section")+1,localIsResizing:v},!(d.activeSection.is(b)&&!v||c.scrollBar&&a(window).scrollTop()===d.dtop))){if(d.activeSlide.length)var g=d.activeSlide.data("anchor"),h=d.activeSlide.index();c.autoScrolling&&c.continuousVertical&&"undefined"!==typeof d.isMovementUp&&(!d.isMovementUp&&"up"==d.yMovement||d.isMovementUp&&"down"==d.yMovement)&&(d.isMovementUp?a(".fp-section.active").before(d.activeSection.nextAll(".fp-section")):a(".fp-section.active").after(d.activeSection.prevAll(".fp-section").get().reverse()),p(a(".fp-section.active").position().top),Q(),d.wrapAroundElements=d.activeSection,d.dest=d.element.position(),d.dtop=d.dest.top,d.yMovement=B(d.element));b.addClass("active").siblings().removeClass("active");l=!0;"undefined"!==typeof d.anchorLink&&R(h,g,d.anchorLink);a.isFunction(c.onLeave)&&!d.localIsResizing&&c.onLeave.call(this,d.leavingSection,d.sectionIndex+1,d.yMovement);ka(d);q=d.anchorLink;c.autoScrolling&&C(d.anchorLink,d.sectionIndex)}}
function ka(b){if(c.css3&&c.autoScrolling&&!c.scrollBar)S("translate3d(0px, -"+b.dtop+"px, 0px)",!0),setTimeout(function(){T(b)},c.scrollingSpeed);else{var d=la(b);a(d.element).animate(d.options,c.scrollingSpeed,c.easing).promise().done(function(){T(b)})}}
function la(b){var a={};c.autoScrolling&&!c.scrollBar?(a.options={top:-b.dtop},a.element="."+U):(a.options={scrollTop:b.dtop},a.element="html, body");return a}
function ma(b){b.wrapAroundElements&&b.wrapAroundElements.length&&(b.isMovementUp?a(".fp-section:first").before(b.wrapAroundElements):a(".fp-section:last").after(b.wrapAroundElements),p(a(".fp-section.active").position().top),Q())}
function T(b){ma(b);a.isFunction(c.afterLoad)&&!b.localIsResizing&&c.afterLoad.call(this,b.anchorLink,b.sectionIndex+1);setTimeout(function(){l=!1;a.isFunction(b.callback)&&b.callback.call(this)},600)}
function V(){if(!A){var b=window.location.hash.replace("#","").split("/"),a=b[0],b=b[1];if(a.length){var c="undefined"===typeof q,f="undefined"===typeof q&&"undefined"===typeof b&&!t;(a&&a!==q&&!c||f||!t&&E!=b)&&F(a,b)}}}
function u(b,d){var e=d.position(),f=b.find(".fp-slidesContainer").parent(),g=d.index(),h=b.closest(".fp-section"),l=h.index(".fp-section"),m=h.data("anchor"),p=h.find(".fp-slidesNav"),k=d.data("anchor"),q=v;if(c.onSlideLeave){var n=h.find(".fp-slide.active").index(),r;r=n==g?"none":n>g?"left":"right";q||"none"===r||a.isFunction(c.onSlideLeave)&&c.onSlideLeave.call(this,m,l+1,n,r)}
d.addClass("active").siblings().removeClass("active");"undefined"===typeof k&&(k=g);c.loopHorizontal||(h.find(".fp-controlArrow.fp-prev").toggle(0!=g),h.find(".fp-controlArrow.fp-next").toggle(!d.is(":last-child")));h.hasClass("active")&&R(g,k,m);var s=function(){q||a.isFunction(c.afterSlideLoad)&&c.afterSlideLoad.call(this,m,l+1,k,g);t=!1};c.css3?(e="translate3d(-"+e.left+"px, 0px, 0px)",W(b.find(".fp-slidesContainer"),0<c.scrollingSpeed).css(X(e)),setTimeout(function(){s()},c.scrollingSpeed,c.easing)):f.animate({scrollLeft:e.left},c.scrollingSpeed,c.easing,function(){s()});p.find(".active").removeClass("active");p.find("li").eq(g).find("a").addClass("active")}
function Y(){Z();G?"text"!==a(document.activeElement).attr("type")&&a.fn.fullpage.reBuild(!0):(clearTimeout($),$=setTimeout(function(){a.fn.fullpage.reBuild(!0)},500))}
function Z(){if(c.responsive){var b=g.hasClass("fp-responsive");a(window).width()<c.responsive?b||(a.fn.fullpage.setAutoScrolling(!1),a("#fp-nav").hide(),g.addClass("fp-responsive")):b&&(a.fn.fullpage.setAutoScrolling(!0),a("#fp-nav").show(),g.removeClass("fp-responsive"))}}
function W(b,a){var e="all "+c.scrollingSpeed+"ms "+c.easingcss3;return a?(b.removeClass("fp-notransition"),b.css({"-webkit-transition":e,transition:e})):H(b)}
function H(b){return b.addClass("fp-notransition")}
function na(b,c){if(825>b||900>c){var e=Math.min(100*b/825,100*c/900).toFixed(2);a("body").css("font-size",e+"%")}else a("body").css("font-size","100%")}
function C(b,d){c.menu&&(a(c.menu).find(".active").removeClass("active"),a(c.menu).find('[data-menuanchor="'+b+'"]').addClass("active"));c.navigation&&(a("#fp-nav").find(".active").removeClass("active"),b?a("#fp-nav").find('a[href="#'+b+'"]').addClass("active"):a("#fp-nav").find("li").eq(d).find("a").addClass("active"))}
function B(b){var c=a(".fp-section.active").index(".fp-section");b=b.index(".fp-section");return c==b?"none":c>b?"up":"down"}
function w(b){b.css("overflow","hidden");var a=b.closest(".fp-section"),e=b.find(".fp-scrollable");if(e.length)var f=e.get(0).scrollHeight;else f=b.get(0).scrollHeight,c.verticalCentered&&(f=b.find(".fp-tableCell").get(0).scrollHeight);a=k-parseInt(a.css("padding-bottom"))-parseInt(a.css("padding-top"));f>a?e.length?e.css("height",a+"px").parent().css("height",a+"px"):(c.verticalCentered?b.find(".fp-tableCell").wrapInner('<div class="fp-scrollable" />'):b.wrapInner('<div class="fp-scrollable" />'),b.find(".fp-scrollable").slimScroll({allowPageScroll:!0,height:a+"px",size:"10px",alwaysVisible:!0})):aa(b);b.css("overflow","")}
function aa(b){b.find(".fp-scrollable").children().first().unwrap().unwrap();b.find(".slimScrollBar").remove();b.find(".slimScrollRail").remove()}
function ba(b){b.addClass("fp-table").wrapInner('<div class="fp-tableCell" style="height:'+ca(b)+'px;" />')}
function ca(b){var a=k;if(c.paddingTop||c.paddingBottom)a=b,a.hasClass("fp-section")||(a=b.closest(".fp-section")),b=parseInt(a.css("padding-top"))+
parseInt(a.css("padding-bottom")),a=k-b;return a}
function S(b,a){W(g,a);g.css(X(b))}
function F(b,c){"undefined"===typeof c&&(c=0);var e=isNaN(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);b===q||e.hasClass("active")?da(e,c):m(e,function(){da(e,c)})}
function da(b,a){if("undefined"!=typeof a){var c=b.find(".fp-slides"),f=c.find('[data-anchor="'+a+'"]');f.length||(f=c.find(".fp-slide").eq(a));f.length&&u(c,f)}}
function oa(b,a){b.append('<div class="fp-slidesNav"><ul></ul></div>');var e=b.find(".fp-slidesNav");e.addClass(c.slidesNavPosition);for(var f=0;f<a;f++)e.find("ul").append('<li><a href="#"><span></span></a></li>');e.css("margin-left","-"+e.width()/2+"px");e.find("li").first().find("a").addClass("active")}
function R(b,a,e){var f="";c.anchors.length&&(b?("undefined"!==typeof e&&(f=e),"undefined"===typeof a&&(a=b),E=a,location.hash=f+"/"+a):("undefined"!==typeof b&&(E=a),location.hash=e))}
function pa(){var a=document.createElement("p"),c,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(a,null);for(var f in e)void 0!==a.style[f]&&(a.style[f]="translate3d(1px,1px,1px)",c=window.getComputedStyle(a).getPropertyValue(e[f]));document.body.removeChild(a);return void 0!==c&&0<c.length&&"none"!==c}
function ea(){return window.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}
function O(a){var c=[];window.navigator.msPointerEnabled?(c.y=a.pageY,c.x=a.pageX):(c.y=a.touches[0].pageY,c.x=a.touches[0].pageX);return c}
function D(b){var d=c.scrollingSpeed;a.fn.fullpage.setScrollingSpeed(0);u(b.closest(".fp-slides"),b);a.fn.fullpage.setScrollingSpeed(d)}
function p(a){c.scrollBar?g.scrollTop(a):c.css3?S("translate3d(0px, -"+a+"px, 0px)",!1):g.css("top",-a)}
function X(a){return{"-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,transform:a}}
function qa(){p(0);a("#fp-nav, .fp-slidesNav, .fp-controlArrow").remove();a(".fp-section").css({height:"","background-color":"",padding:""});a(".fp-slide").css({width:""});g.css({height:"",position:"","-ms-touch-action":"","touch-action":""});a(".fp-section, .fp-slide").each(function(){aa(a(this));a(this).removeClass("fp-table active")});H(g);H(g.find(".fp-easing"));g.find(".fp-tableCell, .fp-slidesContainer, .fp-slides").each(function(){a(this).replaceWith(this.childNodes)});a("html, body").scrollTop(0)}
c=a.extend({menu:!1,anchors:[],navigation:!1,navigationPosition:"right",navigationColor:"#000",navigationTooltips:[],slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,easing:"easeInQuart",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,normalScrollElements:null,scrollOverflow:!1,touchSensitivity:5,normalScrollElementTouchThreshold:5,keyboardScrolling:!0,animateAnchor:!0,controlArrowColor:"#fff",verticalCentered:!0,resize:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,sectionSelector:".section",slideSelector:".slide",afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},c);c.continuousVertical&&(c.loopTop||c.loopBottom)&&(c.continuousVertical=!1,console&&console.warn&&console.warn("Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));c.continuousVertical&&c.scrollBar&&(c.continuousVertical=!1,console&&console.warn&&console.warn("Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled"));a.fn.fullpage.setAutoScrolling=function(b){c.autoScrolling=b;b=a(".fp-section.active");c.autoScrolling&&!c.scrollBar?(a("html, body").css({overflow:"hidden",height:"100%"}),g.css({"-ms-touch-action":"none","touch-action":"none"}),b.length&&p(b.position().top)):(a("html, body").css({overflow:"visible",height:"initial"}),g.css({"-ms-touch-action":"","touch-action":""}),p(0),a("html, body").scrollTop(b.position().top))};a.fn.fullpage.setScrollingSpeed=function(a){c.scrollingSpeed=a};a.fn.fullpage.setMouseWheelScrolling=function(a){a?document.addEventListener?(document.addEventListener("mousewheel",n,!1),document.addEventListener("wheel",n,!1)):document.attachEvent("onmousewheel",n):document.addEventListener?(document.removeEventListener("mousewheel",n,!1),document.removeEventListener("wheel",n,!1)):document.detachEvent("onmousewheel",n)};a.fn.fullpage.setAllowScrolling=function(b){if(b){if(a.fn.fullpage.setMouseWheelScrolling(!0),G||fa)MSPointer=ea(),a(document).off("touchstart "+MSPointer.down).on("touchstart "+
MSPointer.down,ja),a(document).off("touchmove "+MSPointer.move).on("touchmove "+MSPointer.move,ia)}else if(a.fn.fullpage.setMouseWheelScrolling(!1),G||fa)MSPointer=ea(),a(document).off("touchstart "+MSPointer.down),a(document).off("touchmove "+MSPointer.move)};a.fn.fullpage.setKeyboardScrolling=function(a){c.keyboardScrolling=a};a.fn.fullpage.moveSectionUp=function(){var b=a(".fp-section.active").prev(".fp-section");b.length||!c.loopTop&&!c.continuousVertical||(b=a(".fp-section").last());b.length&&m(b,null,!0)};a.fn.fullpage.moveSectionDown=function(){var b=a(".fp-section.active").next(".fp-section");b.length||!c.loopBottom&&!c.continuousVertical||(b=a(".fp-section").first());b.length&&m(b,null,!1)};a.fn.fullpage.moveTo=function(b,c){var e="",e=isNaN(b)?a('[data-anchor="'+b+'"]'):a(".fp-section").eq(b-1);"undefined"!==typeof c?F(b,c):0<e.length&&m(e)};a.fn.fullpage.moveSlideRight=function(){P("next")};a.fn.fullpage.moveSlideLeft=function(){P("prev")};a.fn.fullpage.reBuild=function(b){v=!0;var d=a(window).width();k=a(window).height();c.resize&&na(k,d);a(".fp-section").each(function(){parseInt(a(this).css("padding-bottom"));parseInt(a(this).css("padding-top"));c.verticalCentered&&a(this).find(".fp-tableCell").css("height",ca(a(this))+"px");a(this).css("height",k+"px");if(c.scrollOverflow){var b=a(this).find(".fp-slide");b.length?b.each(function(){w(a(this))}):w(a(this))}
b=a(this).find(".fp-slides");b.length&&u(b,b.find(".fp-slide.active"))});a(".fp-section.active").position();d=a(".fp-section.active");d.index(".fp-section")&&m(d);v=!1;a.isFunction(c.afterResize)&&b&&c.afterResize.call(this);a.isFunction(c.afterReBuild)&&!b&&c.afterReBuild.call(this)};var t=!1,G=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|Windows Phone|Tizen|Bada)/),fa="ontouchstart"in window||0<navigator.msMaxTouchPoints,g=a(this),k=a(window).height(),l=!1,v=!1,q,E,h,U="fullpage-wrapper";a.fn.fullpage.setAllowScrolling(!0);c.css3&&(c.css3=pa());a(this).length?(g.css({height:"100%",position:"relative"}),g.addClass(U)):console.error("Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();");a(c.sectionSelector).each(function(){a(this).addClass("fp-section")});a(c.slideSelector).each(function(){a(this).addClass("fp-slide")});c.navigation&&ga();a(".fp-section").each(function(b){var d=a(this),e=a(this).find(".fp-slide"),f=e.length;b||0!==a(".fp-section.active").length||a(this).addClass("active");a(this).css("height",k+"px");(c.paddingTop||c.paddingBottom)&&a(this).css("padding",c.paddingTop+" 0 "+c.paddingBottom+" 0");"undefined"!==typeof c.sectionsColor[b]&&a(this).css("background-color",c.sectionsColor[b]);"undefined"!==typeof c.anchors[b]&&a(this).attr("data-anchor",c.anchors[b]);if(1<f){b=100*f;var g=100/f;e.wrapAll('<div class="fp-slidesContainer" />');e.parent().wrap('<div class="fp-slides" />');a(this).find(".fp-slidesContainer").css("width",b+"%");a(this).find(".fp-slides").after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>');"#fff"!=c.controlArrowColor&&(a(this).find(".fp-controlArrow.fp-next").css("border-color","transparent transparent transparent "+c.controlArrowColor),a(this).find(".fp-controlArrow.fp-prev").css("border-color","transparent "+c.controlArrowColor+" transparent transparent"));c.loopHorizontal||a(this).find(".fp-controlArrow.fp-prev").hide();c.slidesNavigation&&oa(a(this),f);e.each(function(b){a(this).css("width",g+"%");c.verticalCentered&&ba(a(this))});d=d.find(".fp-slide.active");0==d.length?e.eq(0).addClass("active"):D(d)}else c.verticalCentered&&ba(a(this))}).promise().done(function(){a.fn.fullpage.setAutoScrolling(c.autoScrolling);var b=a(".fp-section.active").find(".fp-slide.active");b.length&&(0!=a(".fp-section.active").index(".fp-section")||0==a(".fp-section.active").index(".fp-section")&&0!=b.index())&&D(b);c.fixedElements&&c.css3&&a(c.fixedElements).appendTo("body");c.navigation&&(h.css("margin-top","-"+h.height()/2+"px"),h.find("li").eq(a(".fp-section.active").index(".fp-section")).find("a").addClass("active"));c.menu&&c.css3&&a(c.menu).closest(".fullpage-wrapper").length&&a(c.menu).appendTo("body");c.scrollOverflow?("complete"===document.readyState&&I(),a(window).on("load",I)):a.isFunction(c.afterRender)&&c.afterRender.call(this);Z();b=window.location.hash.replace("#","").split("/")[0];if(b.length){var d=a('[data-anchor="'+b+'"]');!c.animateAnchor&&d.length&&(c.autoScrolling?p(d.position().top):(p(0),a("html, body").scrollTop(d.position().top)),C(b,null),a.isFunction(c.afterLoad)&&c.afterLoad.call(this,b,d.index(".fp-section")+1),d.addClass("active").siblings().removeClass("active"))}
a(window).on("load",function(){var a=window.location.hash.replace("#","").split("/"),b=a[0],a=a[1];b&&F(b,a)})});var K,L,A=!1;a(window).on("scroll",J);var s=0,z=0,r=0,y=0;a(window).on("hashchange",V);a(document).keydown(function(b){if(c.keyboardScrolling&&!l&&c.autoScrolling)switch(b.which){case 38:case 33:a.fn.fullpage.moveSectionUp();break;case 40:case 34:a.fn.fullpage.moveSectionDown();break;case 36:a.fn.fullpage.moveTo(1);break;case 35:a.fn.fullpage.moveTo(a(".fp-section").length);break;case 37:a.fn.fullpage.moveSlideLeft();break;case 39:a.fn.fullpage.moveSlideRight()}});a(document).on("click touchstart","#fp-nav a",function(b){b.preventDefault();b=a(this).parent().index();m(a(".fp-section").eq(b))});a(document).on("click touchstart",".fp-slidesNav a",function(b){b.preventDefault();b=a(this).closest(".fp-section").find(".fp-slides");var c=b.find(".fp-slide").eq(a(this).closest("li").index());u(b,c)});a(document).on({mouseenter:function(){var b=a(this).data("tooltip");a('<div class="fp-tooltip '+c.navigationPosition+'">'+b+"</div>").hide().appendTo(a(this)).fadeIn(200)},mouseleave:function(){a(this).find(".fp-tooltip").fadeOut(200,function(){a(this).remove()})}},"#fp-nav li");c.normalScrollElements&&(a(document).on("mouseenter",c.normalScrollElements,function(){a.fn.fullpage.setMouseWheelScrolling(!1)}),a(document).on("mouseleave",c.normalScrollElements,function(){a.fn.fullpage.setMouseWheelScrolling(!0)}));a(".fp-section").on("click touchstart",".fp-controlArrow",function(){a(this).hasClass("fp-prev")?a.fn.fullpage.moveSlideLeft():a.fn.fullpage.moveSlideRight()});a(window).resize(Y);var $;a.fn.fullpage.destroy=function(b){a.fn.fullpage.setAutoScrolling(!1);a.fn.fullpage.setAllowScrolling(!1);a.fn.fullpage.setKeyboardScrolling(!1);a(window).off("scroll",J).off("hashchange",V).off("resize",Y);a(document).off("click","#fp-nav a").off("mouseenter","#fp-nav li").off("mouseleave","#fp-nav li").off("click",".fp-slidesNav a").off("mouseover",c.normalScrollElements).off("mouseout",c.normalScrollElements);a(".fp-section").off("click",".fp-controlArrow");b&&qa()}}})(jQuery);

View File

@ -1,198 +1,10 @@
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.3.3
*
*/
(function(e){
e.fn.extend({
slimScroll: function(g){
var a = e.extend({
width : "auto",
height : "250px",
size : "7px",
color : "#000",
position : "right",
distance : "1px",
start : "top",
opacity : .4,
alwaysVisible : !1,
disableFadeOut : !1,
railVisible : !1,
railColor : "#333",
railOpacity : .2,
railDraggable : !0,
railClass : "slimScrollRail",
barClass : "slimScrollBar",
wrapperClass : "slimScrollDiv",
allowPageScroll : !1,
wheelStep : 20,
touchScrollStep : 200,
borderRadius : "7px",
railBorderRadius: "7px"
}, g);
this.each(function(){
function u(d){
if (r) {
d = d || window.event;
var c = 0;
d.wheelDelta && (c = -d.wheelDelta / 120);
d.detail && (c = d.detail / 3);
e(d.target || d.srcTarget || d.srcElement).closest("." + a.wrapperClass).is(b.parent()) && m(c, !0);
d.preventDefault && !k && d.preventDefault();
k || (d.returnValue = !1)
}
}
function m(d, e, g){
k = !1;
var f = d, h = b.outerHeight() - c.outerHeight();
e && (f = parseInt(c.css("top")) + d * parseInt(a.wheelStep) / 100 * c.outerHeight(), f = Math.min(Math.max(f, 0), h), f = 0 < d ? Math.ceil(f) : Math.floor(f), c.css({top: f + "px"}));
l = parseInt(c.css("top")) / (b.outerHeight() - c.outerHeight());
f = l * (b[0].scrollHeight - b.outerHeight());
g && (f = d, d = f / b[0].scrollHeight * b.outerHeight(), d = Math.min(Math.max(d, 0), h), c.css({top: d + "px"}));
b.scrollTop(f);
b.trigger("slimscrolling", ~~f);
v();
p()
}
function C(){
window.addEventListener ? (this.addEventListener("DOMMouseScroll", u, !1), this.addEventListener("mousewheel", u, !1)) : document.attachEvent("onmousewheel", u)
}
function w(){
s = Math.max(b.outerHeight() / b[0].scrollHeight * b.outerHeight(), 30);
c.css({height: s + "px"});
var a = s == b.outerHeight() ? "none" : "block";
c.css({display: a})
}
function v(){
w();
clearTimeout(A);
l == ~~l ? (k = a.allowPageScroll, B != l && b.trigger("slimscroll", 0 == ~~l ? "top" : "bottom")) : k = !1;
B = l;
s >= b.outerHeight() ? k = !0 : (c.stop(!0, !0).fadeIn("fast"), a.railVisible && h.stop(!0, !0).fadeIn("fast"))
}
function p(){
a.alwaysVisible || (A = setTimeout(function(){
a.disableFadeOut && r || x || y || (c.fadeOut("slow"), h.fadeOut("slow"))
}, 1E3))
}
var r, x, y, A, z, s, l, B, k = !1, b = e(this);
if (b.parent().hasClass(a.wrapperClass)) {
var n = b.scrollTop(), c = b.parent().find("." + a.barClass), h = b.parent().find("." + a.railClass);
w();
if (e.isPlainObject(g)) {
if ("height"in g && "auto" == g.height) {
b.parent().css("height", "auto");
b.css("height", "auto");
var q = b.parent().parent().height();
b.parent().css("height", q);
b.css("height", q)
}
if ("scrollTo"in g)n = parseInt(a.scrollTo); else if ("scrollBy"in g)n += parseInt(a.scrollBy); else if ("destroy"in g) {
c.remove();
h.remove();
b.unwrap();
return
}
m(n, !1, !0)
}
} else if (!(e.isPlainObject(g) && "destroy"in g)) {
a.height = "auto" == a.height ? b.parent().height() : a.height;
n = e("<div></div>").addClass(a.wrapperClass).css({
position: "relative",
overflow: "hidden", width: a.width, height: a.height
});
b.css({overflow: "hidden", width: a.width, height: a.height});
var h = e("<div></div>").addClass(a.railClass).css({
width : a.size,
height : "100%",
position : "absolute",
top : 0,
display : a.alwaysVisible && a.railVisible ? "block" : "none",
"border-radius": a.railBorderRadius,
background : a.railColor,
opacity : a.railOpacity,
zIndex : 90
}), c = e("<div></div>").addClass(a.barClass).css({
background : a.color,
width : a.size,
position : "absolute",
top : 0,
opacity : a.opacity,
display : a.alwaysVisible ?
"block" : "none",
"border-radius" : a.borderRadius,
BorderRadius : a.borderRadius,
MozBorderRadius : a.borderRadius,
WebkitBorderRadius: a.borderRadius,
zIndex : 99
}), q = "right" == a.position ? {right: a.distance} : {left: a.distance};
h.css(q);
c.css(q);
b.wrap(n);
b.parent().append(c);
b.parent().append(h);
a.railDraggable && c.bind("mousedown", function(a){
var b = e(document);
y = !0;
t = parseFloat(c.css("top"));
pageY = a.pageY;
b.bind("mousemove.slimscroll", function(a){
currTop = t + a.pageY - pageY;
c.css("top", currTop);
m(0, c.position().top, !1)
});
b.bind("mouseup.slimscroll", function(a){
y = !1;
p();
b.unbind(".slimscroll")
});
return !1
}).bind("selectstart.slimscroll", function(a){
a.stopPropagation();
a.preventDefault();
return !1
});
h.hover(function(){
v()
}, function(){
p()
});
c.hover(function(){
x = !0
}, function(){
x = !1
});
b.hover(function(){
r = !0;
v();
p()
}, function(){
r = !1;
p()
});
b.bind("touchstart", function(a, b){
a.originalEvent.touches.length && (z = a.originalEvent.touches[0].pageY)
});
b.bind("touchmove", function(b){
k || b.originalEvent.preventDefault();
b.originalEvent.touches.length &&
(m((z - b.originalEvent.touches[0].pageY) / a.touchScrollStep, !0), z = b.originalEvent.touches[0].pageY)
});
w();
"bottom" === a.start ? (c.css({top: b.outerHeight() - c.outerHeight()}), m(0, !0)) : "top" !== a.start && (m(e(a.start).position().top, null, !0), a.alwaysVisible || c.hide());
C()
}
});
return this
}
});
e.fn.extend({slimscroll: e.fn.slimScroll})
})(jQuery);
(function(e){e.fn.extend({slimScroll:function(g){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},g);this.each(function(){function u(d){if(r){d=d||window.event;var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&m(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}
function m(d,e,g){k=!1;var f=d,h=b.outerHeight()-c.outerHeight();e&&(f=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),f=Math.min(Math.max(f,0),h),f=0<d?Math.ceil(f):Math.floor(f),c.css({top:f+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());f=l*(b[0].scrollHeight-b.outerHeight());g&&(f=d,d=f/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),h),c.css({top:d+"px"}));b.scrollTop(f);b.trigger("slimscrolling",~~f);v();p()}
function C(){window.addEventListener?(this.addEventListener("DOMMouseScroll",u,!1),this.addEventListener("mousewheel",u,!1)):document.attachEvent("onmousewheel",u)}
function w(){s=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),30);c.css({height:s+"px"});var a=s==b.outerHeight()?"none":"block";c.css({display:a})}
function v(){w();clearTimeout(A);l==~~l?(k=a.allowPageScroll,B!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;B=l;s>=b.outerHeight()?k=!0:(c.stop(!0,!0).fadeIn("fast"),a.railVisible&&h.stop(!0,!0).fadeIn("fast"))}
function p(){a.alwaysVisible||(A=setTimeout(function(){a.disableFadeOut&&r||x||y||(c.fadeOut("slow"),h.fadeOut("slow"))},1E3))}
var r,x,y,A,z,s,l,B,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var n=b.scrollTop(),c=b.parent().find("."+a.barClass),h=b.parent().find("."+a.railClass);w();if(e.isPlainObject(g)){if("height"in g&&"auto"==g.height){b.parent().css("height","auto");b.css("height","auto");var q=b.parent().parent().height();b.parent().css("height",q);b.css("height",q)}
if("scrollTo"in g)n=parseInt(a.scrollTo);else if("scrollBy"in g)n+=parseInt(a.scrollBy);else if("destroy"in g){c.remove();h.remove();b.unwrap();return}
m(n,!1,!0)}}else if(!(e.isPlainObject(g)&&"destroy"in g)){a.height="auto"==a.height?b.parent().height():a.height;n=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",width:a.width,height:a.height});var h=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,WebkitBorderRadius:a.borderRadius,zIndex:99}),q="right"==a.position?{right:a.distance}:{left:a.distance};h.css(q);c.css(q);b.wrap(n);b.parent().append(c);b.parent().append(h);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);y=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);m(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){y=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",function(a){a.stopPropagation();a.preventDefault();return!1});h.hover(function(){v()},function(){p()});c.hover(function(){x=!0},function(){x=!1});b.hover(function(){r=!0;v();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(z=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(m((z-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),z=b.originalEvent.touches[0].pageY)});w();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),m(0,!0)):"top"!==a.start&&(m(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());C()}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery);

View File

@ -1,176 +1,21 @@
/**
* jquery.sticky 0.0.1
* https://github.com/Tjatse/sticky
*
* Apache, License 2.0
* Copyright (C) 2014 Tjatse
*/
(function(b){
var a = {timers: {}, queue: {}};
b.each([b.fn, b], function(d, e){
e.extend({sticky: c})
});
function c(d, e){
if (!d) {
return
}
e = e || {};
if (typeof d == "string") {
e.body = d
} else {
e = d
}
e = b.extend({
icon : "",
title : "",
body : "",
width : 300,
speed : 500,
position : "top-right",
hideAfter : 3000,
closeable : true,
useAnimateCss : false,
animations : {
"top-left" : ["zoomInRight", "zoomOutRight"],
"top-mid" : ["zoomInUp", "zoomOutUp"],
"top-right" : ["zoomInLeft", "zoomOutLeft"],
"mid-left" : ["zoomInRight", "zoomOutRight"],
"mid-mid" : ["zoomIn", "zoomOut"],
"mid-right" : ["zoomInLeft", "zoomOutLeft"],
"bottom-left" : ["zoomInRight", "zoomOutRight"],
"bottom-mid" : ["zoomInDown", "zoomOutDown"],
"bottom-right": ["zoomInLeft", "zoomOutLeft"]
},
iconClassName : "sticky-icon",
bodyClassName : "sticky-body",
titleClassName : "sticky-title",
stickyClassName: "sticky",
holderClassName: "sticky-holder"
}, e);
if (!e.body) {
return
}
e.animationend = "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";
e.id = "sticky-" + Math.random().toString().replace(".", "");
var h = [["top", "mid", "bottom"], ["left", "mid", "right"]], i;
if (!e.position || (i = e.position.split("-")).length != 2 || h[0].indexOf(i[0]) < 0 || h[1].indexOf(i[1]) < 0) {
i = ["top", "right"];
e.position = i.join("-")
}
var d = b("body").eq(0), f;
if ((f = d.find(".sticky-holder.sticky-" + e.position)).length == 0) {
f = b("<div />", {"class": "sticky-holder sticky-" + e.position}).css({width: e.width})
}
a.queue[e.position] = a.queue[e.position] || [];
a.queue[e.position].push(e);
if (!f.is(":empty")) {
return
}
(function g(r){
var p = b("<div />", {"id": r.id, "class": r.stickyClassName}).css({width: r.width, opacity: 0.01});
if (r.title) {
b("<div />", {"class": r.titleClassName}).html(r.title).appendTo(p)
}
if (r.icon) {
r.body = '<img src="' + r.icon + '" class="' + r.iconClassName + '" />' + r.body
}
b("<p />", {"class": r.bodyClassName}).html(r.body).appendTo(p);
b.each(["speed", "hideAfter"], function(s, t){
p.data(t, r[t])
});
function n(u){
if (u.target) {
u = b(u.target)
}
var w = u.attr("id"), v = a.timers[w];
if (v) {
try {
clearTimeout(v)
} catch (s) {
}
delete a.timers[w]
}
function t(){
var y = b(this).remove().attr("id");
r.onHidden && r.onHidden(y);
var x = a.queue[r.position];
if (x && x.length > 0) {
g(x.splice(0, 1)[0])
} else {
f.remove()
}
}
if (r.useAnimateCss) {
u.addClass("animated " + r.animations[r.position][1]).one(r.animationend, t)
} else {
u.stop().dequeue().animate(p.data("anim-exit"), u.data("speed"), t)
}
}
if (r.closeable) {
p.append("<span>&times;</span>").one("click", ">span", function(){
n(b(this).parent())
})
}
p.appendTo(f);
f.appendTo(d);
var l = {}, j = {}, k = {opacity: 1}, q = p.height() + 10, m = (i[1] == "mid" ? "top" : i[1]);
j[m] = ({left: -r.width, top: -q - 10, right: -r.width})[m];
k[m] = 0;
b.extend(l, ({left: {left: 5}, mid: {left: "50%", marginLeft: -r.width / 2}, right: {right: 5}})[i[1]], {top: 5});
if (i[0] == "mid") {
l.top = "50%";
l.marginTop = -q / 2 - 10;
if (i[1] == "mid") {
j.top = 0
}
} else {
if (i[0] == "bottom") {
delete l.top;
l.bottom = q;
if (i[1] == "mid") {
j.top = q
}
}
}
f.css(l);
p.data("anim-exit", j);
function o(){
var s = b(this).attr("class", r.stickyClassName).attr("id");
r.onShown && r.onShown(s)
}
if (!r.useAnimateCss) {
p.css(j).animate(k, r.speed, o)
} else {
p.css("opacity", 1).addClass("animated " + r.animations[r.position][0]).one(r.animationend, o)
}
p.on("dismiss", n);
j.opacity = 0.01;
if (r.hideAfter) {
a.timers[r.id] = setTimeout(n, p.data("hideAfter"), p)
}
})(a.queue[e.position].splice(0, 1)[0])
}
c.dequeue = function(f){
if (!f) {
for (var d in a.timers) {
try {
clearTimeout(a.timers[d])
} catch (e) {
}
}
a.timers = {};
a.queue = []
} else {
try {
clearTimeout(a.timers[f])
} catch (e) {
}
}
f = (f ? "#" + f : "div[id^=sticky-]");
b(f).trigger("dismiss")
}
})(jQuery);
(function(b){var a={timers:{},queue:{}};b.each([b.fn,b],function(d,e){e.extend({sticky:c})});function c(d,e){if(!d){return}
e=e||{};if(typeof d=="string"){e.body=d}else{e=d}
e=b.extend({icon:"",title:"",body:"",width:300,speed:500,position:"top-right",hideAfter:3000,closeable:true,useAnimateCss:false,animations:{"top-left":["zoomInRight","zoomOutRight"],"top-mid":["zoomInUp","zoomOutUp"],"top-right":["zoomInLeft","zoomOutLeft"],"mid-left":["zoomInRight","zoomOutRight"],"mid-mid":["zoomIn","zoomOut"],"mid-right":["zoomInLeft","zoomOutLeft"],"bottom-left":["zoomInRight","zoomOutRight"],"bottom-mid":["zoomInDown","zoomOutDown"],"bottom-right":["zoomInLeft","zoomOutLeft"]},iconClassName:"sticky-icon",bodyClassName:"sticky-body",titleClassName:"sticky-title",stickyClassName:"sticky",holderClassName:"sticky-holder"},e);if(!e.body){return}
e.animationend="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";e.id="sticky-"+Math.random().toString().replace(".","");var h=[["top","mid","bottom"],["left","mid","right"]],i;if(!e.position||(i=e.position.split("-")).length!=2||h[0].indexOf(i[0])<0||h[1].indexOf(i[1])<0){i=["top","right"];e.position=i.join("-")}
var d=b("body").eq(0),f;if((f=d.find(".sticky-holder.sticky-"+e.position)).length==0){f=b("<div />",{"class":"sticky-holder sticky-"+e.position}).css({width:e.width})}
a.queue[e.position]=a.queue[e.position]||[];a.queue[e.position].push(e);if(!f.is(":empty")){return}
(function g(r){var p=b("<div />",{"id":r.id,"class":r.stickyClassName}).css({width:r.width,opacity:0.01});if(r.title){b("<div />",{"class":r.titleClassName}).html(r.title).appendTo(p)}
if(r.icon){r.body='<img src="'+r.icon+'" class="'+r.iconClassName+'" />'+r.body}
b("<p />",{"class":r.bodyClassName}).html(r.body).appendTo(p);b.each(["speed","hideAfter"],function(s,t){p.data(t,r[t])});function n(u){if(u.target){u=b(u.target)}
var w=u.attr("id"),v=a.timers[w];if(v){try{clearTimeout(v)}catch(s){}
delete a.timers[w]}
function t(){var y=b(this).remove().attr("id");r.onHidden&&r.onHidden(y);var x=a.queue[r.position];if(x&&x.length>0){g(x.splice(0,1)[0])}else{f.remove()}}
if(r.useAnimateCss){u.addClass("animated "+r.animations[r.position][1]).one(r.animationend,t)}else{u.stop().dequeue().animate(p.data("anim-exit"),u.data("speed"),t)}}
if(r.closeable){p.append("<span>&times;</span>").one("click",">span",function(){n(b(this).parent())})}
p.appendTo(f);f.appendTo(d);var l={},j={},k={opacity:1},q=p.height()+10,m=(i[1]=="mid"?"top":i[1]);j[m]=({left:-r.width,top:-q-10,right:-r.width})[m];k[m]=0;b.extend(l,({left:{left:5},mid:{left:"50%",marginLeft:-r.width/2},right:{right:5}})[i[1]],{top:5});if(i[0]=="mid"){l.top="50%";l.marginTop=-q/2-10;if(i[1]=="mid"){j.top=0}}else{if(i[0]=="bottom"){delete l.top;l.bottom=q;if(i[1]=="mid"){j.top=q}}}
f.css(l);p.data("anim-exit",j);function o(){var s=b(this).attr("class",r.stickyClassName).attr("id");r.onShown&&r.onShown(s)}
if(!r.useAnimateCss){p.css(j).animate(k,r.speed,o)}else{p.css("opacity",1).addClass("animated "+r.animations[r.position][0]).one(r.animationend,o)}
p.on("dismiss",n);j.opacity=0.01;if(r.hideAfter){a.timers[r.id]=setTimeout(n,p.data("hideAfter"),p)}})(a.queue[e.position].splice(0,1)[0])}
c.dequeue=function(f){if(!f){for(var d in a.timers){try{clearTimeout(a.timers[d])}catch(e){}}
a.timers={};a.queue=[]}else{try{clearTimeout(a.timers[f])}catch(e){}}
f=(f?"#"+f:"div[id^=sticky-]");b(f).trigger("dismiss")}})(jQuery);

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -138,6 +138,9 @@
<li role="presentation" class="active">
<a href="#info" aria-controls="info" role="tab" data-toggle="tab">Info</a>
</li>
<li role="presentation">
<a href="#monitor" aria-controls="monitor" role="tab" data-toggle="tab">Monitor</a>
</li>
<li role="presentation">
<a href="#log" aria-controls="log" role="tab" data-toggle="tab">Log</a>
</li>
@ -146,6 +149,9 @@
<div role="tabpanel" class="tab-pane active" id="info">
<pre><%= info %></pre>
</div>
<div role="tabpanel" class="tab-pane graph" id="monitor">
<div class="load"></div>
</div>
<div role="tabpanel" class="tab-pane" id="log">
<div class="load"></div>
</div>