PageSourceSearch

https://www.lanews.com.cn/templateRes/202302/23/31609/att/js/jquery.meanmenu.min.js

js lanews.com.cn collected 2026-10-02 18:23:13 UTC 5,240 bytes, 124 lines download raw bytes

1! function(a) {
2	a.fn.meanmenu = function(c) {
3		var d = {
4			meanMenuTarget: jQuery(this),
5			meanMenuContainer: "body",
6			meanMenuClose: "X",
7			meanMenuCloseSize: "18px",
8			meanMenuOpen: "<span /><span /><span />",
9			meanRevealPosition: "right",
10			meanRevealPositionDistance: "0",
11			meanRevealColour: "",
12			meanScreenWidth: "480",
13			meanNavPush: "",
14			meanShowChildren: !0,
15			meanExpandableChildren: !0,
16			meanExpand: "+",
17			meanContract: "-",
18			meanRemoveAttrs: !1,
19			onePage: !1,
20			meanDisplay: "block",
21			removeElements: ""
22		};
23		c = a.extend(d, c);
24		var b = window.innerWidth || document.documentElement.clientWidth;
25		return this.each(function() {
26			var O = c.meanMenuTarget,
27				Y = c.meanMenuContainer,
28				V = c.meanMenuClose,
29				I = c.meanMenuCloseSize,
30				X = c.meanMenuOpen,
31				Z = c.meanRevealPosition,
32				L = c.meanRevealPositionDistance,
33				K = c.meanRevealColour,
34				R = c.meanScreenWidth,
35				q = c.meanNavPush,
36				aa = ".meanmenu-reveal",
37				H = c.meanShowChildren,
38				B = c.meanExpandableChildren,
39				ae = c.meanExpand,
40				J = c.meanContract,
41				U = c.meanRemoveAttrs,
42				F = c.onePage,
43				G = c.meanDisplay,
44				S = c.removeElements,
45				z = !1;
46			(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) || navigator
47				.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i) || navigator.userAgent
48				.match(/Blackberry/i) || navigator.userAgent.match(/Windows Phone/i)) && (z = !0), (
49				navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i)) && jQuery(
50				"html").css("overflow-y", "scroll");
51			var ab = "",
52				ad = function() {
53					if ("center" === Z) {
54						var f = window.innerWidth || document.documentElement.clientWidth,
55							g = f / 2 - 22 + "px";
56						ab = "left:" + g + ";right:auto;", z ? jQuery(".meanmenu-reveal").animate({
57							left: g
58						}) : jQuery(".meanmenu-reveal").css("left", g)
59					}
60				},
61				e = !1,
62				D = !1;
63			"right" === Z && (ab = "right:" + L + ";left:auto;"), "left" === Z && (ab = "left:" + L +
64				";right:auto;"), ad();
65			var N = "",
66				T = function() {
67					N.html(jQuery(N).is(".meanmenu-reveal.meanclose") ? V : X)
68				},
69				ac = function() {
70					jQuery(".mean-bar,.mean-push").remove(), jQuery(Y).removeClass("mean-container"),
71						jQuery(O).css("display", G), e = !1, D = !1, jQuery(S).removeClass("mean-remove")
72				},
73				k = function() {
74					var f = "background:" + K + ";color:" + K + ";" + ab;
75					if (R >= b) {
76						jQuery(S).addClass("mean-remove"), D = !0, jQuery(Y).addClass("mean-container"),
77							jQuery(".mean-container").prepend(
78								'<div class="mean-bar"><a href="#nav" class="meanmenu-reveal" style="' + f +
79								'">Show Navigation</a><nav class="mean-nav"></nav></div>');
80						var g = jQuery(O).html();
81						jQuery(".mean-nav").html(g), U && jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(
82								function() {
83									jQuery(this).is(".mean-remove") ? jQuery(this).attr("class",
84											"mean-remove") : jQuery(this).removeAttr("class"), jQuery(this)
85										.removeAttr("id")
86								}), jQuery(O).before('<div class="mean-push" />'), jQuery(".mean-push").css(
87								"margin-top", q), jQuery(O).hide(), jQuery(".meanmenu-reveal").show(),
88							jQuery(aa).html(X), N = jQuery(aa), jQuery(".mean-nav ul").hide(), H ? B ? (
89								jQuery(".mean-nav ul ul").each(function() {
90									jQuery(this).children().length && jQuery(this, "li:first").parent()
91										.append('<a class="mean-expand" href="#" style="font-size: ' +
92											I + '">' + ae + "</a>")
93								}), jQuery(".mean-expand").on("click", function(h) {
94									h.preventDefault(), jQuery(this).hasClass("mean-clicked") ? (jQuery(
95											this).text(ae), jQuery(this).prev("ul").slideUp(300,
96											function() {})) : (jQuery(this).text(J), jQuery(this).prev(
97											"ul").slideDown(300, function() {})), jQuery(this)
98										.toggleClass("mean-clicked")
99								})) : jQuery(".mean-nav ul ul").show() : jQuery(".mean-nav ul ul").hide(),
100							jQuery(".mean-nav ul li").last().addClass("mean-last"), N.removeClass(
101								"meanclose"), jQuery(N).click(function(h) {
102								h.preventDefault(), e === !1 ? (N.css("text-align", "center"), N.css(
103									"text-indent", "0"), N.css("font-size", I), jQuery(
104									".mean-nav ul:first").slideDown(), e = !0) : (jQuery(
105									".mean-nav ul:first").slideUp(), e = !1), N.toggleClass(
106									"meanclose"), T(), jQuery(S).addClass("mean-remove")
107							}), F && jQuery(".mean-nav ul > li > a:first-child").on("click", function() {
108								jQuery(".mean-nav ul:first").slideUp(), e = !1, jQuery(N).toggleClass(
109									"meanclose").html(X)
110							})
111					} else {
112						ac()
113					}
114				};
115			z || jQuery(window).resize(function() {
116				b = window.innerWidth || document.documentElement.clientWidth, b > R, ac(), R >= b ?
117					(k(), ad()) : ac()
118			}), jQuery(window).resize(function() {
119				b = window.innerWidth || document.documentElement.clientWidth, z ? (ad(), R >= b ?
120					D === !1 && k() : ac()) : (ac(), R >= b && (k(), ad()))
121			}), k()
122		})
123	}
124}(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.