Test Paragraph.
// prevent execution of jQuery if included more than once
if(typeof window.jQuery == "undefined") {
/*
* jQuery 1.1.3a - New Wave Javascript
*
* Copyright (c) 2007 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2007/05/22 14:37:46 $
* $Rev: 1938 $
*/
// Global undefined variable
window.undefined = window.undefined;
/**
* Create a new jQuery Object
*
* @constructor
* @private
* @name jQuery
* @param String|Function|Element|Array one two three two Hello Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. Paraparagraph Test Paragraph. <b>Some</b> new text. Test Paragraph. Some new text. Test Paragraph. Test Paragraph. Test Paragraph. Test Paragraph. I would like to say: I would like to say: Hello I would like to say: I would like to say: Hello I would like to say: I would like to say: Hello I would like to say: HelloI would like to say: I would like to say: HelloI would like to say: I would like to say: HelloI would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: I would like to say: Hello, how are you? ... Hello, how are you? , how are you? Hello, how are you? Hello How are you? Hello Hello Hello Again And Again Hello And Again
* @result 2
*
* @property
* @name length
* @type Number
* @cat Core
*/
/**
* Get the number of elements currently matched. This returns the same
* number as the 'length' property of the jQuery object.
*
* @example $("img").size();
* @before
* @result 2
*
* @name size
* @type Number
* @cat Core
*/
size: function() {
return this.length;
},
length: 0,
/**
* Access all matched DOM elements. This serves as a backwards-compatible
* way of accessing all matched elements (other than the jQuery object
* itself, which is, in fact, an array of elements).
*
* It is useful if you need to operate on the DOM elements themselves instead of using built-in jQuery functions.
*
* @example $("img").get();
* @before
* @result [
]
* @desc Selects all images in the document and returns the DOM Elements as an Array
*
* @name get
* @type Array
* @result
* @desc Selects all images in the document and returns the first one
*
* @name get
* @type Element
* @param Number num Access the element in the Nth position.
* @cat Core
*/
get: function( num ) {
return num == undefined ?
// Return a 'clean' array
jQuery.makeArray( this ) :
// Return just the object
this[num];
},
/**
* Set the jQuery object to an array of elements, while maintaining
* the stack.
*
* @example $("img").pushStack([ document.body ]);
* @result $("img").pushStack() == [ document.body ]
*
* @private
* @name pushStack
* @type jQuery
* @param Elements elems An array of elements
* @cat Core
*/
pushStack: function( a ) {
var ret = jQuery(a);
ret.prevObject = this;
return ret;
},
/**
* Set the jQuery object to an array of elements. This operation is
* completely destructive - be sure to use .pushStack() if you wish to maintain
* the jQuery stack.
*
* @example $("img").setArray([ document.body ]);
* @result $("img").setArray() == [ document.body ]
*
* @private
* @name setArray
* @type jQuery
* @param Elements elems An array of elements
* @cat Core
*/
setArray: function( a ) {
this.length = 0;
[].push.apply( this, a );
return this;
},
/**
* Execute a function within the context of every matched element.
* This means that every time the passed-in function is executed
* (which is once for every element matched) the 'this' keyword
* points to the specific DOM element.
*
* Additionally, the function, when executed, is passed a single
* argument representing the position of the element in the matched
* set (integer, zero-index).
*
* @example $("img").each(function(i){
* this.src = "test" + i + ".jpg";
* });
* @before
* @result
* @desc Iterates over two images and sets their src property
*
* @name each
* @type jQuery
* @param Function fn A function to execute
* @cat Core
*/
each: function( fn, args ) {
return jQuery.each( this, fn, args );
},
/**
* Searches every matched element for the object and returns
* the index of the element, if found, starting with zero.
* Returns -1 if the object wasn't found.
*
* @example $("*").index( $('#foobar')[0] )
* @before
* @result test.jpg
* @desc Returns the src attribute from the first image in the document.
*
* @name attr
* @type Object
* @param String name The name of the property to access.
* @cat DOM/Attributes
*/
/**
* Set a key/value object as properties to all matched elements.
*
* This serves as the best way to set a large number of properties
* on all matched elements.
*
* @example $("img").attr({ src: "test.jpg", alt: "Test Image" });
* @before
* @result
* @desc Sets src and alt attributes to all images.
*
* @name attr
* @type jQuery
* @param Map properties Key/value pairs to set as object properties.
* @cat DOM/Attributes
*/
/**
* Set a single property to a value, on all matched elements.
*
* Note that you can't set the name property of input elements in IE.
* Use $(html) or .append(html) or .html(html) to create elements
* on the fly including the name property.
*
* @example $("img").attr("src","test.jpg");
* @before
* @result
* @desc Sets src attribute to all images.
*
* @name attr
* @type jQuery
* @param String key The name of the property to set.
* @param Object value The value to set the property to.
* @cat DOM/Attributes
*/
/**
* Set a single property to a computed value, on all matched elements.
*
* Instead of supplying a string value as described
* [[DOM/Attributes#attr.28_key.2C_value_.29|above]],
* a function is provided that computes the value.
*
* @example $("img").attr("title", function() { return this.src });
* @before
* @result
* @desc Sets title attribute from src attribute.
*
* @example $("img").attr("title", function(index) { return this.title + (i + 1); });
* @before
* @result
* @desc Enumerate title attribute.
*
* @name attr
* @type jQuery
* @param String key The name of the property to set.
* @param Function value A function returning the value to set.
* Scope: Current element, argument: Index of current element
* @cat DOM/Attributes
*/
attr: function( key, value, type ) {
var obj = key;
// Look for the case where we're accessing a style value
if ( key.constructor == String )
if ( value == undefined )
return this.length && jQuery[ type || "attr" ]( this[0], key ) || undefined;
else {
obj = {};
obj[ key ] = value;
}
// Check to see if we're setting style values
return this.each(function(index){
// Set all the styles
for ( var prop in obj )
jQuery.attr(
type ? this.style : this,
prop, jQuery.prop(this, obj[prop], type, index, prop)
);
});
},
/**
* Access a style property on the first matched element.
* This method makes it easy to retrieve a style property value
* from the first matched element.
*
* @example $("p").css("color");
* @before
add
,
* children
, clone
, filter
,
* find
, not
, next
,
* parent
, parents
, prev
and siblings
.
*
* @example $("p").find("span").end();
* @before
How are you?
* @result [How are you?
] * @desc Remove all elements that have a child ol element * * @name filter * @type jQuery * @param Function filter A function to use for filtering * @cat DOM/Traversing */ filter: function(t) { return this.pushStack( jQuery.isFunction( t ) && jQuery.grep(this, function(el, index){ return t.apply(el, [index]) }) || jQuery.multiFilter(t,this) ); }, /** * Removes the specified Element from the set of matched elements. This * method is used to remove a single Element from a jQuery object. * * @example $("p").not( $("#selected")[0] ) * @beforeHello
Hello Again
* @result [Hello
] * @desc Removes the element with the ID "selected" from the set of all paragraphs. * * @name not * @type jQuery * @param Element el An element to remove from the set * @cat DOM/Traversing */ /** * Removes elements matching the specified expression from the set * of matched elements. This method is used to remove one or more * elements from a jQuery object. * * @example $("p").not("#selected") * @beforeHello
Hello Again
* @result [Hello
] * @desc Removes the element with the ID "selected" from the set of all paragraphs. * * @name not * @type jQuery * @param String expr An expression with which to remove matching elements * @cat DOM/Traversing */ /** * Removes any elements inside the array of elements from the set * of matched elements. This method is used to remove one or more * elements from a jQuery object. * * Please note: the expression cannot use a reference to the * element name. See the two examples below. * * @example $("p").not( $("div p.selected") ) * @beforeHello
Hello Again
Hello
] * @desc Removes all elements that match "div p.selected" from the total set of all paragraphs. * * @name not * @type jQuery * @param jQuery elems A set of elements to remove from the jQuery set of matched elements. * @cat DOM/Traversing */ not: function(t) { return this.pushStack( t.constructor == String && jQuery.multiFilter(t, this, true) || jQuery.grep(this, function(a) { return ( t.constructor == Array || t.jquery ) ? jQuery.inArray( a, t ) < 0 : a != t; }) ); }, /** * Adds more elements, matched by the given expression, * to the set of matched elements. * * @example $("p").add("span") * @before (HTML)Hello
Hello Again * @result (jQuery object matching 2 elements) [Hello
, Hello Again ] * @desc Compare the above result to the result of$('p')
,
* which would just result in [ Hello
]
.
* Using add(), matched elements of $('span')
are simply
* added to the returned jQuery-object.
*
* @name add
* @type jQuery
* @param String expr An expression whose matched elements are added
* @cat DOM/Traversing
*/
/**
* Adds more elements, created on the fly, to the set of
* matched elements.
*
* @example $("p").add("Again")
* @before Hello
* @result [Hello
, Again ] * * @name add * @type jQuery * @param String html A string of HTML to create on the fly. * @cat DOM/Traversing */ /** * Adds one or more Elements to the set of matched elements. * * @example $("p").add( document.getElementById("a") ) * @beforeHello
Hello Again
* @result [Hello
, Hello Again ] * * @example $("p").add( document.forms[0].elements ) * @beforeHello
* @result [Hello
, , ] * * @name add * @type jQuery * @param Element|Array