PageSourceSearch

https://www.pk-electronics.ru/js/effects.core.js

js pk-electronics.ru collected 2026-10-04 09:25:54 UTC 19,694 bytes, 509 lines download raw bytes

1/*
2 * jQuery UI Effects @VERSION
3 *
4 * Copyright (c) 2008 Aaron Eisenberger ([email protected])
5 * Dual licensed under the MIT (MIT-LICENSE.txt)
6 * and GPL (GPL-LICENSE.txt) licenses.
7 * 
8 * http://docs.jquery.com/UI/Effects/
9 */
10;(function($) {
11
12$.effects = $.effects || {}; //Add the 'effects' scope
13
14$.extend($.effects, {
15	save: function(el, set) {
16		for(var i=0;i<set.length;i++) {
17			if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]);
18		}
19	},
20	restore: function(el, set) {
21		for(var i=0;i<set.length;i++) {
22			if(set[i] !== null) el.css(set[i], $.data(el[0], "ec.storage."+set[i]));
23		}
24	},
25	setMode: function(el, mode) {
26		if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
27		return mode;
28	},
29	getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
30		// this should be a little more flexible in the future to handle a string & hash
31		var y, x;
32		switch (origin[0]) {
33			case 'top': y = 0; break;
34			case 'middle': y = 0.5; break;
35			case 'bottom': y = 1; break;
36			default: y = origin[0] / original.height;
37		};
38		switch (origin[1]) {
39			case 'left': x = 0; break;
40			case 'center': x = 0.5; break;
41			case 'right': x = 1; break;
42			default: x = origin[1] / original.width;
43		};
44		return {x: x, y: y};
45	},
46	createWrapper: function(el) {
47		if (el.parent().attr('id') == 'fxWrapper')
48			return el;
49		var props = {width: el.outerWidth({margin:true}), height: el.outerHeight({margin:true}), 'float': el.css('float')};
50		el.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
51		var wrapper = el.parent();
52		if (el.css('position') == 'static'){
53			wrapper.css({position: 'relative'});
54			el.css({position: 'relative'});
55		} else {
56			var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto';
57			var left = parseInt(el.css('left'), 10); if(isNaN(left)) left = 'auto';
58			wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show();
59			el.css({position: 'relative', top:0, left:0});
60		}
61		wrapper.css(props);
62		return wrapper;
63	},
64	removeWrapper: function(el) {
65		if (el.parent().attr('id') == 'fxWrapper')
66			return el.parent().replaceWith(el);
67		return el;
68	},
69	setTransition: function(el, list, factor, val) {
70		val = val || {};
71		$.each(list,function(i, x){
72			unit = el.cssUnit(x);
73			if (unit[0] > 0) val[x] = unit[0] * factor + unit[1];
74		});
75		return val;
76	},
77	animateClass: function(value, duration, easing, callback) {
78
79		var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
80		var ea = (typeof easing == "object" ? easing : null);
81
82		return this.each(function() {
83
84			var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
85			if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
86			if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
87
88			//Let's get a style offset
89			var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
90			if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
91			var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
92			if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
93
94			// The main function to form the object for animation
95			for(var n in newStyle) {
96				if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
97				&& n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
98				&& newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
99				&& (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
100				&& (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
101				) offset[n] = newStyle[n];
102			}
103
104			that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
105				// Change style attribute back to original. For stupid IE, we need to clear the damn object.
106				if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
107				if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
108				if(cb) cb.apply(this, arguments);
109			});
110
111		});
112	}
113});
114
115//Extend the methods of jQuery
116$.fn.extend({
117	//Save old methods
118	_show: $.fn.show,
119	_hide: $.fn.hide,
120	__toggle: $.fn.toggle,
121	_addClass: $.fn.addClass,
122	_removeClass: $.fn.removeClass,
123	_toggleClass: $.fn.toggleClass,
124	// New ec methods
125	effect: function(fx,o,speed,callback) {
126		return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null;
127	},
128	show: function() {
129		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
130			return this._show.apply(this, arguments);
131		else {
132			var o = arguments[1] || {}; o['mode'] = 'show';
133			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
134		}
135	},
136	hide: function() {
137		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
138			return this._hide.apply(this, arguments);
139		else {
140			var o = arguments[1] || {}; o['mode'] = 'hide';
141			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
142		}
143	},
144	toggle: function(){
145		if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function))
146			return this.__toggle.apply(this, arguments);
147		else {
148			var o = arguments[1] || {}; o['mode'] = 'toggle';
149			return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
150		}
151	},
152	addClass: function(classNames,speed,easing,callback) {
153		return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
154	},
155	removeClass: function(classNames,speed,easing,callback) {
156		return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
157	},
158	toggleClass: function(classNames,speed,easing,callback) {
159		return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames);
160	},
161	morph: function(remove,add,speed,easing,callback) {
162		return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
163	},
164	switchClass: function() {
165		return this.morph.apply(this, arguments);
166	},
167	// helper functions
168	cssUnit: function(key) {
169		var style = this.css(key), val = [];
170		$.each( ['em','px','%','pt'], function(i, unit){
171			if(style.indexOf(unit) > 0)
172				val = [parseFloat(style), unit];
173		});
174		return val;
175	}
176});
177
178/*
179 * jQuery Color Animations
180 * Copyright 2007 John Resig
181 * Released under the MIT and GPL licenses.
182 */
183
184// We override the animation for all of these color styles
185jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
186		jQuery.fx.step[attr] = function(fx){
187				if ( fx.state == 0 ) {
188						fx.start = getColor( fx.elem, attr );
189						fx.end = getRGB( fx.end );
190				}
191
192				fx.elem.style[attr] = "rgb(" + [
193						Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
194						Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
195						Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
196				].join(",") + ")";
197		}
198});
199
200// Color Conversion functions from highlightFade
201// By Blair Mitchelmore
202// http://jquery.offput.ca/highlightFade/
203
204// Parse strings looking for color tuples [255,255,255]
205function getRGB(color) {
206		var result;
207
208		// Check if we're already dealing with an array of colors
209		if ( color && color.constructor == Array && color.length == 3 )
210				return color;
211
212		// Look for rgb(num,num,num)
213		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
214				return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
215
216		// Look for rgb(num%,num%,num%)
217		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
218				return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
219
220		// Look for #a0b1c2
221		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
222				return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
223
224		// Look for #fff
225		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
226				return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
227
228		// Look for rgba(0, 0, 0, 0) == transparent in Safari 3
229		if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
230				return colors['transparent']
231
232		// Otherwise, we're most likely dealing with a named color
233		return colors[jQuery.trim(color).toLowerCase()];
234}
235
236function getColor(elem, attr) {
237		var color;
238
239		do {
240				color = jQuery.curCSS(elem, attr);
241
242				// Keep going until we find an element that has color, or we hit the body
243				if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
244						break;
245
246				attr = "backgroundColor";
247		} while ( elem = elem.parentNode );
248
249		return getRGB(color);
250};
251
252// Some named colors to work with
253// From Interface by Stefan Petre
254// http://interface.eyecon.ro/
255
256var colors = {
257	aqua:[0,255,255],
258	azure:[240,255,255],
259	beige:[245,245,220],
260	black:[0,0,0],
261	blue:[0,0,255],
262	brown:[165,42,42],
263	cyan:[0,255,255],
264	darkblue:[0,0,139],
265	darkcyan:[0,139,139],
266	darkgrey:[169,169,169],
267	darkgreen:[0,100,0],
268	darkkhaki:[189,183,107],
269	darkmagenta:[139,0,139],
270	darkolivegreen:[85,107,47],
271	darkorange:[255,140,0],
272	darkorchid:[153,50,204],
273	darkred:[139,0,0],
274	darksalmon:[233,150,122],
275	darkviolet:[148,0,211],
276	fuchsia:[255,0,255],
277	gold:[255,215,0],
278	green:[0,128,0],
279	indigo:[75,0,130],
280	khaki:[240,230,140],
281	lightblue:[173,216,230],
282	lightcyan:[224,255,255],
283	lightgreen:[144,238,144],
284	lightgrey:[211,211,211],
285	lightpink:[255,182,193],
286	lightyellow:[255,255,224],
287	lime:[0,255,0],
288	magenta:[255,0,255],
289	maroon:[128,0,0],
290	navy:[0,0,128],
291	olive:[128,128,0],
292	orange:[255,165,0],
293	pink:[255,192,203],
294	purple:[128,0,128],
295	violet:[128,0,128],
296	red:[255,0,0],
297	silver:[192,192,192],
298	white:[255,255,255],
299	yellow:[255,255,0],
vendor: 4,327 bytes, lines 300-417
300	transparent: [255,255,255]
301};
302	
303/*
304 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
305 *
306 * Uses the built in easing capabilities added In jQuery 1.1
307 * to offer multiple easing options
308 *
309 * TERMS OF USE - jQuery Easing
310 * 
311 * Open source under the BSD License. 
312 * 
313 * Copyright В© 2008 George McGinley Smith
314 * All rights reserved.
315 * 
316 * Redistribution and use in source and binary forms, with or without modification, 
317 * are permitted provided that the following conditions are met:
318 * 
319 * Redistributions of source code must retain the above copyright notice, this list of 
320 * conditions and the following disclaimer.
321 * Redistributions in binary form must reproduce the above copyright notice, this list 
322 * of conditions and the following disclaimer in the documentation and/or other materials 
323 * provided with the distribution.
324 * 
325 * Neither the name of the author nor the names of contributors may be used to endorse 
326 * or promote products derived from this software without specific prior written permission.
327 * 
328 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
329 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
330 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
331 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
332 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
333 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
334 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
335 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
336 * OF THE POSSIBILITY OF SUCH DAMAGE. 
337 *
338*/
339
340// t: current time, b: begInnIng value, c: change In value, d: duration
341jQuery.easing['jswing'] = jQuery.easing['swing'];
342
343jQuery.extend( jQuery.easing,
344{
345	def: 'easeOutQuad',
346	swing: function (x, t, b, c, d) {
347		//alert(jQuery.easing.default);
348		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
349	},
350	easeInQuad: function (x, t, b, c, d) {
351		return c*(t/=d)*t + b;
352	},
353	easeOutQuad: function (x, t, b, c, d) {
354		return -c *(t/=d)*(t-2) + b;
355	},
356	easeInOutQuad: function (x, t, b, c, d) {
357		if ((t/=d/2) < 1) return c/2*t*t + b;
358		return -c/2 * ((--t)*(t-2) - 1) + b;
359	},
360	easeInCubic: function (x, t, b, c, d) {
361		return c*(t/=d)*t*t + b;
362	},
363	easeOutCubic: function (x, t, b, c, d) {
364		return c*((t=t/d-1)*t*t + 1) + b;
365	},
366	easeInOutCubic: function (x, t, b, c, d) {
367		if ((t/=d/2) < 1) return c/2*t*t*t + b;
368		return c/2*((t-=2)*t*t + 2) + b;
369	},
370	easeInQuart: function (x, t, b, c, d) {
371		return c*(t/=d)*t*t*t + b;
372	},
373	easeOutQuart: function (x, t, b, c, d) {
374		return -c * ((t=t/d-1)*t*t*t - 1) + b;
375	},
376	easeInOutQuart: function (x, t, b, c, d) {
377		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
378		return -c/2 * ((t-=2)*t*t*t - 2) + b;
379	},
380	easeInQuint: function (x, t, b, c, d) {
381		return c*(t/=d)*t*t*t*t + b;
382	},
383	easeOutQuint: function (x, t, b, c, d) {
384		return c*((t=t/d-1)*t*t*t*t + 1) + b;
385	},
386	easeInOutQuint: function (x, t, b, c, d) {
387		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
388		return c/2*((t-=2)*t*t*t*t + 2) + b;
389	},
390	easeInSine: function (x, t, b, c, d) {
391		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
392	},
393	easeOutSine: function (x, t, b, c, d) {
394		return c * Math.sin(t/d * (Math.PI/2)) + b;
395	},
396	easeInOutSine: function (x, t, b, c, d) {
397		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
398	},
399	easeInExpo: function (x, t, b, c, d) {
400		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
401	},
402	easeOutExpo: function (x, t, b, c, d) {
403		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
404	},
405	easeInOutExpo: function (x, t, b, c, d) {
406		if (t==0) return b;
407		if (t==d) return b+c;
408		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
409		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
410	},
411	easeInCirc: function (x, t, b, c, d) {
412		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
413	},
414	easeOutCirc: function (x, t, b, c, d) {
415		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
416	},
417	easeInOutCirc: function (x, t, b, c, d) {
vendor: 4,023 bytes, lines 418-509
418		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
419		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
420	},
421	easeInElastic: function (x, t, b, c, d) {
422		var s=1.70158;var p=0;var a=c;
423		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
424		if (a < Math.abs(c)) { a=c; var s=p/4; }
425		else var s = p/(2*Math.PI) * Math.asin (c/a);
426		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
427	},
428	easeOutElastic: function (x, t, b, c, d) {
429		var s=1.70158;var p=0;var a=c;
430		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
431		if (a < Math.abs(c)) { a=c; var s=p/4; }
432		else var s = p/(2*Math.PI) * Math.asin (c/a);
433		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
434	},
435	easeInOutElastic: function (x, t, b, c, d) {
436		var s=1.70158;var p=0;var a=c;
437		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
438		if (a < Math.abs(c)) { a=c; var s=p/4; }
439		else var s = p/(2*Math.PI) * Math.asin (c/a);
440		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
441		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
442	},
443	easeInBack: function (x, t, b, c, d, s) {
444		if (s == undefined) s = 1.70158;
445		return c*(t/=d)*t*((s+1)*t - s) + b;
446	},
447	easeOutBack: function (x, t, b, c, d, s) {
448		if (s == undefined) s = 1.70158;
449		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
450	},
451	easeInOutBack: function (x, t, b, c, d, s) {
452		if (s == undefined) s = 1.70158; 
453		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
454		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
455	},
456	easeInBounce: function (x, t, b, c, d) {
457		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
458	},
459	easeOutBounce: function (x, t, b, c, d) {
460		if ((t/=d) < (1/2.75)) {
461			return c*(7.5625*t*t) + b;
462		} else if (t < (2/2.75)) {
463			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
464		} else if (t < (2.5/2.75)) {
465			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
466		} else {
467			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
468		}
469	},
470	easeInOutBounce: function (x, t, b, c, d) {
471		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
472		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
473	}
474});
475
476/*
477 *
478 * TERMS OF USE - EASING EQUATIONS
479 * 
480 * Open source under the BSD License. 
481 * 
482 * Copyright В© 2001 Robert Penner
483 * All rights reserved.
484 * 
485 * Redistribution and use in source and binary forms, with or without modification, 
486 * are permitted provided that the following conditions are met:
487 * 
488 * Redistributions of source code must retain the above copyright notice, this list of 
489 * conditions and the following disclaimer.
490 * Redistributions in binary form must reproduce the above copyright notice, this list 
491 * of conditions and the following disclaimer in the documentation and/or other materials 
492 * provided with the distribution.
493 * 
494 * Neither the name of the author nor the names of contributors may be used to endorse 
495 * or promote products derived from this software without specific prior written permission.
496 * 
497 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
498 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
499 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
500 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
501 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
502 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
503 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
504 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
505 * OF THE POSSIBILITY OF SUCH DAMAGE. 
506 *
507 */
508
509})(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.