PageSourceSearch

https://hadarat.net/assets/js/jquery.meanmenu.js?v=56591e35802b

js hadarat.net collected 2026-10-04 23:37:02 UTC 5,513 bytes, 71 lines download raw bytes

1!function (e) {
2    "use strict";
3    e.fn.meanmenu = function (n) {
4        var a = {
5            meanMenuTarget: jQuery(this),
6            meanMenuContainer: ".sinmun-mobile-nav",
7            meanMenuClose: "X",
8            meanMenuCloseSize: "18px",
9            meanMenuOpen: "<span></span><span></span><span></span>",
10            meanRevealPosition: "right",
11            meanRevealPositionDistance: "0",
12            meanRevealColour: "",
13            meanScreenWidth: "480",
14            meanNavPush: "",
15            meanShowChildren: !0,
16            meanExpandableChildren: !0,
17            meanExpand: "+",
18            meanContract: "-",
19            meanRemoveAttrs: !1,
20            onePage: !1,
21            meanDisplay: "flex",
22            removeElements: ""
23        };
24        n = e.extend(a, n);
25        var t = window.innerWidth || document.documentElement.clientWidth;
26        return this.each(function () {
27            var e = n.meanMenuTarget, a = n.meanMenuContainer, r = n.meanMenuClose, i = n.meanMenuCloseSize,
28                s = n.meanMenuOpen, u = n.meanRevealPosition, m = n.meanRevealPositionDistance, l = n.meanRevealColour,
29                o = n.meanScreenWidth, c = n.meanNavPush, v = ".meanmenu-reveal", h = n.meanShowChildren,
30                d = n.meanExpandableChildren, y = n.meanExpand, j = n.meanContract, Q = n.meanRemoveAttrs,
31                f = n.onePage, g = n.meanDisplay, p = n.removeElements, C = !1;
32            (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)) && (C = !0), (navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i)) && jQuery("html").css("overflow-y", "scroll");
33            var w = "", x = function () {
34                if ("center" === u) {
35                    var e = (window.innerWidth || document.documentElement.clientWidth) / 2 - 22 + "px";
36                    w = "left:" + e + ";right:auto;", C ? jQuery(".meanmenu-reveal").animate({left: e}) : jQuery(".meanmenu-reveal").css("left", e)
37                }
38            }, A = !1, E = !1;
39            "right" === u && (w = "right:" + m + ";left:auto;"), "left" === u && (w = "left:" + m + ";right:auto;"), x();
40            var M = "", P = function () {
41                M.html(jQuery(M).is(".meanmenu-reveal.meanclose") ? r : s)
42            }, W = function () {
43                jQuery(".mean-bar,.mean-push").remove(), jQuery(a).removeClass("mean-container"), jQuery(e).css("display", g), A = !1, E = !1, jQuery(p).removeClass("mean-remove")
44            }, b = function () {
45                    var n = "background:" + l + ";color:" + l + ";" + w;
46                    if ("" === l && (n = w), o >= t) {
47                    jQuery(p).addClass("mean-remove"), E = !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>');
48                    var r = jQuery(e).html();
49                    jQuery(".mean-nav").html(r), Q && jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function () {
50                        jQuery(this).is(".mean-remove") ? jQuery(this).attr("class", "mean-remove") : jQuery(this).removeAttr("class"), jQuery(this).removeAttr("id")
51                    }), jQuery(e).before('<div class="mean-push" />'), jQuery(".mean-push").css("margin-top", c), jQuery(e).hide(), jQuery(".meanmenu-reveal").show(), jQuery(v).html(s), M = jQuery(v), jQuery(".mean-nav ul").hide(), h ? d ? (jQuery(".mean-nav ul ul").each(function () {
52                        jQuery(this).children().length && jQuery(this, "li:first").parent().append('<a class="mean-expand" href="#" style="font-size: ' + i + '">' + y + "</a>")
53                    }), jQuery(".mean-expand").on("click", function (e) {
54                        e.preventDefault(), jQuery(this).hasClass("mean-clicked") ? (jQuery(this).text(y), jQuery(this).prev("ul").slideUp(300, function () {
55                        })) : (jQuery(this).text(j), jQuery(this).prev("ul").slideDown(300, function () {
56                        })), jQuery(this).toggleClass("mean-clicked")
57                    })) : 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) {
58                        e.preventDefault(), !1 === A ? (M.css("text-align", "center"), M.css("text-indent", "0"), M.css("font-size", i), jQuery(".mean-nav ul:first").slideDown(), A = !0) : (jQuery(".mean-nav ul:first").slideUp(), A = !1), M.toggleClass("meanclose"), P(), jQuery(p).addClass("mean-remove")
59                    }), f && jQuery(".mean-nav ul > li > a:first-child").on("click", function () {
60                        jQuery(".mean-nav ul:first").slideUp(), A = !1, jQuery(M).toggleClass("meanclose").html(s)
61                    })
62                } else W()
63            };
64            C || jQuery(window).resize(function () {
65                t = window.innerWidth || document.documentElement.clientWidth, W(), o >= t ? (b(), x()) : W()
66            }), jQuery(window).resize(function () {
67                t = window.innerWidth || document.documentElement.clientWidth, C ? (x(), o >= t ? !1 === E && b() : W()) : (W(), o >= t && (b(), x()))
68            }), b()
69        })
70    }
71}(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.