function toast(a, b, c, d) { function e(a) { var b = $("
").addClass(c).html(a); return b.hammer({ prevent_default: !1 }).bind("pan", function(a) { var c = a.gesture.deltaX, d = 80; b.hasClass("panning") || b.addClass("panning"); var e = 1 - Math.abs(c / d); 0 > e && (e = 0), b.velocity({ left: c, opacity: e }, { duration: 50, queue: !1, easing: "easeOutQuad" }) }).bind("panend", function(a) { var c = a.gesture.deltaX, e = 80; Math.abs(c) > e ? b.velocity({ marginTop: "-40px" }, { duration: 375, easing: "easeOutExpo", queue: !1, complete: function() { "function" == typeof d && d(), b.remove() } }) : (b.removeClass("panning"), b.velocity({ left: 0, opacity: 1 }, { duration: 300, easing: "easeOutExpo", queue: !1 })) }), b } if (c = c || "", 0 == $("#toast-container").length) { var f = $("
").attr("id", "toast-container"); $("body").append(f) } var f = $("#toast-container"), g = e(a); f.append(g), g.css({ top: parseFloat(g.css("top")) + 35 + "px", opacity: 0 }), g.velocity({ top: "0px", opacity: 1 }, { duration: 300, easing: "easeOutCubic", queue: !1 }); var h = b, i = setInterval(function() { 0 === g.parent().length && window.clearInterval(i), g.hasClass("panning") || (h -= 100), 0 >= h && (g.velocity({ opacity: 0, marginTop: "-40px" }, { duration: 375, easing: "easeOutExpo", queue: !1, complete: function() { "function" == typeof d && d(), $(this).remove() } }), window.clearInterval(i)) }, 100) } function toast(a, b, c, d) { function e(a) { var b = $("
").addClass(c).html(a); return b.hammer({ prevent_default: !1 }).bind("pan", function(a) { var c = a.gesture.deltaX, d = 80; b.hasClass("panning") || b.addClass("panning"); var e = 1 - Math.abs(c / d); 0 > e && (e = 0), b.velocity({ left: c, opacity: e }, { duration: 50, queue: !1, easing: "easeOutQuad" }) }).bind("panend", function(a) { var c = a.gesture.deltaX, e = 80; Math.abs(c) > e ? b.velocity({ marginTop: "-40px" }, { duration: 375, easing: "easeOutExpo", queue: !1, complete: function() { "function" == typeof d && d(), b.remove() } }) : (b.removeClass("panning"), b.velocity({ left: 0, opacity: 1 }, { duration: 300, easing: "easeOutExpo", queue: !1 })) }), b } if (c = c || "", 0 == $("#toast-container").length) { var f = $("
").attr("id", "toast-container"); $("body").append(f) } var f = $("#toast-container"), g = e(a); f.append(g), g.css({ top: parseFloat(g.css("top")) + 35 + "px", opacity: 0 }), g.velocity({ top: "0px", opacity: 1 }, { duration: 300, easing: "easeOutCubic", queue: !1 }); var h = b, i = setInterval(function() { 0 === g.parent().length && window.clearInterval(i), g.hasClass("panning") || (h -= 100), 0 >= h && (g.velocity({ opacity: 0, marginTop: "-40px" }, { duration: 375, easing: "easeOutExpo", queue: !1, complete: function() { "function" == typeof d && d(), $(this).remove() } }), window.clearInterval(i)) }, 100) } function GithubRepo(a) { this.description = a.description, this.forks = a.forks, this.name = a.name, this.open_issues = a.open_issues, this.pushed_at = a.pushed_at, this.url = a.url, this.watchers = a.watchers } function Github(a, b) { var c = this, d = { iconStars: !0, iconForks: !0, iconIssues: !1 }; c.element = a, c.$container = $(a), c.repo = c.$container.attr("data-repo"), c.options = $.extend({}, d, b), c._defaults = d, c.init(), c.displayIcons() }! function(a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a) } : b(a) }("undefined" != typeof window ? window : this, function(a, b) { function c(a) { var b = a.length, c = _.type(a); return "function" === c || _.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || "number" == typeof b && b > 0 && b - 1 in a } function d(a, b, c) { if (_.isFunction(b)) return _.grep(a, function(a, d) { return !!b.call(a, d, a) !== c }); if (b.nodeType) return _.grep(a, function(a) { return a === b !== c }); if ("string" == typeof b) { if (ha.test(b)) return _.filter(b, a, c); b = _.filter(b, a) } return _.grep(a, function(a) { return U.call(b, a) >= 0 !== c }) } function e(a, b) { for (; (a = a[b]) && 1 !== a.nodeType;); return a } function f(a) { var b = oa[a] = {}; return _.each(a.match(na) || [], function(a, c) { b[c] = !0 }), b } function g() { Z.removeEventListener("DOMContentLoaded", g, !1), a.removeEventListener("load", g, !1), _.ready() } function h() { Object.defineProperty(this.cache = {}, 0, { get: function() { return {} } }), this.expando = _.expando + h.uid++ } function i(a, b, c) { var d; if (void 0 === c && 1 === a.nodeType) if (d = "data-" + b.replace(ua, "-$1").toLowerCase(), c = a.getAttribute(d), "string" == typeof c) { try { c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : ta.test(c) ? _.parseJSON(c) : c } catch (e) {} sa.set(a, b, c) } else c = void 0; return c } function j() { return !0 } function k() { return !1 } function l() { try { return Z.activeElement } catch (a) {} } function m(a, b) { return _.nodeName(a, "table") && _.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a } function n(a) { return a.type = (null !== a.getAttribute("type")) + "/" + a.type, a } function o(a) { var b = Ka.exec(a.type); return b ? a.type = b[1] : a.removeAttribute("type"), a } function p(a, b) { for (var c = 0, d = a.length; d > c; c++) ra.set(a[c], "globalEval", !b || ra.get(b[c], "globalEval")) } function q(a, b) { var c, d, e, f, g, h, i, j; if (1 === b.nodeType) { if (ra.hasData(a) && (f = ra.access(a), g = ra.set(b, f), j = f.events)) { delete g.handle, g.events = {}; for (e in j) for (c = 0, d = j[e].length; d > c; c++) _.event.add(b, e, j[e][c]) } sa.hasData(a) && (h = sa.access(a), i = _.extend({}, h), sa.set(b, i)) } } function r(a, b) { var c = a.getElementsByTagName ? a.getElementsByTagName(b || "*") : a.querySelectorAll ? a.querySelectorAll(b || "*") : []; return void 0 === b || b && _.nodeName(a, b) ? _.merge([a], c) : c } function s(a, b) { var c = b.nodeName.toLowerCase(); "input" === c && ya.test(a.type) ? b.checked = a.checked : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue) } function t(b, c) { var d, e = _(c.createElement(b)).appendTo(c.body), f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : _.css(e[0], "display"); return e.detach(), f } function u(a) { var b = Z, c = Oa[a]; return c || (c = t(a, b), "none" !== c && c || (Na = (Na || _("