Copy of jquery-1.2.3.min

Copy of jquery-1.2.3.min - jQuery 1.2.3 New Wave Javascript...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * jQuery 1.2.3 - New Wave Javascript * * Copyright (c) 2008 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $ * $Rev: 4663 $ */ (function(){if(window.jQuery)var _jQuery=window.jQuery;var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context);};if(window.$)var _$=window.$;window. $=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\ [\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context) {selector=selector||document;if(selector.nodeType) {this[0]=selector;this.length=1;return this;}else if(typeof selector=="string") {if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem)if(elem.id!=match[3])return jQuery().find(selector);else{this[0]=elem;this.length=1;return this;}else selector=[];}}else return new jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return new jQuery(document) [jQuery.fn.ready?"ready":"load"](selector);return [selector]);},jquery:"1.2.3",size:function(){return this.length;},length:0,get:function(num){return num==undefined? jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems) {this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=- 1;this.each(function(i){if(this==elem)ret=i;});return ret;},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value==undefined)return undefined;else{options={};options[name]=value;}return this.each(function(i) {for(name in options)jQuery.attr(type? this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:funct ion(key,value){if((key=='width'|| key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text! ="object"&&text!=null)return document).createTextNode(text));var ret="";jQuery.each(text||this,function() {jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType! =1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html) {if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map (function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function() {jQuery(this).contents().wrapAll(html);});},wrap:function(html){return
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/21/2012 for the course COMP comp 111 taught by Professor Xyz during the Winter '12 term at University of Phoenix.

Page1 / 14

Copy of jquery-1.2.3.min - jQuery 1.2.3 New Wave Javascript...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online