PageSourceSearch

https://mobipixels.com/assets/js/jquery.meanmenu.min.js

js mobipixels.com collected 2026-10-02 01:36:15 UTC 5,997 bytes, 90 lines download raw bytes

1/*!
2 * jQuery meanMenu v2.0.8
3 * @Copyright (C) 2012-2014 Chris Wharton @ MeanThemes (https://github.com/meanthemes/meanMenu)
4 *
5 */
6! function(e) {
7    "use strict";
8    e.fn.meanmenu = function(n) {
9        var a = {
10            meanMenuTarget: jQuery(this),
11            meanMenuContainer: "body",
12            meanMenuClose: "X",
13            meanMenuCloseSize: "18px",
14            meanMenuOpen: "<span /><span /><span />",
15            meanRevealPosition: "right",
16            meanRevealPositionDistance: "0",
17            meanRevealColour: "",
18            meanScreenWidth: "480",
19            meanNavPush: "",
20            meanShowChildren: !0,
21            meanExpandableChildren: !0,
22            meanRemoveAttrs: !1,
23            onePage: !1,
24            meanDisplay: "block",
25            removeElements: ""
26        };
27        n = e.extend(a, n);
28        var t = window.innerWidth || document.documentElement.clientWidth;
29        return this.each(function() {
30            var e = n.meanMenuTarget,
31                a = n.meanMenuContainer,
32                r = n.meanMenuClose,
33                i = n.meanMenuCloseSize,
34                s = n.meanMenuOpen,
35                u = n.meanRevealPosition,
36                m = n.meanRevealPositionDistance,
37                l = n.meanRevealColour,
38                o = n.meanScreenWidth,
39                c = n.meanNavPush,
40                d = n.meanShowChildren,
41                v = n.meanExpandableChildren,
42                h = n.meanExpand,
43                y = n.meanRemoveAttrs,
44                j = n.onePage,
45                Q = n.meanDisplay,
46                f = n.removeElements,
47                p = !1;
48            (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/Blackberry/i) || navigator.userAgent.match(/Windows Phone/i)) && (p = !0), (navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i)) && jQuery("html").css("overflow-y", "scroll");
49            var g = "",
50                C = function() {
51                    if ("center" === u) {
52                        var e = (window.innerWidth || document.documentElement.clientWidth) / 2 - 22 + "px";
53                        g = "left:" + e + ";right:auto;", p ? jQuery(".meanmenu-reveal").animate({
54                            left: e
55                        }) : jQuery(".meanmenu-reveal").css("left", e)
56                    }
57                },
58                w = !1,
59                A = !1;
60            "right" === u && (g = "right:" + m + ";left:auto;"), "left" === u && (g = "left:" + m + ";right:auto;"), C();
61            var M = "",
62                P = function() {
63                    jQuery(".mean-bar,.mean-push").remove(), jQuery(a).removeClass("mean-container"), jQuery(e).css("display", Q), w = !1, A = !1, jQuery(f).removeClass("mean-remove")
64                },
65                E = function() {
66                    var n = "background:" + l + ";color:" + l + ";" + g;
67                    if (t <= o) {
68                        jQuery(f).addClass("mean-remove"), A = !0, jQuery(a).addClass("mean-container"), jQuery(".mean-container").prepend('<div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="' + n + '">Show Navigation</a><nav class="mean-nav"></nav></div>');
69                        var u = jQuery(e).html();
70                        jQuery(".mean-nav").html(u), y && jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function() {
71                            jQuery(this).is(".mean-remove") ? jQuery(this).attr("class", "mean-remove") : jQuery(this).removeAttr("class"), jQuery(this).removeAttr("id")
72                        }), jQuery(e).before('<div class="mean-push" />'), jQuery(".mean-push").css("margin-top", c), jQuery(e).hide(), jQuery(".meanmenu-reveal").show(), jQuery(".meanmenu-reveal").html(s), M = jQuery(".meanmenu-reveal"), jQuery(".mean-nav ul").hide(), d ? v ? (jQuery(".mean-nav ul ul").each(function() {
73                            jQuery(this).children().length && jQuery(this, "li:first").parent().append('<a class="mean-expand" href="#" style="font-size: ' + i + '">' + h + "</a>")
74                        }), jQuery(".mean-expand").on("click", function(e) {
75                            e.preventDefault(), jQuery(this).hasClass("mean-clicked") ? (j
75Query(this).prev("ul").slideUp(300, function() {}), jQuery(this).parent().removeClass("dropdown-opened")) : (jQuery(this).prev("ul").slideDown(300, function() {}), jQuery(this).parent().addClass("dropdown-opened")), jQuery(this).toggleClass("mean-clicked")
76                        })) : jQuery(".mean-nav ul ul").show() : jQuery(".mean-nav ul ul").hide(), jQuery(".mean-nav ul li").last().addClass("mean-last"), M.removeClass("meanclose"), jQuery(M).click(function(e) {
77                            e.preventDefault(), !1 === w ? (M.css("text-align", "center"), M.css("text-indent", "0"), M.css("font-size", i), jQuery(".mean-nav ul:first").slideDown(), w = !0) : (jQuery(".mean-nav ul:first").slideUp(), w = !1), M.toggleClass("meanclose"), jQuery(M).is(".meanmenu-reveal.meanclose") ? M.html(r) : M.html(s), jQuery(f).addClass("mean-remove")
78                        }), j && jQuery(".mean-nav ul > li > a:first-child").on("click", function() {
79                            jQuery(".mean-nav ul:first").slideUp(), w = !1, jQuery(M).toggleClass("meanclose").html(s)
80                        })
81                    } else P()
82                };
83            p || jQuery(window).resize(function() {
84                t = window.innerWidth || document.documentElement.clientWidth, P(), t 
84<= o ? (E(), C()) : P()
85            }), jQuery(window).resize(function() {
86                t = window.innerWidth || document.documentElement.clientWidth, p ? (C(), t <= o ? !1 === A && E() : P()) : (P(), t <= o && (E(), C()))
87            }), E()
88        })
89    }
90}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.