/* * jquery mmenu v5.6.3 * @requires jquery 1.7.0 or later * * mmenu.frebsite.nl * * copyright (c) fred heusschen * www.frebsite.nl * * license: cc-by-nc-4.0 * http://creativecommons.org/licenses/by-nc/4.0/ */ ! function(e) { function t() { e[n].glbl || (r = { $wndw: e(window), $docu: e(document), $html: e("html"), $body: e("body") }, i = {}, a = {}, o = {}, e.each([i, a, o], function(e, t) { t.add = function(e) { e = e.split(" "); for(var n = 0, s = e.length; s > n; n++) t[e[n]] = t.mm(e[n]) } }), i.mm = function(e) { return "mm-" + e }, i.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"), i.umm = function(e) { return "mm-" == e.slice(0, 3) && (e = e.slice(3)), e }, a.mm = function(e) { return "mm-" + e }, a.add("parent sub"), o.mm = function(e) { return e + ".mm" }, o.add("transitionend webkittransitionend click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"), e[n]._c = i, e[n]._d = a, e[n]._e = o, e[n].glbl = r) } var n = "mmenu", s = "5.6.3"; if(!(e[n] && e[n].version > s)) { e[n] = function(e, t, n) { this.$menu = e, this._api = ["bind", "init", "update", "setselected", "getinstance", "openpanel", "closepanel", "closeallpanels"], this.opts = t, this.conf = n, this.vars = {}, this.cbck = {}, "function" == typeof this.___deprecated && this.___deprecated(), this._initmenu(), this._initanchors(); var s = this.$pnls.children(); return this._initaddons(), this.init(s), "function" == typeof this.___debug && this.___debug(), this }, e[n].version = s, e[n].addons = {}, e[n].uniqueid = 0, e[n].defaults = { extensions: [], navbar: { add: !0, title: "无锡奥米", titlelink: "panel" }, onclick: { setselected: !0 }, slidingsubmenus: !0 }, e[n].configuration = { classnames: { divider: "divider", inset: "inset", panel: "panel", selected: "selected", spacer: "spacer", vertical: "vertical" }, clone: !1, openinginterval: 25, panelnodetype: "ul, ol, div", transitionduration: 400 }, e[n].prototype = { init: function(e) { e = e.not("." + i.nopanel), e = this._initpanels(e), this.trigger("init", e), this.trigger("update") }, update: function() { this.trigger("update") }, setselected: function(e) { this.$menu.find("." + i.listview).children().removeclass(i.selected), e.addclass(i.selected), this.trigger("setselected", e) }, openpanel: function(t) { var s = t.parent(), a = this; if(s.hasclass(i.vertical)) { var o = s.parents("." + i.subopened); if(o.length) return void this.openpanel(o.first()); s.addclass(i.opened), this.trigger("openpanel", t), this.trigger("openingpanel", t), this.trigger("openedpanel", t) } else { if(t.hasclass(i.current)) return; var r = this.$pnls.children("." + i.panel), l = r.filter("." + i.current); r.removeclass(i.highest).removeclass(i.current).not(t).not(l).not("." + i.vertical).addclass(i.hidden), e[n].support.csstransitions || l.addclass(i.hidden), t.hasclass(i.opened) ? t.nextall("." + i.opened).addclass(i.highest).removeclass(i.opened).removeclass(i.subopened) : (t.addclass(i.highest), l.addclass(i.subopened)), t.removeclass(i.hidden).addclass(i.current), a.trigger("openpanel", t), settimeout(function() { t.removeclass(i.subopened).addclass(i.opened), a.trigger("openingpanel", t), a.__transitionend(t, function() { a.trigger("openedpanel", t) }, a.conf.transitionduration) }, this.conf.openinginterval) } }, closepanel: function(e) { var t = e.parent(); t.hasclass(i.vertical) && (t.removeclass(i.opened), this.trigger("closepanel", e), this.trigger("closingpanel", e), this.trigger("closedpanel", e)) }, closeallpanels: function() { this.$menu.find("." + i.listview).children().removeclass(i.selected).filter("." + i.vertical).removeclass(i.opened); var e = this.$pnls.children("." + i.panel), t = e.first(); this.$pnls.children("." + i.panel).not(t).removeclass(i.subopened).removeclass(i.opened).removeclass(i.current).removeclass(i.highest).addclass(i.hidden), this.openpanel(t) }, togglepanel: function(e) { var t = e.parent(); t.hasclass(i.vertical) && this[t.hasclass(i.opened) ? "closepanel" : "openpanel"](e) }, getinstance: function() { return this }, bind: function(e, t) { this.cbck[e] = this.cbck[e] || [], this.cbck[e].push(t) }, trigger: function() { var e = this, t = array.prototype.slice.call(arguments), n = t.shift(); if(this.cbck[n]) for(var s = 0, i = this.cbck[n].length; i > s; s++) this.cbck[n][s].apply(e, t) }, _initmenu: function() { this.$menu.attr("id", this.$menu.attr("id") || this.__getuniqueid()), this.conf.clone && (this.$menu = this.$menu.clone(!0), this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function() { e(this).attr("id", i.mm(e(this).attr("id"))) })), this.$menu.contents().each(function() { 3 == e(this)[0].nodetype && e(this).remove() }), this.$pnls = e('
').append(this.$menu.children(this.conf.panelnodetype)).prependto(this.$menu), this.$menu.parent().addclass(i.wrapper); var t = [i.menu]; this.opts.slidingsubmenus || t.push(i.vertical), this.opts.extensions = this.opts.extensions.length ? "mm-" + this.opts.extensions.join(" mm-") : "", this.opts.extensions && t.push(this.opts.extensions), this.$menu.addclass(t.join(" ")) }, _initpanels: function(t) { var n = this, s = this.__findaddback(t, "ul, ol"); this.__refactorclass(s, this.conf.classnames.inset, "inset").addclass(i.nolistview + " " + i.nopanel), s.not("." + i.nolistview).addclass(i.listview); var o = this.__findaddback(t, "." + i.listview).children(); this.__refactorclass(o, this.conf.classnames.selected, "selected"), this.__refactorclass(o, this.conf.classnames.divider, "divider"), this.__refactorclass(o, this.conf.classnames.spacer, "spacer"), this.__refactorclass(this.__findaddback(t, "." + this.conf.classnames.panel), this.conf.classnames.panel, "panel"); var r = e(), l = t.add(t.find("." + i.panel)).add(this.__findaddback(t, "." + i.listview).children().children(this.conf.panelnodetype)).not("." + i.nopanel); this.__refactorclass(l, this.conf.classnames.vertical, "vertical"), this.opts.slidingsubmenus || l.addclass(i.vertical), l.each(function() { var t = e(this), s = t; t.is("ul, ol") ? (t.wrap('
'), s = t.parent()) : s.addclass(i.panel); var a = t.attr("id"); t.removeattr("id"), s.attr("id", a || n.__getuniqueid()), t.hasclass(i.vertical) && (t.removeclass(n.conf.classnames.vertical), s.add(s.parent()).addclass(i.vertical)), r = r.add(s) }); var d = e("." + i.panel, this.$menu); r.each(function(t) { var s, o, r = e(this), l = r.parent(), d = l.children("a, span").first(); if(l.is("." + i.panels) || (l.data(a.sub, r), r.data(a.parent, l)), l.children("." + i.next).length || l.parent().is("." + i.listview) && (s = r.attr("id"), o = e('').insertbefore(d), d.is("span") && o.addclass(i.fullsubopen)), !r.children("." + i.navbar).length && !l.hasclass(i.vertical)) { l.parent().is("." + i.listview) ? l = l.closest("." + i.panel) : (d = l.closest("." + i.panel).find('a[href="#' + r.attr("id") + '"]').first(), l = d.closest("." + i.panel)); var c = e('
'); if(l.length) { switch(s = l.attr("id"), n.opts.navbar.titlelink) { case "anchor": _url = d.attr("href"); break; case "panel": case "parent": _url = "#" + s; break; default: _url = !1 } c.append('').append(e('").text(d.text())).prependto(r), n.opts.navbar.add && r.addclass(i.hasnavbar) } else n.opts.navbar.title && (c.append('' + n.opts.navbar.title + "").prependto(r), n.opts.navbar.add && r.addclass(i.hasnavbar)) } }); var c = this.__findaddback(t, "." + i.listview).children("." + i.selected).removeclass(i.selected).last().addclass(i.selected); c.add(c.parentsuntil("." + i.menu, "li")).filter("." + i.vertical).addclass(i.opened).end().each(function() { e(this).parentsuntil("." + i.menu, "." + i.panel).not("." + i.vertical).first().addclass(i.opened).parentsuntil("." + i.menu, "." + i.panel).not("." + i.vertical).first().addclass(i.opened).addclass(i.subopened) }), c.children("." + i.panel).not("." + i.vertical).addclass(i.opened).parentsuntil("." + i.menu, "." + i.panel).not("." + i.vertical).first().addclass(i.opened).addclass(i.subopened); var h = d.filter("." + i.opened); return h.length || (h = r.first()), h.addclass(i.opened).last().addclass(i.current), r.not("." + i.vertical).not(h.last()).addclass(i.hidden).end().filter(function() { return !e(this).parent().hasclass(i.panels) }).appendto(this.$pnls), r }, _initanchors: function() { var t = this; r.$body.on(o.click + "-oncanvas", "a[href]", function(s) { var a = e(this), o = !1, r = t.$menu.find(a).length; for(var l in e[n].addons) if(e[n].addons[l].clickanchor.call(t, a, r)) { o = !0; break } var d = a.attr("href"); if(!o && r && d.length > 1 && "#" == d.slice(0, 1)) try { var c = e(d, t.$menu); c.is("." + i.panel) && (o = !0, t[a.parent().hasclass(i.vertical) ? "togglepanel" : "openpanel"](c)) } catch(h) {} if(o && s.preventdefault(), !o && r && a.is("." + i.listview + " > li > a") && !a.is('[rel="external"]') && !a.is('[target="_blank"]')) { t.__valueorfn(t.opts.onclick.setselected, a) && t.setselected(e(s.target).parent()); var u = t.__valueorfn(t.opts.onclick.preventdefault, a, "#" == d.slice(0, 1)); u && s.preventdefault(), t.__valueorfn(t.opts.onclick.close, a, u) && t.close() } }) }, _initaddons: function() { var t; for(t in e[n].addons) e[n].addons[t].add.call(this), e[n].addons[t].add = function() {}; for(t in e[n].addons) e[n].addons[t].setup.call(this) }, _getoriginalmenuid: function() { var e = this.$menu.attr("id"); return e && e.length && this.conf.clone && (e = i.umm(e)), e }, __api: function() { var t = this, n = {}; return e.each(this._api, function(e) { var s = this; n[s] = function() { var e = t[s].apply(t, arguments); return "undefined" == typeof e ? n : e } }), n }, __valueorfn: function(e, t, n) { return "function" == typeof e ? e.call(t[0]) : "undefined" == typeof e && "undefined" != typeof n ? n : e }, __refactorclass: function(e, t, n) { return e.filter("." + t).removeclass(t).addclass(i[n]) }, __findaddback: function(e, t) { return e.find(t).add(e.filter(t)) }, __filterlistitems: function(e) { return e.not("." + i.divider).not("." + i.hidden) }, __transitionend: function(e, t, n) { var s = !1, i = function() { s || t.call(e[0]), s = !0 }; e.one(o.transitionend, i), e.one(o.webkittransitionend, i), settimeout(i, 1.1 * n) }, __getuniqueid: function() { return i.mm(e[n].uniqueid++) } }, e.fn[n] = function(s, i) { return t(), s = e.extend(!0, {}, e[n].defaults, s), i = e.extend(!0, {}, e[n].configuration, i), this.each(function() { var t = e(this); if(!t.data(n)) { var a = new e[n](t, s, i); a.$menu.data(n, a.__api()) } }) }, e[n].support = { touch: "ontouchstart" in window || navigator.msmaxtouchpoints || !1, csstransitions: function() { if("undefined" != typeof modernizr && "undefined" != typeof modernizr.csstransitions) return modernizr.csstransitions; var e = document.body || document.documentelement, t = e.style, n = "transition"; if("string" == typeof t[n]) return !0; var s = ["moz", "webkit", "webkit", "khtml", "o", "ms"]; n = n.charat(0).touppercase() + n.substr(1); for(var i = 0; i < s.length; i++) if("string" == typeof t[s[i] + n]) return !0; return !1 }() }; var i, a, o, r } }(jquery), /* * jquery mmenu offcanvas addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "offcanvas"; e[t].addons[n] = { setup: function() { if(this.opts[n]) { var i = this.opts[n], a = this.conf[n]; o = e[t].glbl, this._api = e.merge(this._api, ["open", "close", "setpage"]), ("top" == i.position || "bottom" == i.position) && (i.zposition = "front"), "string" != typeof a.pageselector && (a.pageselector = "> " + a.pagenodetype), o.$allmenus = (o.$allmenus || e()).add(this.$menu), this.vars.opened = !1; var r = [s.offcanvas]; "left" != i.position && r.push(s.mm(i.position)), "back" != i.zposition && r.push(s.mm(i.zposition)), this.$menu.addclass(r.join(" ")).parent().removeclass(s.wrapper), this.setpage(o.$page), this._initblocker(), this["_initwindow_" + n](), this.$menu[a.menuinjectmethod + "to"](a.menuwrapperselector); var l = window.location.hash; if(l) { var d = this._getoriginalmenuid(); d && d == l.slice(1) && this.open() } } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("offcanvas slideout blocking modal background opening blocker page"), i.add("style"), a.add("resize") }, clickanchor: function(e, t) { if(!this.opts[n]) return !1; var s = this._getoriginalmenuid(); if(s && e.is('[href="#' + s + '"]')) return this.open(), !0; if(o.$page) return s = o.$page.first().attr("id"), s && e.is('[href="#' + s + '"]') ? (this.close(), !0) : !1 } }, e[t].defaults[n] = { position: "left", zposition: "back", blockui: !0, movebackground: !0 }, e[t].configuration[n] = { pagenodetype: "div", pageselector: null, nopageselector: [], wrappageifneeded: !0, menuwrapperselector: "body", menuinjectmethod: "prepend" }, e[t].prototype.open = function() { if(!this.vars.opened) { var e = this; this._opensetup(), settimeout(function() { e._openfinish() }, this.conf.openinginterval), this.trigger("open") } }, e[t].prototype._opensetup = function() { var t = this, r = this.opts[n]; this.closeallothers(), o.$page.each(function() { e(this).data(i.style, e(this).attr("style") || "") }), o.$wndw.trigger(a.resize + "-" + n, [!0]); var l = [s.opened]; r.blockui && l.push(s.blocking), "modal" == r.blockui && l.push(s.modal), r.movebackground && l.push(s.background), "left" != r.position && l.push(s.mm(this.opts[n].position)), "back" != r.zposition && l.push(s.mm(this.opts[n].zposition)), this.opts.extensions && l.push(this.opts.extensions), o.$html.addclass(l.join(" ")), settimeout(function() { t.vars.opened = !0 }, this.conf.openinginterval), this.$menu.addclass(s.current + " " + s.opened) }, e[t].prototype._openfinish = function() { var e = this; this.__transitionend(o.$page.first(), function() { e.trigger("opened") }, this.conf.transitionduration), o.$html.addclass(s.opening), this.trigger("opening") }, e[t].prototype.close = function() { if(this.vars.opened) { var t = this; this.__transitionend(o.$page.first(), function() { t.$menu.removeclass(s.current).removeclass(s.opened), o.$html.removeclass(s.opened).removeclass(s.blocking).removeclass(s.modal).removeclass(s.background).removeclass(s.mm(t.opts[n].position)).removeclass(s.mm(t.opts[n].zposition)), t.opts.extensions && o.$html.removeclass(t.opts.extensions), o.$page.each(function() { e(this).attr("style", e(this).data(i.style)) }), t.vars.opened = !1, t.trigger("closed") }, this.conf.transitionduration), o.$html.removeclass(s.opening), this.trigger("close"), this.trigger("closing") } }, e[t].prototype.closeallothers = function() { o.$allmenus.not(this.$menu).each(function() { var n = e(this).data(t); n && n.close && n.close() }) }, e[t].prototype.setpage = function(t) { var i = this, a = this.conf[n]; t && t.length || (t = o.$body.find(a.pageselector), a.nopageselector.length && (t = t.not(a.nopageselector.join(", "))), t.length > 1 && a.wrappageifneeded && (t = t.wrapall("<" + this.conf[n].pagenodetype + " />").parent())), t.each(function() { e(this).attr("id", e(this).attr("id") || i.__getuniqueid()) }), t.addclass(s.page + " " + s.slideout), o.$page = t, this.trigger("setpage", t) }, e[t].prototype["_initwindow_" + n] = function() { o.$wndw.off(a.keydown + "-" + n).on(a.keydown + "-" + n, function(e) { return o.$html.hasclass(s.opened) && 9 == e.keycode ? (e.preventdefault(), !1) : void 0 }); var e = 0; o.$wndw.off(a.resize + "-" + n).on(a.resize + "-" + n, function(t, n) { if(1 == o.$page.length && (n || o.$html.hasclass(s.opened))) { var i = o.$wndw.height(); (n || i != e) && (e = i, o.$page.css("minheight", i)) } }) }, e[t].prototype._initblocker = function() { var t = this; this.opts[n].blockui && (o.$blck || (o.$blck = e('
')), o.$blck.appendto(o.$body).off(a.touchstart + "-" + n + " " + a.touchmove + "-" + n).on(a.touchstart + "-" + n + " " + a.touchmove + "-" + n, function(e) { e.preventdefault(), e.stoppropagation(), o.$blck.trigger(a.mousedown + "-" + n) }).off(a.mousedown + "-" + n).on(a.mousedown + "-" + n, function(e) { e.preventdefault(), o.$html.hasclass(s.modal) || (t.closeallothers(), t.close()) })) }; var s, i, a, o }(jquery), /* * jquery mmenu scrollbugfix addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "scrollbugfix"; e[t].addons[n] = { setup: function() { var i = this, r = this.opts[n]; this.conf[n]; if(o = e[t].glbl, e[t].support.touch && this.opts.offcanvas && this.opts.offcanvas.blockui && ("boolean" == typeof r && (r = { fix: r }), "object" != typeof r && (r = {}), r = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], r), r.fix)) { var l = this.$menu.attr("id"), d = !1; this.bind("opening", function() { this.$pnls.children("." + s.current).scrolltop(0) }), o.$docu.on(a.touchmove, function(e) { i.vars.opened && e.preventdefault() }), o.$body.on(a.touchstart, "#" + l + "> ." + s.panels + "> ." + s.current, function(e) { i.vars.opened && (d || (d = !0, 0 === e.currenttarget.scrolltop ? e.currenttarget.scrolltop = 1 : e.currenttarget.scrollheight === e.currenttarget.scrolltop + e.currenttarget.offsetheight && (e.currenttarget.scrolltop -= 1), d = !1)) }).on(a.touchmove, "#" + l + "> ." + s.panels + "> ." + s.current, function(t) { i.vars.opened && e(this)[0].scrollheight > e(this).innerheight() && t.stoppropagation() }), o.$wndw.on(a.orientationchange, function() { i.$pnls.children("." + s.current).scrolltop(0).css({ "-webkit-overflow-scrolling": "auto" }).css({ "-webkit-overflow-scrolling": "touch" }) }) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { fix: !0 }; var s, i, a, o }(jquery), /* * jquery mmenu autoheight addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "autoheight"; e[t].addons[n] = { setup: function() { if(this.opts.offcanvas) { var i = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof i && i && (i = { height: "auto" }), "string" == typeof i && (i = { height: i }), "object" != typeof i && (i = {}), i = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], i), "auto" == i.height || "highest" == i.height) { this.$menu.addclass(s.autoheight); var a = function(t) { if(this.vars.opened) { var n = parseint(this.$pnls.css("top"), 10) || 0, a = parseint(this.$pnls.css("bottom"), 10) || 0, o = 0; this.$menu.addclass(s.measureheight), "auto" == i.height ? (t = t || this.$pnls.children("." + s.current), t.is("." + s.vertical) && (t = t.parents("." + s.panel).not("." + s.vertical).first()), o = t.outerheight()) : "highest" == i.height && this.$pnls.children().each(function() { var t = e(this); t.is("." + s.vertical) && (t = t.parents("." + s.panel).not("." + s.vertical).first()), o = math.max(o, t.outerheight()) }), this.$menu.height(o + n + a).removeclass(s.measureheight) } }; this.bind("opening", a), "highest" == i.height && this.bind("init", a), "auto" == i.height && (this.bind("update", a), this.bind("openpanel", a), this.bind("closepanel", a)) } } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("autoheight measureheight"), a.add("resize") }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { height: "default" }; var s, i, a, o }(jquery), /* * jquery mmenu backbutton addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "backbutton"; e[t].addons[n] = { setup: function() { if(this.opts.offcanvas) { var i = this, a = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof a && (a = { close: a }), "object" != typeof a && (a = {}), a = e.extend(!0, {}, e[t].defaults[n], a), a.close) { var r = "#" + i.$menu.attr("id"); this.bind("opened", function(e) { location.hash != r && history.pushstate(null, document.title, r) }), e(window).on("popstate", function(e) { o.$html.hasclass(s.opened) ? (e.stoppropagation(), i.close()) : location.hash == r && (e.stoppropagation(), i.open()) }) } } }, add: function() { return window.history && window.history.pushstate ? (s = e[t]._c, i = e[t]._d, void(a = e[t]._e)) : void(e[t].addons[n].setup = function() {}) }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { close: !1 }; var s, i, a, o }(jquery), /* * jquery mmenu columns addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "columns"; e[t].addons[n] = { setup: function() { var i = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof i && (i = { add: i }), "number" == typeof i && (i = { add: !0, visible: i }), "object" != typeof i && (i = {}), "number" == typeof i.visible && (i.visible = { min: i.visible, max: i.visible }), i = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], i), i.add) { i.visible.min = math.max(1, math.min(6, i.visible.min)), i.visible.max = math.max(i.visible.min, math.min(6, i.visible.max)), this.$menu.addclass(s.columns); for(var a = this.opts.offcanvas ? this.$menu.add(o.$html) : this.$menu, r = [], l = 0; l <= i.visible.max; l++) r.push(s.columns + "-" + l); r = r.join(" "); var d = function(e) { u.call(this, this.$pnls.children("." + s.current)), i.hidenavbars && e.removeclass(s.hasnavbar) }, c = function() { var e = this.$pnls.children("." + s.panel).filter("." + s.opened).length; e = math.min(i.visible.max, math.max(i.visible.min, e)), a.removeclass(r).addclass(s.columns + "-" + e) }, h = function() { this.opts.offcanvas && o.$html.removeclass(r) }, u = function(t) { this.$pnls.children("." + s.panel).removeclass(r).filter("." + s.subopened).removeclass(s.hidden).add(t).slice(-i.visible.max).each(function(t) { e(this).addclass(s.columns + "-" + t) }) }; this.bind("open", c), this.bind("close", h), this.bind("init", d), this.bind("openpanel", u), this.bind("openingpanel", c), this.bind("openedpanel", c), this.opts.offcanvas || c.call(this) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("columns") }, clickanchor: function(t, i) { if(!this.opts[n].add) return !1; if(i) { var a = t.attr("href"); if(a.length > 1 && "#" == a.slice(0, 1)) try { var o = e(a, this.$menu); if(o.is("." + s.panel)) for(var r = parseint(t.closest("." + s.panel).attr("class").split(s.columns + "-")[1].split(" ")[0], 10) + 1; r !== !1;) { var l = this.$pnls.children("." + s.columns + "-" + r); if(!l.length) { r = !1; break } r++, l.removeclass(s.subopened).removeclass(s.opened).removeclass(s.current).removeclass(s.highest).addclass(s.hidden) } } catch(d) {} } } }, e[t].defaults[n] = { add: !1, visible: { min: 1, max: 3 }, hidenavbars: !1 }; var s, i, a, o }(jquery), /* * jquery mmenu counters addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "counters"; e[t].addons[n] = { setup: function() { var a = this, r = this.opts[n]; this.conf[n]; o = e[t].glbl, "boolean" == typeof r && (r = { add: r, update: r }), "object" != typeof r && (r = {}), r = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], r), this.bind("init", function(t) { this.__refactorclass(e("em", t), this.conf.classnames[n].counter, "counter") }), r.add && this.bind("init", function(t) { var n; switch(r.addto) { case "panels": n = t; break; default: n = t.filter(r.addto) } n.each(function() { var t = e(this).data(i.parent); t && (t.children("em." + s.counter).length || t.prepend(e(''))) }) }), r.update && this.bind("update", function() { this.$pnls.children("." + s.panel).each(function() { var t = e(this), n = t.data(i.parent); if(n) { var o = n.children("em." + s.counter); o.length && (t = t.children("." + s.listview), t.length && o.html(a.__filterlistitems(t.children()).length)) } }) }) }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("counter search noresultsmsg") }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { add: !1, addto: "panels", update: !1 }, e[t].configuration.classnames[n] = { counter: "counter" }; var s, i, a, o }(jquery), /* * jquery mmenu dividers addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "dividers"; e[t].addons[n] = { setup: function() { var i = this, r = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof r && (r = { add: r, fixed: r }), "object" != typeof r && (r = {}), r = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], r), this.bind("init", function(t) { this.__refactorclass(e("li", this.$menu), this.conf.classnames[n].collapsed, "collapsed") }), r.add && this.bind("init", function(t) { var n; switch(r.addto) { case "panels": n = t; break; default: n = t.filter(r.addto) } e("." + s.divider, n).remove(), n.find("." + s.listview).not("." + s.vertical).each(function() { var t = ""; i.__filterlistitems(e(this).children()).each(function() { var n = e.trim(e(this).children("a, span").text()).slice(0, 1).tolowercase(); n != t && n.length && (t = n, e('
  • ' + n + "
  • ").insertbefore(this)) }) }) }), r.collapse && this.bind("init", function(t) { e("." + s.divider, t).each(function() { var t = e(this), n = t.nextuntil("." + s.divider, "." + s.collapsed); n.length && (t.children("." + s.subopen).length || (t.wrapinner(""), t.prepend(''))) }) }), r.fixed) { var l = function(t) { t = t || this.$pnls.children("." + s.current); var n = t.find("." + s.divider).not("." + s.hidden); if(n.length) { this.$menu.addclass(s.hasdividers); var i = t.scrolltop() || 0, a = ""; t.is(":visible") && t.find("." + s.divider).not("." + s.hidden).each(function() { e(this).position().top + i < i + 1 && (a = e(this).text()) }), this.$fixeddivider.text(a) } else this.$menu.removeclass(s.hasdividers) }; this.$fixeddivider = e('
    ').prependto(this.$pnls).children(), this.bind("openpanel", l), this.bind("update", l), this.bind("init", function(t) { t.off(a.scroll + "-dividers " + a.touchmove + "-dividers").on(a.scroll + "-dividers " + a.touchmove + "-dividers", function(t) { l.call(i, e(this)) }) }) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("collapsed uncollapsed fixeddivider hasdividers"), a.add("scroll") }, clickanchor: function(e, t) { if(this.opts[n].collapse && t) { var i = e.parent(); if(i.is("." + s.divider)) { var a = i.nextuntil("." + s.divider, "." + s.collapsed); return i.toggleclass(s.opened), a[i.hasclass(s.opened) ? "addclass" : "removeclass"](s.uncollapsed), !0 } } return !1 } }, e[t].defaults[n] = { add: !1, addto: "panels", fixed: !1, collapse: !1 }, e[t].configuration.classnames[n] = { collapsed: "collapsed" }; var s, i, a, o }(jquery), /* * jquery mmenu dragopen addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { function t(e, t, n) { return t > e && (e = t), e > n && (e = n), e } var n = "mmenu", s = "dragopen"; e[n].addons[s] = { setup: function() { if(this.opts.offcanvas) { var a = this, o = this.opts[s], l = this.conf[s]; if(r = e[n].glbl, "boolean" == typeof o && (o = { open: o }), "object" != typeof o && (o = {}), o = this.opts[s] = e.extend(!0, {}, e[n].defaults[s], o), o.open) { var d, c, h, u, p, f = {}, v = 0, m = !1, g = !1, b = 0, _ = 0; switch(this.opts.offcanvas.position) { case "left": case "right": f.events = "panleft panright", f.typelower = "x", f.typeupper = "x", g = "width"; break; case "top": case "bottom": f.events = "panup pandown", f.typelower = "y", f.typeupper = "y", g = "height" } switch(this.opts.offcanvas.position) { case "right": case "bottom": f.negative = !0, u = function(e) { e >= r.$wndw[g]() - o.maxstartpos && (v = 1) }; break; default: f.negative = !1, u = function(e) { e <= o.maxstartpos && (v = 1) } } switch(this.opts.offcanvas.position) { case "left": f.open_dir = "right", f.close_dir = "left"; break; case "right": f.open_dir = "left", f.close_dir = "right"; break; case "top": f.open_dir = "down", f.close_dir = "up"; break; case "bottom": f.open_dir = "up", f.close_dir = "down" } switch(this.opts.offcanvas.zposition) { case "front": p = function() { return this.$menu }; break; default: p = function() { return e("." + i.slideout) } } var c = this.__valueorfn(o.pagenode, this.$menu, r.$page); "string" == typeof c && (c = e(c)); var $ = new hammer(c[0], o.vendors.hammer); $.on("panstart", function(e) { u(e.center[f.typelower]), r.$slideoutnodes = p(), m = f.open_dir }).on(f.events + " panend", function(e) { v > 0 && e.preventdefault() }).on(f.events, function(e) { if(d = e["delta" + f.typeupper], f.negative && (d = -d), d != b && (m = d >= b ? f.open_dir : f.close_dir), b = d, b > o.threshold && 1 == v) { if(r.$html.hasclass(i.opened)) return; v = 2, a._opensetup(), a.trigger("opening"), r.$html.addclass(i.dragging), _ = t(r.$wndw[g]() * l[g].perc, l[g].min, l[g].max) } 2 == v && (c = t(b, 10, _) - ("front" == a.opts.offcanvas.zposition ? _ : 0), f.negative && (c = -c), h = "translate" + f.typeupper + "(" + c + "px )", r.$slideoutnodes.css({ "-webkit-transform": "-webkit-" + h, transform: h })) }).on("panend", function(e) { 2 == v && (r.$html.removeclass(i.dragging), r.$slideoutnodes.css("transform", ""), a[m == f.open_dir ? "_openfinish" : "close"]()), v = 0 }) } } }, add: function() { return "function" != typeof hammer || hammer.version < 2 ? void(e[n].addons[s].setup = function() {}) : (i = e[n]._c, a = e[n]._d, o = e[n]._e, void i.add("dragging")) }, clickanchor: function(e, t) {} }, e[n].defaults[s] = { open: !1, maxstartpos: 100, threshold: 50, vendors: { hammer: {} } }, e[n].configuration[s] = { width: { perc: .8, min: 140, max: 440 }, height: { perc: .8, min: 140, max: 880 } }; var i, a, o, r }(jquery), /* * jquery mmenu dropdown addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "dropdown"; e[t].addons[n] = { setup: function() { if(this.opts.offcanvas) { var r = this, l = this.opts[n], d = this.conf[n]; if(o = e[t].glbl, "boolean" == typeof l && l && (l = { drop: l }), "object" != typeof l && (l = {}), "string" == typeof l.position && (l.position = { of: l.position }), l = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], l), l.drop) { if("string" != typeof l.position.of) { var c = this.$menu.attr("id"); c && c.length && (this.conf.clone && (c = s.umm(c)), l.position.of = '[href="#' + c + '"]') } if("string" == typeof l.position.of) { var h = e(l.position.of); if(h.length) { this.$menu.addclass(s.dropdown), l.tip && this.$menu.addclass(s.tip), l.event = l.event.split(" "), 1 == l.event.length && (l.event[1] = l.event[0]), "hover" == l.event[0] && h.on(a.mouseenter + "-dropdown", function() { r.open() }), "hover" == l.event[1] && this.$menu.on(a.mouseleave + "-dropdown", function() { r.close() }), this.bind("opening", function() { this.$menu.data(i.style, this.$menu.attr("style") || ""), o.$html.addclass(s.dropdown) }), this.bind("closed", function() { this.$menu.attr("style", this.$menu.data(i.style)), o.$html.removeclass(s.dropdown) }); var u = function(i, a) { var r = a[0], c = a[1], u = "x" == i ? "scrollleft" : "scrolltop", p = "x" == i ? "outerwidth" : "outerheight", f = "x" == i ? "left" : "top", v = "x" == i ? "right" : "bottom", m = "x" == i ? "width" : "height", g = "x" == i ? "maxwidth" : "maxheight", b = null, _ = o.$wndw[u](), c = h.offset()[f] -= _, $ = c + h[p](), y = o.$wndw[m](), x = d.offset.button[i] + d.offset.viewport[i]; if(l.position[i]) switch(l.position[i]) { case "left": case "bottom": b = "after"; break; case "right": case "top": b = "before" } null === b && (b = y / 2 > c + ($ - c) / 2 ? "after" : "before"); var w, k; return "after" == b ? (w = "x" == i ? c : $, k = y - (w + x), r[f] = w + d.offset.button[i], r[v] = "auto", c.push(s["x" == i ? "tipleft" : "tiptop"])) : (w = "x" == i ? $ : c, k = w - x, r[v] = "calc( 100% - " + (w - d.offset.button[i]) + "px )", r[f] = "auto", c.push(s["x" == i ? "tipright" : "tipbottom"])), r[g] = math.min(e[t].configuration[n][m].max, k), [r, c] }, p = function(e) { if(this.vars.opened) { this.$menu.attr("style", this.$menu.data(i.style)); var t = [{}, [] ]; t = u.call(this, "y", t), t = u.call(this, "x", t), this.$menu.css(t[0]), l.tip && this.$menu.removeclass(s.tipleft + " " + s.tipright + " " + s.tiptop + " " + s.tipbottom).addclass(t[1].join(" ")) } }; this.bind("opening", p), o.$wndw.on(a.resize + "-dropdown", function(e) { p.call(r) }), this.opts.offcanvas.blockui || o.$wndw.on(a.scroll + "-dropdown", function(e) { p.call(r) }) } } } } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("dropdown tip tipleft tipright tiptop tipbottom"), a.add("mouseenter mouseleave resize scroll") }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { drop: !1, event: "click", position: {}, tip: !0 }, e[t].configuration[n] = { offset: { button: { x: -10, y: 10 }, viewport: { x: 20, y: 20 } }, height: { max: 880 }, width: { max: 440 } }; var s, i, a, o }(jquery), /* * jquery mmenu fixedelements addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "fixedelements"; e[t].addons[n] = { setup: function() { if(this.opts.offcanvas) { var s = this.opts[n]; this.conf[n]; o = e[t].glbl, s = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], s); var i = function(e) { var t = this.conf.classnames[n].fixed; this.__refactorclass(e.find("." + t), t, "slideout").appendto(o.$body) }; i.call(this, o.$page), this.bind("setpage", i) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("fixed") }, clickanchor: function(e, t) {} }, e[t].configuration.classnames[n] = { fixed: "fixed" }; var s, i, a, o }(jquery), /* * jquery mmenu iconpanels addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "iconpanels"; e[t].addons[n] = { setup: function() { var i = this, a = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof a && (a = { add: a }), "number" == typeof a && (a = { add: !0, visible: a }), "object" != typeof a && (a = {}), a = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], a), a.visible++, a.add) { this.$menu.addclass(s.iconpanel); for(var r = [], l = 0; l <= a.visible; l++) r.push(s.iconpanel + "-" + l); r = r.join(" "); var d = function(t) { t.hasclass(s.vertical) || i.$pnls.children("." + s.panel).removeclass(r).filter("." + s.subopened).removeclass(s.hidden).add(t).not("." + s.vertical).slice(-a.visible).each(function(t) { e(this).addclass(s.iconpanel + "-" + t) }) }; this.bind("openpanel", d), this.bind("init", function(t) { d.call(i, i.$pnls.children("." + s.current)), a.hidenavbars && t.removeclass(s.hasnavbar), t.not("." + s.vertical).each(function() { e(this).children("." + s.subblocker).length || e(this).prepend('
    ') }) }) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("iconpanel subblocker") }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { add: !1, visible: 3, hidenavbars: !1 }; var s, i, a, o }(jquery), /* * jquery mmenu navbar addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars"; e[t].addons[n] = { setup: function() { var i = this, a = this.opts[n], r = this.conf[n]; if(o = e[t].glbl, "undefined" != typeof a) { a instanceof array || (a = [a]); var l = {}; e.each(a, function(o) { var d = a[o]; "boolean" == typeof d && d && (d = {}), "object" != typeof d && (d = {}), "undefined" == typeof d.content && (d.content = ["prev", "title"]), d.content instanceof array || (d.content = [d.content]), d = e.extend(!0, {}, i.opts.navbar, d); var c = d.position, h = d.height; "number" != typeof h && (h = 1), h = math.min(4, math.max(1, h)), "bottom" != c && (c = "top"), l[c] || (l[c] = 0), l[c]++; var u = e("
    ").addclass(s.navbar + " " + s.navbar + "-" + c + " " + s.navbar + "-" + c + "-" + l[c] + " " + s.navbar + "-size-" + h); l[c] += h - 1; for(var p = 0, f = 0, v = d.content.length; v > f; f++) { var m = e[t].addons[n][d.content[f]] || !1; m ? p += m.call(i, u, d, r) : (m = d.content[f], m instanceof e || (m = e(d.content[f])), u.append(m)) } p += math.ceil(u.children().not("." + s.btn).not("." + s.title + "-prev").length / h), p > 1 && u.addclass(s.navbar + "-content-" + p), u.children("." + s.btn).length && u.addclass(s.hasbtns), u.prependto(i.$menu) }); for(var d in l) i.$menu.addclass(s.hasnavbar + "-" + d + "-" + l[d]) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("close hasbtns") }, clickanchor: function(e, t) {} }, e[t].configuration[n] = { breadcrumbseparator: "/" }, e[t].configuration.classnames[n] = {}; var s, i, a, o }(jquery), /* * jquery mmenu navbar addon breadcrumbs content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "breadcrumbs"; e[t].addons[n][s] = function(n, s, i) { var a = e[t]._c, o = e[t]._d; a.add("breadcrumbs separator"); var r = e('').appendto(n); this.bind("init", function(t) { t.removeclass(a.hasnavbar).each(function() { for(var t = [], n = e(this), s = e(''), r = e(this).children().first(), l = !0; r && r.length;) { r.is("." + a.panel) || (r = r.closest("." + a.panel)); var d = r.children("." + a.navbar).children("." + a.title).text(); t.unshift(l ? "" + d + "" : '' + d + ""), l = !1, r = r.data(o.parent) } s.append(t.join('' + i.breadcrumbseparator + "")).appendto(n.children("." + a.navbar)) }) }); var l = function() { r.html(this.$pnls.children("." + a.current).children("." + a.navbar).children("." + a.breadcrumbs).html()) }; return this.bind("openpanel", l), this.bind("init", l), 0 } }(jquery), /* * jquery mmenu navbar addon close content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "close"; e[t].addons[n][s] = function(n, s) { var i = e[t]._c, a = e[t].glbl, o = e('').appendto(n), r = function(e) { o.attr("href", "#" + e.attr("id")) }; return r.call(this, a.$page), this.bind("setpage", r), -1 } }(jquery), /* * jquery mmenu navbar addon next content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "next"; e[t].addons[n][s] = function(s, i) { var a, o, r = e[t]._c, l = e('').appendto(s), d = function(e) { e = e || this.$pnls.children("." + r.current); var t = e.find("." + this.conf.classnames[n].panelnext); a = t.attr("href"), o = t.html(), l[a ? "attr" : "removeattr"]("href", a), l[a || o ? "removeclass" : "addclass"](r.hidden), l.html(o) }; return this.bind("openpanel", d), this.bind("init", function() { d.call(this) }), -1 }, e[t].configuration.classnames[n].panelnext = "next" }(jquery), /* * jquery mmenu navbar addon prev content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "prev"; e[t].addons[n][s] = function(s, i) { var a = e[t]._c, o = e('').appendto(s); this.bind("init", function(e) { e.removeclass(a.hasnavbar).children("." + a.navbar).addclass(a.hidden) }); var r, l, d = function(e) { if(e = e || this.$pnls.children("." + a.current), !e.hasclass(a.vertical)) { var t = e.find("." + this.conf.classnames[n].panelprev); t.length || (t = e.children("." + a.navbar).children("." + a.prev)), r = t.attr("href"), l = t.html(), o[r ? "attr" : "removeattr"]("href", r), o[r || l ? "removeclass" : "addclass"](a.hidden), o.html(l) } }; return this.bind("openpanel", d), this.bind("init", function() { d.call(this) }), -1 }, e[t].configuration.classnames[n].panelprev = "prev" }(jquery), /* * jquery mmenu navbar addon searchfield content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "searchfield"; e[t].addons[n][s] = function(n, s) { var i = e[t]._c, a = e('
    ').appendto(n); return "object" != typeof this.opts.searchfield && (this.opts.searchfield = {}), this.opts.searchfield.add = !0, this.opts.searchfield.addto = a, 0 } }(jquery), /* * jquery mmenu navbar addon title content * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "navbars", s = "title"; e[t].addons[n][s] = function(s, i) { var a, o, r = e[t]._c, l = e('').appendto(s), d = function(e) { if(e = e || this.$pnls.children("." + r.current), !e.hasclass(r.vertical)) { var t = e.find("." + this.conf.classnames[n].paneltitle); t.length || (t = e.children("." + r.navbar).children("." + r.title)), a = t.attr("href"), o = t.html() || i.title, l[a ? "attr" : "removeattr"]("href", a), l[a || o ? "removeclass" : "addclass"](r.hidden), l.html(o) } }; return this.bind("openpanel", d), this.bind("init", function(e) { d.call(this) }), 0 }, e[t].configuration.classnames[n].paneltitle = "title" }(jquery), /* * jquery mmenu screenreader addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { function t(e, t, n) { e.prop("aria-" + t, n)[n ? "attr" : "removeattr"]("aria-" + t, "true") } function n(e) { return '' + e + "" } var s = "mmenu", i = "screenreader"; e[s].addons[i] = { setup: function() { var o = this.opts[i], r = this.conf[i]; if(l = e[s].glbl, "boolean" == typeof o && (o = { aria: o, text: o }), "object" != typeof o && (o = {}), o = this.opts[i] = e.extend(!0, {}, e[s].defaults[i], o), o.aria) { if(this.opts.offcanvas) { var d = function() { t(this.$menu, "hidden", !1) }, c = function() { t(this.$menu, "hidden", !0) }; this.bind("open", d), this.bind("close", c), c.call(this) } var h = function() { t(this.$menu.find("." + a.hidden), "hidden", !0), t(this.$menu.find('[aria-hidden="true"]').not("." + a.hidden), "hidden", !1) }, u = function(e) { t(this.$pnls.children("." + a.panel).not(e).not("." + a.hidden), "hidden", !0), t(e, "hidden", !1) }; this.bind("update", h), this.bind("openpanel", h), this.bind("openpanel", u); var p = function(e) { t(e.find("." + a.prev + ", ." + a.next), "haspopup", !0) }; this.bind("init", p), p.call(this, this.$menu.children("." + a.navbar)) } if(o.text) { var f = function(t) { t.children("." + a.navbar).children("." + a.prev).html(n(r.text.closesubmenu)).end().children("." + a.next).html(n(r.text.opensubmenu)).end().children("." + a.close).html(n(r.text.closemenu)), t.is("." + a.panel) && t.find("." + a.listview).find("." + a.next).each(function() { e(this).html(n(r.text[e(this).parent().is("." + a.vertical) ? "togglesubmenu" : "opensubmenu"])) }) }; this.bind("init", f), f.call(this, this.$menu) } }, add: function() { a = e[s]._c, o = e[s]._d, r = e[s]._e, a.add("sronly") }, clickanchor: function(e, t) {} }, e[s].defaults[i] = { aria: !1, text: !1 }, e[s].configuration[i] = { text: { closemenu: "close menu", closesubmenu: "close submenu", opensubmenu: "open submenu", togglesubmenu: "toggle submenu" } }; var a, o, r, l }(jquery), /* * jquery mmenu searchfield addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { function t(e) { switch(e) { case 9: case 16: case 17: case 18: case 37: case 38: case 39: case 40: return !0 } return !1 } var n = "mmenu", s = "searchfield"; e[n].addons[s] = { setup: function() { var l = this, d = this.opts[s], c = this.conf[s]; r = e[n].glbl, "boolean" == typeof d && (d = { add: d }), "object" != typeof d && (d = {}), "boolean" == typeof d.resultspanel && (d.resultspanel = { add: d.resultspanel }), d = this.opts[s] = e.extend(!0, {}, e[n].defaults[s], d), c = this.conf[s] = e.extend(!0, {}, e[n].configuration[s], c), this.bind("close", function() { this.$menu.find("." + i.search).find("input").blur() }), this.bind("init", function(n) { if(d.add) { var r; switch(d.addto) { case "panels": r = n; break; default: r = this.$menu.find(d.addto) } if(r.each(function() { var t = e(this); if(!t.is("." + i.panel) || !t.is("." + i.vertical)) { if(!t.children("." + i.search).length) { var n = l.__valueorfn(c.clear, t), s = l.__valueorfn(c.form, t), a = l.__valueorfn(c.input, t), r = l.__valueorfn(c.submit, t), h = e("<" + (s ? "form" : "div") + ' class="' + i.search + '" />'), u = e(''); h.append(u); var p; if(a) for(p in a) u.attr(p, a[p]); if(n && e('').appendto(h).on(o.click + "-searchfield", function(e) { e.preventdefault(), u.val("").trigger(o.keyup + "-searchfield") }), s) { for(p in s) h.attr(p, s[p]); r && !n && e('').appendto(h).on(o.click + "-searchfield", function(e) { e.preventdefault(), h.submit() }) } t.hasclass(i.search) ? t.replacewith(h) : t.prepend(h).addclass(i.hassearch) } if(d.noresults) { var f = t.closest("." + i.panel).length; if(f || (t = l.$pnls.children("." + i.panel).first()), !t.children("." + i.noresultsmsg).length) { var v = t.children("." + i.listview).first(); e('
    ').append(d.noresults)[v.length ? "insertafter" : "prependto"](v.length ? v : t) } } } }), d.search) { if(d.resultspanel.add) { d.showsubpanels = !1; var h = this.$pnls.children("." + i.resultspanel); h.length || (h = e('
    ').appendto(this.$pnls).append('").append('
      ').append(this.$pnls.find("." + i.noresultsmsg).first().clone()), this.init(h)) } this.$menu.find("." + i.search).each(function() { var n, r, c = e(this), u = c.closest("." + i.panel).length; u ? (n = c.closest("." + i.panel), r = n) : (n = e("." + i.panel, l.$menu), r = l.$menu), d.resultspanel.add && (n = n.not(h)); var p = c.children("input"), f = l.__findaddback(n, "." + i.listview).children("li"), v = f.filter("." + i.divider), m = l.__filterlistitems(f), g = "a", b = g + ", span", _ = "", c = function() { var t = p.val().tolowercase(); if(t != _) { if(_ = t, d.resultspanel.add && h.children("." + i.listview).empty(), n.scrolltop(0), m.add(v).addclass(i.hidden).find("." + i.fullsubopensearch).removeclass(i.fullsubopen + " " + i.fullsubopensearch), m.each(function() { var t = e(this), n = g; (d.showtextitems || d.showsubpanels && t.find("." + i.next)) && (n = b); var s = t.data(a.searchtext) || t.children(n).text(); s.tolowercase().indexof(_) > -1 && t.add(t.prevall("." + i.divider).first()).removeclass(i.hidden) }), d.showsubpanels && n.each(function(t) { var n = e(this); l.__filterlistitems(n.find("." + i.listview).children()).each(function() { var t = e(this), n = t.data(a.sub); t.removeclass(i.nosubresults), n && n.find("." + i.listview).children().removeclass(i.hidden) }) }), d.resultspanel.add) if("" === _) this.closeallpanels(), this.openpanel(this.$pnls.children("." + i.subopened).last()); else { var s = e(); n.each(function() { var t = l.__filterlistitems(e(this).find("." + i.listview).children()).not("." + i.hidden).clone(!0); t.length && (d.resultspanel.dividers && (s = s.add('
    • ' + e(this).children("." + i.navbar).text() + "
    • ")), s = s.add(t)) }), s.find("." + i.next).remove(), h.children("." + i.listview).append(s), this.openpanel(h) } else e(n.get().reverse()).each(function(t) { var n = e(this), s = n.data(a.parent); s && (l.__filterlistitems(n.find("." + i.listview).children()).length ? (s.hasclass(i.hidden) && s.children("." + i.next).not("." + i.fullsubopen).addclass(i.fullsubopen).addclass(i.fullsubopensearch), s.removeclass(i.hidden).removeclass(i.nosubresults).prevall("." + i.divider).first().removeclass(i.hidden)) : u || (n.hasclass(i.opened) && settimeout(function() { l.openpanel(s.closest("." + i.panel)) }, (t + 1) * (1.5 * l.conf.openinginterval)), s.addclass(i.nosubresults))) }); r.find("." + i.noresultsmsg)[m.not("." + i.hidden).length ? "addclass" : "removeclass"](i.hidden), this.update() } }; p.off(o.keyup + "-" + s + " " + o.change + "-" + s).on(o.keyup + "-" + s, function(e) { t(e.keycode) || c.call(l) }).on(o.change + "-" + s, function(e) { c.call(l) }); var $ = c.children("." + i.btn); $.length && p.on(o.keyup + "-" + s, function(e) { $[p.val().length ? "removeclass" : "addclass"](i.hidden) }), p.trigger(o.keyup + "-" + s) }) } } }) }, add: function() { i = e[n]._c, a = e[n]._d, o = e[n]._e, i.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"), a.add("searchtext"), o.add("change keyup") }, clickanchor: function(e, t) {} }, e[n].defaults[s] = { add: !1, addto: "panels", placeholder: "search", noresults: "no results found.", resultspanel: { add: !1, dividers: !0, title: "search results" }, search: !0, showtextitems: !1, showsubpanels: !0 }, e[n].configuration[s] = { clear: !1, form: !1, input: !1, submit: !1 }; var i, a, o, r }(jquery), /* * jquery mmenu sectionindexer addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "sectionindexer"; e[t].addons[n] = { setup: function() { var i = this, r = this.opts[n]; this.conf[n]; o = e[t].glbl, "boolean" == typeof r && (r = { add: r }), "object" != typeof r && (r = {}), r = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], r), this.bind("init", function(t) { if(r.add) { var n; switch(r.addto) { case "panels": n = t; break; default: n = e(r.addto, this.$menu).filter("." + s.panel) } n.find("." + s.divider).closest("." + s.panel).addclass(s.hasindexer) } if(!this.$indexer && this.$pnls.children("." + s.hasindexer).length) { this.$indexer = e('
      ').prependto(this.$pnls).append('abcdefghijklmnopqrstuvwxyz'), this.$indexer.children().on(a.mouseover + "-sectionindexer " + s.touchstart + "-sectionindexer", function(t) { var n = e(this).attr("href").slice(1), a = i.$pnls.children("." + s.current), o = a.find("." + s.listview), r = !1, l = a.scrolltop(); a.scrolltop(0), o.children("." + s.divider).not("." + s.hidden).each(function() { r === !1 && n == e(this).text().slice(0, 1).tolowercase() && (r = e(this).position().top) }), a.scrolltop(r !== !1 ? r : l) }); var o = function(e) { i.$menu[(e.hasclass(s.hasindexer) ? "add" : "remove") + "class"](s.hasindexer) }; this.bind("openpanel", o), o.call(this, this.$pnls.children("." + s.current)) } }) }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("indexer hasindexer"), a.add("mouseover touchstart") }, clickanchor: function(e, t) { return e.parent().is("." + s.indexer) ? !0 : void 0 } }, e[t].defaults[n] = { add: !1, addto: "panels" }; var s, i, a, o }(jquery), /* * jquery mmenu setselected addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "setselected"; e[t].addons[n] = { setup: function() { var a = this.opts[n]; this.conf[n]; if(o = e[t].glbl, "boolean" == typeof a && (a = { hover: a, parent: a }), "object" != typeof a && (a = {}), a = this.opts[n] = e.extend(!0, {}, e[t].defaults[n], a), a.current || this.bind("init", function(e) { e.find("." + s.listview).children("." + s.selected).removeclass(s.selected) }), a.hover && this.$menu.addclass(s.hoverselected), a.parent) { this.$menu.addclass(s.parentselected); var r = function(e) { this.$pnls.find("." + s.listview).find("." + s.next).removeclass(s.selected); for(var t = e.data(i.parent); t && t.length;) t = t.children("." + s.next).addclass(s.selected).closest("." + s.panel).data(i.parent) }; this.bind("openedpanel", r), this.bind("init", function(e) { r.call(this, this.$pnls.children("." + s.current)) }) } }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("hoverselected parentselected") }, clickanchor: function(e, t) {} }, e[t].defaults[n] = { current: !0, hover: !1, parent: !1 }; var s, i, a, o }(jquery), /* * jquery mmenu toggles addon * mmenu.frebsite.nl * * copyright (c) fred heusschen */ function(e) { var t = "mmenu", n = "toggles"; e[t].addons[n] = { setup: function() { var i = this; this.opts[n], this.conf[n]; o = e[t].glbl, this.bind("init", function(t) { this.__refactorclass(e("input", t), this.conf.classnames[n].toggle, "toggle"), this.__refactorclass(e("input", t), this.conf.classnames[n].check, "check"), e("input." + s.toggle + ", input." + s.check, t).each(function() { var t = e(this), n = t.closest("li"), a = t.hasclass(s.toggle) ? "toggle" : "check", o = t.attr("id") || i.__getuniqueid(); n.children('label[for="' + o + '"]').length || (t.attr("id", o), n.prepend(t), e('').insertbefore(n.children("a, span").last())) }) }) }, add: function() { s = e[t]._c, i = e[t]._d, a = e[t]._e, s.add("toggle check") }, clickanchor: function(e, t) {} }, e[t].configuration.classnames[n] = { toggle: "toggle", check: "check" }; var s, i, a, o }(jquery);