From 76e4e16aeb1db6c6793df091759f9aa5ef70e41c Mon Sep 17 00:00:00 2001 From: hither2forlorn Date: Sun, 28 Feb 2010 13:19:20 +0000 Subject: updating the names of the directories to match that of the excel sheet. --- diff --git a/examples/2_Math_Adding_Numbers/assets/image/background.png b/examples/2_Math_Adding_Numbers/assets/image/background.png deleted file mode 100755 index 043a58a..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/background.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/bg_footer.png b/examples/2_Math_Adding_Numbers/assets/image/bg_footer.png deleted file mode 100755 index 4bd44fa..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/bg_footer.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/bg_header.png b/examples/2_Math_Adding_Numbers/assets/image/bg_header.png deleted file mode 100755 index f421817..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/bg_header.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_back.png b/examples/2_Math_Adding_Numbers/assets/image/btn_back.png deleted file mode 100755 index d9fbf14..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_back.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_back_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_back_hover.png deleted file mode 100755 index 0911fcc..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_back_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_help.png b/examples/2_Math_Adding_Numbers/assets/image/btn_help.png deleted file mode 100755 index 6753e9c..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_help.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_help_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_help_hover.png deleted file mode 100755 index d3ccd92..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_help_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_next.png b/examples/2_Math_Adding_Numbers/assets/image/btn_next.png deleted file mode 100755 index 9d70993..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_next.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_next_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_next_hover.png deleted file mode 100755 index 2cd4d37..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_next_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_ole.png b/examples/2_Math_Adding_Numbers/assets/image/btn_ole.png deleted file mode 100755 index 0e775e9..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_ole.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_ole_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_ole_hover.png deleted file mode 100755 index c43c5f7..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_ole_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again.png b/examples/2_Math_Adding_Numbers/assets/image/btn_play_again.png deleted file mode 100755 index 3594d18..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_hover.png deleted file mode 100755 index ebb8f8c..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_mouse_down.png b/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_mouse_down.png deleted file mode 100755 index 07d6e45..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_play_again_mouse_down.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_start.png b/examples/2_Math_Adding_Numbers/assets/image/btn_start.png deleted file mode 100755 index 32e5f20..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_start.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_start_hover.png b/examples/2_Math_Adding_Numbers/assets/image/btn_start_hover.png deleted file mode 100755 index 811ce78..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_start_hover.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/btn_start_mouse_down.png b/examples/2_Math_Adding_Numbers/assets/image/btn_start_mouse_down.png deleted file mode 100755 index 5acd43b..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/btn_start_mouse_down.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/imgAnka.png b/examples/2_Math_Adding_Numbers/assets/image/imgAnka.png deleted file mode 100755 index 7f81203..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/imgAnka.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/score_box.png b/examples/2_Math_Adding_Numbers/assets/image/score_box.png deleted file mode 100755 index ed47866..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/score_box.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/assets/image/scorebox.png b/examples/2_Math_Adding_Numbers/assets/image/scorebox.png deleted file mode 100755 index 7f424d7..0000000 --- a/examples/2_Math_Adding_Numbers/assets/image/scorebox.png +++ /dev/null Binary files differ diff --git a/examples/2_Math_Adding_Numbers/css/lesson.css b/examples/2_Math_Adding_Numbers/css/lesson.css deleted file mode 100755 index 50544f1..0000000 --- a/examples/2_Math_Adding_Numbers/css/lesson.css +++ /dev/null @@ -1,195 +0,0 @@ -@CHARSET "UTF-8"; -body{ - background-color: #CCC; - margin: 3px 0px 3px 5px; -} -a{ - color: gold; -} -a:hover{ - color: blue; -} - -#headerSection{ - margin-left:20px; - width: 950px; - height: 89px; - background : url(../assets/image/bg_header.png) repeat-x; -} - #imgHeaderLeft{ - margin-left:10px; - padding: 13px; - } - #linkBack{ - width: 60px; height: 59px; - background:url(../assets/image/btn_back.png); - } - #linkBack:hover{ - background:url(../assets/image/btn_back_hover.png); - } - - #imgHeaderRight{ - position:absolute; - top: 1px; left:80%; - padding: 13px; - } - .imgHeaderRt{ - margin: 0.2em; - } - #gameHelp{ - position: absolute; - top: 13px; left:90%; - width: 60px; height: 59px; - background:url(../assets/image/btn_help.png); - } - #gameHelp:hover{ - background:url(../assets/image/btn_help_hover.png); - } - #linkOle{ - width: 60px; height: 59px; - background:url(../assets/image/btn_ole.png); - } - #linkOle:hover{ - background:url(../assets/image/btn_ole_hover.png); - } - #linkNext{ - width: 60px; height: 59px; - background:url(../assets/image/btn_next.png); - } - #linkNext:hover{ - background:url(../assets/image/btn_next_hover.png); - } - - - #headerSection a{ - color:white; - } - - - -#gameSection{ - - width: 950px; - height: 370px; - -} - - #imgBackGround{ - margin-left: 20px; - width: 950px; - height: 370px; - } - - - #questArea{ - position: absolute; - top:20%; left: 35%; width: 200px; height: 80px; - font: 50px/70px Arial Black,Arial, Helvetica, sans-serif; font-weight: bold; - color: gold; - } - - - - #optionArea{ - position:absolute; - top: 56%; - left: 38%; - width: 59%; - height: 30%; - font: 50px/70px Arial Black,Arial, Helvetica, sans-serif; font-weight: bold; - color: gold; - text-align:center; - } - #option1{ - position:absolute; - top: 45%; - left: 3%; - width: 23%; - height:40%; - } - #option2{ - position:absolute; - top: 28%; - left: 28%; - width: 23%; - height:40%; - } - #option3{ - position:absolute; - top: 10%; - left: 50%; - width: 23%; - height:40%; - } - #option4{ - position:absolute; - top: 55%; - left: 52%; - width: 23%; - height:40%; - } - #option5{ - position:absolute; - top: 34%; - left: 76%; - width: 23%; - height:40%; - - } -#footerSection{ - margin-left:20px; - padding: 10px; - width: 930px; - height: 50px; - background : url(../assets/image/bg_footer.png) repeat-x; - font: 30px/40px Arial Black,Arial, Helvetica, sans-serif; font-weight: bold; - font-color: #CCC; -} - #scoreArea{ - position:absolute; - top: 88%; left: 5%; - width: 187px; height: 50px; - background:url(../assets/image/score_box.png) no-repeat; - } - #scoreBox{ - position: absolute; - width: 51px; height:35px; - top: 3%; left: 30%; - text-align:center; - } - #totalBox{ - position: absolute; - width: 51px; height:35px; - top: 22%; left: 68%; - text-align:center; - - } - #playControl{ - position: absolute; - left: 42%; - top: 87%; - width: 510px; - height:55px; - } - #linkStart{ - position: absolute; left: 5%; top: 5%; - width: 251px; height: 55px; - background:url(../assets/image/btn_start.png); - } - #linkStart:hover{ - background:url(../assets/image/btn_start_hover.png); - } - #linkStart:active{ - background:url(../assets/image/btn_start_mouse_down.png); - } - #linkPlayAgain{ - position: absolute; left: 55%; top: 5%; - width: 251px; height: 55px; - background:url(../assets/image/btn_play_again.png); - } - #linkPlayAgain:hover{ - background:url(../assets/image/btn_play_again_hover.png); - } - #linkPlayAgain:active{ - background:url(../assets/image/btn_play_again_mouse_down.png); - } diff --git a/examples/2_Math_Adding_Numbers/index.html b/examples/2_Math_Adding_Numbers/index.html deleted file mode 100755 index 1ead079..0000000 --- a/examples/2_Math_Adding_Numbers/index.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - Karma - Adding Numbers - - - - - - - - - -
-
-
-
- -
-
-
- -
- -
- -
- -
-    - + -    -
- -
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
- - diff --git a/examples/2_Math_Adding_Numbers/js/jquery-1.3.2.js b/examples/2_Math_Adding_Numbers/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/2_Math_Adding_Numbers/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - -
- - - -
-
-
- - - -
-
- - \ No newline at end of file diff --git a/examples/English_Alphabet_Puzzle_Solving/js/lesson.js b/examples/English_Alphabet_Puzzle_Solving/js/lesson.js deleted file mode 100755 index 2e2018a..0000000 --- a/examples/English_Alphabet_Puzzle_Solving/js/lesson.js +++ /dev/null @@ -1,218 +0,0 @@ -$(document).ready(function() { - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}]}); - - k.ready(function(){ - - //initialize the variables used and display initial value - var drag_no = 0; //store the current dragged no - var drop_no = 0; //store the current dropped on no - var imgrand = []; //stores the random variables generated - var imgPosition = []; //stores the position of the random variable - var drag_position = 0; //position of dragged object - var drop_position = 0; //position of dropped object - var flag, i ,j; - var moves_count = 0; - var imgPath; - - - var feedbackImage = $('#feedback_image'); - for(var i=0; i<16; i++){ - feedbackImage.append(""); - } - - - game("img1"); - - $('a#anchorImg1').click(function(){ - $("#"+imgPath+"").hide(); - $(".dragme").show(); - game("img1"); - - - }); - - $('a#anchorImg2').click(function(){ - $("#"+imgPath+"").hide(); - $(".dragme").show(); - game("img2"); - - }); - - $('a#anchorImg3').click(function(){ - $("#"+imgPath+"").hide(); - $(".dragme").show(); - game("img3"); - - }); - - function generate_random_no() { //generate random number - var rand_no = Math.ceil(16*Math.random()); - return rand_no; - } - - //update the Random variable number according to the position - //update number according to the position and the value - function update_Numbers_position(){ - imgrand[drag_position] = drop_no; - imgrand[drop_position] = drag_no; - } - - //Check the game over - function check_game_over(){ - var x = 0; - for(i=0;i<16;i++){ - if(imgrand[i] == i+1){ - x++; - } - } - if(x == 16){ //puzzle solved . Hurray - k.audio.correct.play(); - $(".dragme").hide(); - $("#"+imgPath+"").fadeIn(5000); - - - } - } - - function game(imgPuzzle){ //draws the necessary random numbers for the game - imgPath = imgPuzzle; - imgrand[0]=generate_random_no(); //1 number generated, 3 different numbers to be generated - for(i=1; i<16; i++){ - do{ - flag = 0; - imgrand[i] = generate_random_no(); - for(j=0; j - - - English_Animal Identification - - - - - - - - - - - - - - - - - - - - - - - -
-
- - -
Help text here
- -
-
-
What is this?
- -
- -
- -
- - - - -
- - -
-
-
- - \ No newline at end of file diff --git a/examples/English_Animal_Identification/js/lesson.js b/examples/English_Animal_Identification/js/lesson.js deleted file mode 100755 index bb8eac0..0000000 --- a/examples/English_Animal_Identification/js/lesson.js +++ /dev/null @@ -1,159 +0,0 @@ -$(document).ready( - function(){ - - - //preloads assets into karma 'collections' - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'} - ], - image: [{'name': 'bear', 'file': 'bear.png'}, - {name : 'goat', file: 'goat.png'}, - {name: 'tiger', file: 'tiger.png'}, - {name: 'elephant', file: 'elephant.png'}, - {name: 'horse', file: 'horse.png'}, - {name: 'cow', file: 'cow.png'} - ] - }); - - //this command will scale down the lesson if the user's browser window - //is smaller than 950px X 600px - k.scaleWindow(); - - //sets locale, otherwise defaults to English - $.i18n.setLocale('en'); - - //put your main lesson code here - k.ready( - function(){ - - - $('#kHeader').kHeader({'title': 'English Animal Identification', - lessonPlan: true, teachersNote: true}); - - //Set up feedback widget, this shows the user a correct or incorrect - //icon and sound when triggered programmatically - var $feedback = $('#feedback').feedback(); - - var kFooter = $('#kFooter').kFooter({'winningScore': 6}); - - var score = 0; - var names = []; - var namesUsed = []; - var correctIndex = 0; - var $img = $('#imgObject'); - var $options = $('.option'); - - - var populateListNames = function() { - var i = 0; - $.each(k.image, function (img){ - names[i] = img; - i++; - }); - }; - - - var checkSelection = function(selectedOption){ - if(selectedOption === correctIndex){ - - score++; - kFooter.kFooter('inc'); - kFooter.kFooter('incTotal'); - - if (score === 6){ - $feedback.feedback('win'); - } else{ - $feedback.feedback('correct'); - game(); - } - } - else { - $feedback.feedback('incorrect'); - kFooter.kFooter('incTotal'); - } - }; - - var shuffleGlobal = function (list) { - var i = 0, j = 0, t = 0; - for (i = list.length - 1; i > 0; i -= 1) { - j = Karma.rand(0, i); - t = list[i]; - list[i] = list[j]; - list[j] = t; - } - }; - - var game = function(){ - correctIndex = 0; - - var pickCorrect = function(){ - var correct = 0; - - var used = function(index){ - var name = names[index]; - for (var i = 0; i < namesUsed.length; i++){ - if (namesUsed[i] === name){ - return true; - } - } - return false; - }; - - var getUnusedName = function(){ - correct = k.rand(0,3); - while(used(correct)){ - shuffleGlobal(names); - correct = k.rand(0,3); - } - return correct; - }; - - shuffleGlobal(names); - correct = getUnusedName(); - namesUsed.push(names[correct]); - - return correct; - }; - - correctIndex = pickCorrect(); - - for (var i = 0; i < 4; i++){ - $($options[i]).text(k.image[names[i]].name); - } - - $img.attr('src', k.image[names[correctIndex]].src) - .css('visibility', 'visible'); - - }; - - - kFooter.bind('kFooterWinGame', - function(){ - $('.optImg').hide(); - $('.imageBox').hide(); - $('#gameOver').show(); - }); - kFooter.bind('kFooterRestart', - function() { - namesUsed = []; - correctIndex = 0; - score = 0; - game(); - } - ); - - $options.click( - function(e){ - checkSelection(parseInt(e.target.id.slice(-1))); - } - ); - - - populateListNames(); - game(); //let the game begin - - - }); //end of games - -}); \ No newline at end of file diff --git a/examples/English_Animal_Identification/js/lesson.js~ b/examples/English_Animal_Identification/js/lesson.js~ deleted file mode 100755 index 4d60c7d..0000000 --- a/examples/English_Animal_Identification/js/lesson.js~ +++ /dev/null @@ -1,191 +0,0 @@ -$(document).ready( - function(){ - - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'} - ]}); - - k.scaleWindow(); - $.i18n.setLocale('ne'); - - k.ready( - function(){ - - var flag, i ,j; - var object_counter = 1; - var imgNameRand = []; - var optPosition = []; - var optOtherPos = []; - var imageObject = []; - var imgNames = ["Bear", "Cow", "Elephant", "Horse", "Tiger", "Goat"]; - var correctPosition; - var selectedOption; - var score = 0; - var wrong_selected = 0; //wrong option selected so don't score up - var pos; - var t; - var current_image; - - var $help = $('#kHelpText').dialog({ - position:[ "right", "top"], modal:'true',autoOpen:false - }); - - var $feedback = $('#feedback').feedback(); - - $('#kHeaderHelpBtn').click(function(){ $help.dialog('open');}); - - - $('#kHeader').kHeader({'title': 'English Animal Identification', - lessonPlan: true, teachersNote: true}); - - var kFooter = $('#kFooter').kFooter({'winningScore': 6}); - kFooter.bind('kFooterWinGame', - function(){ - $('.optImg').hide(); - $('.imageBox').hide(); - $('#gameOver').show(); - }); - kFooter.bind('kFooterRestart', - function() { - object_counter = 1; - imgNameRand = []; - optPosition = []; - optOtherPos = []; - imageObject = []; - score = 0; - wrong_selected = 0; //wrong option selected so don't score up - - load_images(); - game(); - - } - ); - - load_images(); //load the image numbers for random display - game(); //let the game begin - - - function checkDisplay(){ //Displays the correct and incorrect info - if(wrong_selected == 1){ - $feedback.feedback('incorrect'); - } - else if (object_counter === 7 ){ - $feedback.feedback('win'); - } else{ - $feedback.feedback('correct'); - } - } - - $("#anchorPlayAgain").click(function(){ - $('#gameOver').hide(); - $('.optImg').show(); - $('.imageBox').show(); - load_images(); - score = 0; - object_counter = 1; - wrong_selected = 0; - //display_score(); - kFooter.kFooter('reset'); - game(); - - }); - $("#anchorOpt0").click(function(){ - selected_Option_Process('0'); - }); - $("#anchorOpt1").click(function(){ - selected_Option_Process('1'); - }); - $("#anchorOpt2").click(function(){ - selected_Option_Process('2'); - }); - $("#anchorOpt3").click(function(){ - selected_Option_Process('3'); - }); - - - function load_images(){ - imageObject = k.shuffle([1, 2, 3, 4, 5, 6]); - } - - function selected_Option_Process(selectedOption){ - - if(selectedOption == correctPosition){ - object_counter++; - wrong_selected = 0; - score++; - kFooter.kFooter('inc'); - kFooter.kFooter('incTotal'); - checkDisplay(); - game(); - } - else { - wrong_selected = 1; - kFooter.kFooter('incTotal'); - checkDisplay(); - } - - } - - function game(){ - - wrong_selected = 0; - current_image = object_counter%6; - document.getElementById("imgObject").src = "assets/image/" + - imageObject[current_image] + ".png"; - - //find correct answer and apply it to the position - var currentImage = imageObject[current_image]; - imgNameRand[0] = currentImage; - //generate choices - - for(i=1; i<4; i++){ - do{ - flag = 0; - imgNameRand[i] = k.rand(1, 6); - for(j=0; j - - - Lesson Plan for English Animal Identification - - - - - - - - - - - - - -
-
- -
- पाठविवरणर पाठयोजना सहज तरिकाले पढà¥à¤¨ तपाईले निमà¥à¤¨ कारà¥à¤¯ गरà¥à¤¨ सकà¥à¤¨à¥ हà¥à¤¨à¥à¤› । -

-

थिचà¥à¤¦à¤¾
- अकà¥à¤·à¤° आकार ठà¥à¤²à¥‹ बनाउन सकà¥à¤¨à¥à¤¹à¥à¤¨à¥à¤›à¥¤ -

-

-

थिचà¥à¤¦à¤¾
- अकà¥à¤·à¤° आकार सानो बनाउन सकà¥à¤¨à¥à¤¹à¥à¤¨à¥à¤›à¥¤ -

-

- पाठ पृषà¥à¤Ÿà¤•à¥‹ दाईने तरà¥à¤«à¤•à¥‹ ठाडो रेखा तल माथि गरà¥à¤¦à¤¾
- तपाईले हाल पढिरहेको पृषà¥à¤Ÿà¤²à¤¾à¤ˆ आवशà¥à¤¯à¤•à¤¤à¤¾ अनà¥à¤¸à¤¾à¤° तल माथि गरà¥à¤¨ सकà¥à¤¨à¥à¤¹à¥à¤¨à¥à¤› -
- - - - - \ No newline at end of file diff --git a/examples/English_Animal_Identification/lessonPlan.html b/examples/English_Animal_Identification/lessonPlan.html deleted file mode 100644 index cec9613..0000000 --- a/examples/English_Animal_Identification/lessonPlan.html +++ /dev/null @@ -1,709 +0,0 @@ - - - -Animal identification - - - -
-

Animal Identification (पाठविवरण)

-

क्रियाकलापको - शिर्षक : Animal - Identification

-

क्रियाकलापको - कोड :  II - E 14 (कक्षा , अङ्ग्रेजी )

-
-

शिक्षणको - हप्ता :  , अथवा

-

पाठ्यपुस्तको - सम्बन्धित - पाठ : My English Book II

-
-
-

सिकाइ - क्षेत्र : Speaking, - reading, 8, 10, 12, 16

-

सिकाइउपलब्धि :  १) ठिक उच्चारण, झोक्‍का उतार-चढाव मिलाई भाषाको प्रयोग

-

                        २) साधारण अङ्ग्रेजीमा जनावरका नामहरू भन्‍न

-

                        ३) हेरेर वस्तुहरूका प्रचलित नामहरूको पहिचान गर्न

-

                       ४) पाठ्यवस्तुबाट वस्तुहरूको खास नाम पत्ता लगाउन 

-

सिकाइउपलब्धिको - विस्तृतीकरण : चित्रपत्तीको अभ्यास, वर्णमालाका ठूला अक्षरहरूको संयोजन खेल

-
-
-

क्रियाकलापको - उद्देश्य : दिएका जनावरहरूलाई चिन्‍नु तीनको नाम बताउन सक्नु

-

क्रियाकलाप - चलाउने तरिका : स्क्रिनमा एउटा प्रश्‍न, जनावरको चित्र केही जनावरका नामहरू देखिन्छन् जनावरलाई हेर्नुहोस्, सही नाम छान्‍नुहोस् क्लिक गर्नुहोस् सही नाममा क्लिक गरेमा ठीकको चिन्ह उछ जनावरको नामको उच्चारण सुनिन्छ यदि गलत उत्तरमा क्लिक भयो भने गलतको चिन्ह उछ त्यसपछि, तपाईंले सही उत्तर छान्‍ने मौका पाउनुहुन्छ तर स्क्रिनको माथि बायाँपट्टीको स्कोरमा अङ्क भने जोडिदैन

-

स्व-मूल्याङ्कन : स्क्रिनको माथि बायाँपट्टीको कुनामा आफूले मिलाएको उत्तरको अङ्क (Score) देखिन्छ।

-
-
-

-पाटी - प्रयोगपूर्वको - क्रियाकलाप : -पाटीमा भएका Vocabulary - Domestic Animals Vocabulary Wild Animals गराउनुहोस्

-

-पाटी - प्रयोगपछिको - क्रियाकलाप : विद्यार्थीहरूलाई शैक्षिकभ्रमणका लागि नजिकको वस्तीमा लैजानुहोस् लेख्‍ने कामका लागि आफूसँग कापी सीसाकलम बोक्न लगाउनुहोस् विद्यार्थीहरू सबैलाई एकपटकमा एउटा घरमा लगेर त्यहाँ देखिने जनावरका नामहरू लेख्‍न भन्‍नुहोस् यदि अङ्ग्रेजीमा नाम थाहा नभएका जनावरहरू टिएमा तीनको नाम नेपालीमा लेख्‍न लगाउनुहोस् विद्यार्थीहरूलाई कक्षाकोठामा ल्याउनुहोस् कालोपाटीमा तिनीहरूले देखेका जनावरका नामहरूको सूची तयार पार्नुहोस् सूची तयार पार्दा अङ्ग्रेजीमा थाहा भएका जनावरका नामहरू अङ्ग्रेजीमा अङ्ग्रेजीमा थाहा नभएका नामहरूलाई नेपालीमा लेख्‍नुहोस् अङ्ग्रेजीमा नामहरूको सूची तयार भए पछी यदि नेपालीमा लेख्‍नुपर्ने नामहरू भएमा त्यसलाई पनि लेख्‍नुहोस् विद्यार्थीहरूलाई दोहोर्‍याउन भन्‍दै ती नामहरू लेख्‍दै उच्चारण गर्न लगाउनुहोस् गृहकार्यमा हरेक विद्यार्थीहरूलाई आफ्नो छिमेकमा नजिकको घरमा भएका जनावरहरूको नाम लेखेर ल्याउने काम दिनुहोस्

-

-पुस्तकालयसित - सम्बन्धित - क्रियाकलाप :

-

सामूहिक - क्रियाकलाप  :

-
-
-

गृहकार्य : सबै जनावरका नामहरू चिन्‍न ठीक तरिकाले भन्‍न नआउँदासम्म -पाटीको क्रियाकलापमा अभ्यास गरेर आउन लगाउनुहोस्

-

समान वा - सम्बन्धित - अन्य - क्रियाकलाप :

-

शिक्षणसम्बन्धि - थप सल्लाह :

-
-
-

उपयोगी - वेभसाइटहरू :

-
-
- - diff --git a/examples/English_Animal_Identification/start.html b/examples/English_Animal_Identification/start.html deleted file mode 100755 index 3ee8538..0000000 --- a/examples/English_Animal_Identification/start.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - Start Page for English Animal Identification - - - - - - - - - -
- -
-
-
-
-
साà¤à¤¾ शिकà¥à¤·à¤¾ ई-पाटीदà¥à¤µà¤¾à¤°à¤¾ निरà¥à¤®à¤¿à¤¤
-
ई-पाठ
-
-
- -
- -
- ककà¥à¤·à¤¾:२ -
-
अà¤à¤—à¥à¤°à¥‡à¤œà¥€
- -
- This is a lesson for identifying animals -
- - -
-
- - -
- - - \ No newline at end of file diff --git a/examples/English_Animal_Identification/teachersNote.html b/examples/English_Animal_Identification/teachersNote.html deleted file mode 100755 index 440129f..0000000 --- a/examples/English_Animal_Identification/teachersNote.html +++ /dev/null @@ -1 +0,0 @@ -foobar! \ No newline at end of file diff --git a/examples/English_Color_Identification/assets/audio/correct.ogg b/examples/English_Color_Identification/assets/audio/correct.ogg deleted file mode 100755 index a0d9e3a..0000000 --- a/examples/English_Color_Identification/assets/audio/correct.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/audio/incorrect.ogg b/examples/English_Color_Identification/assets/audio/incorrect.ogg deleted file mode 100755 index 4805e55..0000000 --- a/examples/English_Color_Identification/assets/audio/incorrect.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/1.png b/examples/English_Color_Identification/assets/image/1.png deleted file mode 100755 index 5c2a9a3..0000000 --- a/examples/English_Color_Identification/assets/image/1.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/2.png b/examples/English_Color_Identification/assets/image/2.png deleted file mode 100755 index 50b4bd1..0000000 --- a/examples/English_Color_Identification/assets/image/2.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/3.png b/examples/English_Color_Identification/assets/image/3.png deleted file mode 100755 index 12cc585..0000000 --- a/examples/English_Color_Identification/assets/image/3.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/4.png b/examples/English_Color_Identification/assets/image/4.png deleted file mode 100755 index becb133..0000000 --- a/examples/English_Color_Identification/assets/image/4.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/5.png b/examples/English_Color_Identification/assets/image/5.png deleted file mode 100755 index 7a81f85..0000000 --- a/examples/English_Color_Identification/assets/image/5.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/6.png b/examples/English_Color_Identification/assets/image/6.png deleted file mode 100755 index 433fc60..0000000 --- a/examples/English_Color_Identification/assets/image/6.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/7.png b/examples/English_Color_Identification/assets/image/7.png deleted file mode 100755 index 76f7c4c..0000000 --- a/examples/English_Color_Identification/assets/image/7.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/8.png b/examples/English_Color_Identification/assets/image/8.png deleted file mode 100755 index 144f674..0000000 --- a/examples/English_Color_Identification/assets/image/8.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/Thumbs.db b/examples/English_Color_Identification/assets/image/Thumbs.db deleted file mode 100755 index de2c1e6..0000000 --- a/examples/English_Color_Identification/assets/image/Thumbs.db +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/background.jpg b/examples/English_Color_Identification/assets/image/background.jpg deleted file mode 100755 index cedaf11..0000000 --- a/examples/English_Color_Identification/assets/image/background.jpg +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/correct.png b/examples/English_Color_Identification/assets/image/correct.png deleted file mode 100755 index d6e54a8..0000000 --- a/examples/English_Color_Identification/assets/image/correct.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/1.png b/examples/English_Color_Identification/assets/image/image_name/1.png deleted file mode 100755 index 8f516a1..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/1.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/2.png b/examples/English_Color_Identification/assets/image/image_name/2.png deleted file mode 100755 index e9aa48e..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/2.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/3.png b/examples/English_Color_Identification/assets/image/image_name/3.png deleted file mode 100755 index 45ac0f6..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/3.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/4.png b/examples/English_Color_Identification/assets/image/image_name/4.png deleted file mode 100755 index 7156cef..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/4.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/5.png b/examples/English_Color_Identification/assets/image/image_name/5.png deleted file mode 100755 index 05fd757..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/5.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/6.png b/examples/English_Color_Identification/assets/image/image_name/6.png deleted file mode 100755 index 76946a0..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/6.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/7.png b/examples/English_Color_Identification/assets/image/image_name/7.png deleted file mode 100755 index 052ee62..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/7.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/8.png b/examples/English_Color_Identification/assets/image/image_name/8.png deleted file mode 100755 index db62889..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/8.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/image_name/9.png b/examples/English_Color_Identification/assets/image/image_name/9.png deleted file mode 100755 index 5ac1c08..0000000 --- a/examples/English_Color_Identification/assets/image/image_name/9.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/incorrect.png b/examples/English_Color_Identification/assets/image/incorrect.png deleted file mode 100755 index 789db87..0000000 --- a/examples/English_Color_Identification/assets/image/incorrect.png +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/assets/image/play_again.jpg b/examples/English_Color_Identification/assets/image/play_again.jpg deleted file mode 100755 index db3ae56..0000000 --- a/examples/English_Color_Identification/assets/image/play_again.jpg +++ /dev/null Binary files differ diff --git a/examples/English_Color_Identification/css/lesson.css b/examples/English_Color_Identification/css/lesson.css deleted file mode 100755 index 63e0b39..0000000 --- a/examples/English_Color_Identification/css/lesson.css +++ /dev/null @@ -1,84 +0,0 @@ -@CHARSET "UTF-8"; -body { - background: url(../assets/image/background.jpg) no-repeat; -} - - -#gameArea{ - margin-top: 10px auto; - margin-left: 10%; - float: left; - width: 500px; - padding:10px; -} - - - -.imageBox{ - - margin-top: 0px; - margin-left: 350px; - width: 220px; - height: 220px; - padding: 10px; -} - -.checkedOption{ - position: absolute; - top: 40%; - left: 70%; - width:120px; - height:120px; - padding: 5px; -} - -#options{ - margin-left:25px; - margin-top:50px; - width:650px; - height:80px; - padding: 10px; -} - -.optImg{ - width:120px; - height: 40px; - background-color: yellow; - padding:5px; - border: 2px solid green; - margin: 0.5em; -} - -#scoreArea{ - margin-left:5%; - color: red; - width: 45px; - padding: 5px; - background: #FFFFFF; - border: 2px solid red; - background: black; - padding: 10px; -} - -.playAgain{ - position:absolute; - top: 10px; - margin-left: 100px; - width:115px; - height: 30px; - padding: 2px; - } -input{ - color:green; - -} -#gameOver{ - margin-left:300px; - width: 180px; - height: 20px; - display:none; - font: 25px "Rockwell Extra Bold", Geneva, Arial, Helvetica, sans-serif,Times New Roman; - font-weight: bold; - background-color: #ccc; - padding: 10px; -} diff --git a/examples/English_Color_Identification/index.html b/examples/English_Color_Identification/index.html deleted file mode 100755 index 7f7deeb..0000000 --- a/examples/English_Color_Identification/index.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - English_Animal Identification - - - - - - - - - - -
-
- Score: - Total: -
-
- - -
- - - -
- - - - -
- -
- Game Over -
-
- - \ No newline at end of file diff --git a/examples/English_Color_Identification/js/lesson.js b/examples/English_Color_Identification/js/lesson.js deleted file mode 100755 index b3333fc..0000000 --- a/examples/English_Color_Identification/js/lesson.js +++ /dev/null @@ -1,197 +0,0 @@ -$(document).ready( - function(){ - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'} - ]}); - - k.ready(function(){ - var flag, i ,j; - var object_counter = 1; - var imgNameRand = []; - var optPosition = []; - var optOtherPos = []; - var imageObject = []; - var correctPosition; - var selectedOption; - var score = 0; - var wrong_selected = 0; //wrong option selected so don't score up - var pos; - var t; - var current_image; - - - load_images(); //load the image numbers for random display - display_score(); - game(); //let the game begin - - - function display_score(){ - document.scoreDisplay.score.value = score; - if(object_counter > 8) - document.scoreDisplay.total.value = 8; - else - document.scoreDisplay.total.value = object_counter; - } - - function checkDisplay(){ //Displays the correct and incorrect info - if(wrong_selected == 1){ - $('.checkedOption').show(); - document.getElementById("check").src = "assets/image/incorrect.png"; - $('.checkedOption').fadeOut(1000); - } - else{ - $('.checkedOption').hide(); - document.getElementById("check").src = "assets/image/correct.png"; - $('.checkedOption').fadeOut(2000); - //needs timer for holding on for abt a sec - } - } - - $("#anchorPlayAgain").click(function(){ - $('#gameOver').hide(); - $('.optImg').show(); - $('.imageBox').show(); - load_images(); - score = 0; - object_counter = 1; - wrong_selected = 0; - display_score(); - - game(); - - }); - $("#anchorOpt0").click(function(){ - selected_Option_Process('0'); - }); - $("#anchorOpt1").click(function(){ - selected_Option_Process('1'); - }); - $("#anchorOpt2").click(function(){ - selected_Option_Process('2'); - }); - $("#anchorOpt3").click(function(){ - selected_Option_Process('3'); - }); - - function generate_random_no(no_limit) { //generate random number - var rand_no = Math.ceil(no_limit*Math.random()); - return rand_no; - } - - function get_random_position(){ //generate random number between 0-3 - var rand_pos = Math.floor(Math.random()*4); - return rand_pos; - } - - function load_images(){ - - imageObject[0] = generate_random_no("8"); - for(i=1; i<8; i++){ - do{ - flag = 0; - imageObject[i] = generate_random_no("8"); - for(j=0; j 8){ - - $('.optImg').hide(); - $('.imageBox').hide(); - $('#gameOver').show(); - - - } - - //else - //no change - } -}); //end of game - -}); //end of DOM \ No newline at end of file diff --git a/examples/English_Direction_of_Arrows/assets/audio/correct.ogg b/examples/English_Direction_of_Arrows/assets/audio/correct.ogg deleted file mode 100755 index a0d9e3a..0000000 --- a/examples/English_Direction_of_Arrows/assets/audio/correct.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/audio/incorrect.ogg b/examples/English_Direction_of_Arrows/assets/audio/incorrect.ogg deleted file mode 100755 index 4805e55..0000000 --- a/examples/English_Direction_of_Arrows/assets/audio/incorrect.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/1.png b/examples/English_Direction_of_Arrows/assets/image/1.png deleted file mode 100755 index 8610680..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/1.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/2.png b/examples/English_Direction_of_Arrows/assets/image/2.png deleted file mode 100755 index eadbc19..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/2.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/3.png b/examples/English_Direction_of_Arrows/assets/image/3.png deleted file mode 100755 index c8cd20b..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/3.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/4.png b/examples/English_Direction_of_Arrows/assets/image/4.png deleted file mode 100755 index d02c23f..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/4.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/5.png b/examples/English_Direction_of_Arrows/assets/image/5.png deleted file mode 100755 index 4a79bd3..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/5.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/6.png b/examples/English_Direction_of_Arrows/assets/image/6.png deleted file mode 100755 index 2b5a263..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/6.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/7.png b/examples/English_Direction_of_Arrows/assets/image/7.png deleted file mode 100755 index efb88f2..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/7.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/8.png b/examples/English_Direction_of_Arrows/assets/image/8.png deleted file mode 100755 index ad64eb2..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/8.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/background.jpg b/examples/English_Direction_of_Arrows/assets/image/background.jpg deleted file mode 100755 index 2dd9a67..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/background.jpg +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/correct.png b/examples/English_Direction_of_Arrows/assets/image/correct.png deleted file mode 100755 index d6e54a8..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/correct.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/incorrect.png b/examples/English_Direction_of_Arrows/assets/image/incorrect.png deleted file mode 100755 index 789db87..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/incorrect.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/optionBox.png b/examples/English_Direction_of_Arrows/assets/image/optionBox.png deleted file mode 100755 index 87d19a6..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/optionBox.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/play_again.jpg b/examples/English_Direction_of_Arrows/assets/image/play_again.jpg deleted file mode 100755 index db3ae56..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/play_again.jpg +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/assets/image/questionBox.png b/examples/English_Direction_of_Arrows/assets/image/questionBox.png deleted file mode 100755 index 57c7883..0000000 --- a/examples/English_Direction_of_Arrows/assets/image/questionBox.png +++ /dev/null Binary files differ diff --git a/examples/English_Direction_of_Arrows/css/lesson.css b/examples/English_Direction_of_Arrows/css/lesson.css deleted file mode 100755 index 82c0654..0000000 --- a/examples/English_Direction_of_Arrows/css/lesson.css +++ /dev/null @@ -1,88 +0,0 @@ -@CHARSET "UTF-8"; -body { - background: url(../assets/image/background.jpg) no-repeat; -} - - -#gameArea{ - margin-top: 10px auto; - margin-left: 5%; - float: left; - width: 800px; - padding:10px; -} - -#questionBox{ - width:174px; - height:176px; - margin-top: 100px; - margin-left: 20px; - background-image: url(../assets/image/questionBox.png); - -} -.imageBox{ - margin: 50px; - -} - -.checkedOption{ - position: absolute; - top: 60%; - left: 60%; - width:120px; - height:120px; - padding: 5px; - -} - -#options{ - width:564px; - height:176px; - background-image: url(../assets/image/optionBox.png); - position: absolute; - left:400px; - top: 115px; - -} - -.optImg{ - - margin: 35px 0px 5px 40px; - -} - -#scoreArea{ - position:absolute; - margin-left:5%; - top: 520px; - color: red; - width: 175px; - padding: 5px; - background: #FFFFFF; - border: 2px solid red; - background: black; - padding: 10px; -} - -.playAgain{ - position:absolute; - top: 520px; - left: 75%; - width:115px; - height: 30px; - padding: 2px; - } -input{ - color:green; - -} -#gameOver{ - margin-left:300px; - width: 180px; - height: 20px; - display: none; - font: 25px "Rockwell Extra Bold", Geneva, Arial, Helvetica, sans-serif,Times New Roman; - font-weight: bold; - background-color: #ccc; - padding: 10px; -} diff --git a/examples/English_Direction_of_Arrows/index.html b/examples/English_Direction_of_Arrows/index.html deleted file mode 100755 index a15b09a..0000000 --- a/examples/English_Direction_of_Arrows/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - English_Direction of Arrows - - - - - - - - - - - - - -
-
- - -
-
- - - - -
- -
-
- Score: - Total: -
-
- -
- Game Over -
-
- - \ No newline at end of file diff --git a/examples/English_Direction_of_Arrows/js/lesson.js b/examples/English_Direction_of_Arrows/js/lesson.js deleted file mode 100755 index df3dacc..0000000 --- a/examples/English_Direction_of_Arrows/js/lesson.js +++ /dev/null @@ -1,196 +0,0 @@ -$(document).ready(function(){ - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'} - ]}); - - k.ready(function(){ - - var flag, i ,j; - var object_counter = 1; - var imgNameRand = []; - var optPosition = []; - var optOtherPos = []; - var imageObject = []; - var correctPosition; - var selectedOption; - var score = 0; - var wrong_selected = 0; //wrong option selected so don't score up - var pos; - var t; - var current_image; - - - load_images(); //load the image numbers for random display - display_score(); - game(); //let the game begin - - - function display_score(){ - document.scoreDisplay.score.value = score; - if(object_counter > 8) - document.scoreDisplay.total.value = 8; - else - document.scoreDisplay.total.value = object_counter; - } - - function checkDisplay(){ //Displays the correct and incorrect info - if(wrong_selected == 1){ - $('.checkedOption').show(); - document.getElementById("check").src = "assets/image/incorrect.png"; - $('.checkedOption').fadeOut(1000); - } - else{ - $('.checkedOption').hide(); - document.getElementById("check").src = "assets/image/correct.png"; - $('.checkedOption').fadeOut(2000); - //needs timer for holding on for abt a sec - } - } - - $("#anchorPlayAgain").click(function(){ - $('#gameOver').hide(); - $('.optImg').show(); - $('.imageBox').show(); - load_images(); - score = 0; - object_counter = 1; - wrong_selected = 0; - display_score(); - - game(); - - }); - $("#anchorOpt0").click(function(){ - selected_Option_Process('0'); - }); - $("#anchorOpt1").click(function(){ - selected_Option_Process('1'); - }); - $("#anchorOpt2").click(function(){ - selected_Option_Process('2'); - }); - $("#anchorOpt3").click(function(){ - selected_Option_Process('3'); - }); - - function generate_random_no(no_limit) { //generate random number - var rand_no = Math.ceil(no_limit*Math.random()); - return rand_no; - } - - function get_random_position(){ //generate random number between 0-3 - var rand_pos = Math.floor(Math.random()*4); - return rand_pos; - } - - function load_images(){ - - imageObject[0] = generate_random_no("8"); - for(i=1; i<8; i++){ - do{ - flag = 0; - imageObject[i] = generate_random_no("8"); - for(j=0; j 8){ - - $('.optImg').hide(); - $('.imageBox').hide(); - $('#gameOver').show(); - - - } - - //else - //no change - } //end of game - }); -}); //end of DOM \ No newline at end of file diff --git a/examples/English_Matching_Words_and_Objects/assets/audio/correct.ogg b/examples/English_Matching_Words_and_Objects/assets/audio/correct.ogg deleted file mode 100755 index a0d9e3a..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/audio/correct.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/audio/incorrect.ogg b/examples/English_Matching_Words_and_Objects/assets/audio/incorrect.ogg deleted file mode 100755 index 4805e55..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/audio/incorrect.ogg +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/1.png b/examples/English_Matching_Words_and_Objects/assets/image/1.png deleted file mode 100755 index 7c78dd2..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/1.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/10.png b/examples/English_Matching_Words_and_Objects/assets/image/10.png deleted file mode 100755 index be2f64d..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/10.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/11.png b/examples/English_Matching_Words_and_Objects/assets/image/11.png deleted file mode 100755 index 9aaaed0..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/11.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/12.png b/examples/English_Matching_Words_and_Objects/assets/image/12.png deleted file mode 100755 index c7b89fe..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/12.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/13.png b/examples/English_Matching_Words_and_Objects/assets/image/13.png deleted file mode 100755 index 6ff85d4..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/13.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/14.png b/examples/English_Matching_Words_and_Objects/assets/image/14.png deleted file mode 100755 index 0c0e2a9..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/14.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/15.png b/examples/English_Matching_Words_and_Objects/assets/image/15.png deleted file mode 100755 index 0d26e23..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/15.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/16.png b/examples/English_Matching_Words_and_Objects/assets/image/16.png deleted file mode 100755 index 5ef7bb3..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/16.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/17.png b/examples/English_Matching_Words_and_Objects/assets/image/17.png deleted file mode 100755 index 9d3729b..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/17.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/18.png b/examples/English_Matching_Words_and_Objects/assets/image/18.png deleted file mode 100755 index a3490c5..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/18.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/19.png b/examples/English_Matching_Words_and_Objects/assets/image/19.png deleted file mode 100755 index 9dab844..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/19.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/2.png b/examples/English_Matching_Words_and_Objects/assets/image/2.png deleted file mode 100755 index 71dbad9..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/2.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/20.png b/examples/English_Matching_Words_and_Objects/assets/image/20.png deleted file mode 100755 index 0400c3b..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/20.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/21.png b/examples/English_Matching_Words_and_Objects/assets/image/21.png deleted file mode 100755 index 0eda363..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/21.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/22.png b/examples/English_Matching_Words_and_Objects/assets/image/22.png deleted file mode 100755 index 68c80ab..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/22.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/23.png b/examples/English_Matching_Words_and_Objects/assets/image/23.png deleted file mode 100755 index 50940b1..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/23.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/24.png b/examples/English_Matching_Words_and_Objects/assets/image/24.png deleted file mode 100755 index 441f012..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/24.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/25.png b/examples/English_Matching_Words_and_Objects/assets/image/25.png deleted file mode 100755 index 4194534..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/25.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/26.png b/examples/English_Matching_Words_and_Objects/assets/image/26.png deleted file mode 100755 index bf2b657..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/26.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/27.png b/examples/English_Matching_Words_and_Objects/assets/image/27.png deleted file mode 100755 index cf8380e..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/27.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/28.png b/examples/English_Matching_Words_and_Objects/assets/image/28.png deleted file mode 100755 index 94ba36b..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/28.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/29.png b/examples/English_Matching_Words_and_Objects/assets/image/29.png deleted file mode 100755 index d4e1dfe..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/29.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/3.png b/examples/English_Matching_Words_and_Objects/assets/image/3.png deleted file mode 100755 index 5263bbf..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/3.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/30.png b/examples/English_Matching_Words_and_Objects/assets/image/30.png deleted file mode 100755 index 4daafaf..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/30.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/4.png b/examples/English_Matching_Words_and_Objects/assets/image/4.png deleted file mode 100755 index 4c32dfa..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/4.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/5.png b/examples/English_Matching_Words_and_Objects/assets/image/5.png deleted file mode 100755 index af1c580..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/5.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/6.png b/examples/English_Matching_Words_and_Objects/assets/image/6.png deleted file mode 100755 index 24fcd77..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/6.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/7.png b/examples/English_Matching_Words_and_Objects/assets/image/7.png deleted file mode 100755 index 80c300c..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/7.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/8.png b/examples/English_Matching_Words_and_Objects/assets/image/8.png deleted file mode 100755 index 8e4f39a..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/8.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/9.png b/examples/English_Matching_Words_and_Objects/assets/image/9.png deleted file mode 100755 index 8c971d0..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/9.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/default.png b/examples/English_Matching_Words_and_Objects/assets/image/default.png deleted file mode 100755 index 031f8bc..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/default.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/home.png b/examples/English_Matching_Words_and_Objects/assets/image/home.png deleted file mode 100755 index 1a7c5ba..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/home.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/info.png b/examples/English_Matching_Words_and_Objects/assets/image/info.png deleted file mode 100755 index 795c0cd..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/info.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/matched.png b/examples/English_Matching_Words_and_Objects/assets/image/matched.png deleted file mode 100755 index 46d995a..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/matched.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/pause.png b/examples/English_Matching_Words_and_Objects/assets/image/pause.png deleted file mode 100755 index 3db0573..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/pause.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/play.png b/examples/English_Matching_Words_and_Objects/assets/image/play.png deleted file mode 100755 index 76538a3..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/play.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/play_again.jpg b/examples/English_Matching_Words_and_Objects/assets/image/play_again.jpg deleted file mode 100755 index db3ae56..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/play_again.jpg +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/assets/image/repeat.png b/examples/English_Matching_Words_and_Objects/assets/image/repeat.png deleted file mode 100755 index 396335c..0000000 --- a/examples/English_Matching_Words_and_Objects/assets/image/repeat.png +++ /dev/null Binary files differ diff --git a/examples/English_Matching_Words_and_Objects/css/lesson.css b/examples/English_Matching_Words_and_Objects/css/lesson.css deleted file mode 100755 index bb40254..0000000 --- a/examples/English_Matching_Words_and_Objects/css/lesson.css +++ /dev/null @@ -1,124 +0,0 @@ -@CHARSET "ISO-8859-1"; -body { - background: #ccc; - } -h1{ -position: absolute; -float:right; -right: 5px; -top: 5px; -width: 300px; -height:25px; -font: 18px Arial Black; -color: purple; -border-bottom: 5px dotted red; -} -#gameArea{ - margin: 0px 0px 0px 50px; - width: 700px; -} - -.notMatched{ - width: 95px; - height: 95px; - padding: 0px; /*top right bottom left**/ - margin: 0.25em; -} - - -#sideBar{ -position: absolute; -float:right; -right: 50px; -top: 100px; -border: 2px solid red; -width: 210px; -height:70px; -background: yellow; -} - - -#timerBox1{ /* Show the timer running after the game has began.... */ -float:right; -width: 35px; -height: 35px; -border: 2px dotted green; -padding: 3px; -margin: 0.5em; -color: blue; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; - -} - -#timerBox2{ /* Show the timer running after the game has began.... */ -float:right; -width: 35px; -height: 35px; -border: 2px dotted green; -padding: 3px; -margin: 0.5em; -color: blue; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; -} - -#timerBox3{ /* Show the timer running after the game has began.... */ -float:right; -width: 35px; -height: 35px; -border: 2px dotted green; -padding: 3px; -margin: 0.5em; -color: blue; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; -} - -#clickDisplay{ -position: absolute; -float:right; -right: 25px; -top: 250px; -width: 300px; -height:80px; -font: 20px Rockwell Bold,Arial Black, Verdana, Georgia; -} -#textBox{ -float:right; -width: 150px; -height: 35px; -padding: 3px; -color: red; -font : bold 18px Verdana, Times New Roman; -} -#clickBox{ -float:right; -width: auto; -height: 35px; -border: 2px dotted green; -padding: 5px; -margin: 0.5em; -color: red; -font : bold 25px Arial Black, Times New Roman; -background: #ACC; -} - - -#playOptions{ -position: absolute; -float:right; -right: 25px; -top: 400px; -width: 250px; -height:80px; - -} -.imgButton{ -width: 64px; -height: 64px; -padding:2px; -margin: 0.1em; -} - - diff --git a/examples/English_Matching_Words_and_Objects/index.html b/examples/English_Matching_Words_and_Objects/index.html deleted file mode 100755 index a6c60a1..0000000 --- a/examples/English_Matching_Words_and_Objects/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - Math_Matching Words and Objects - - - - - - - - - - -
-

Matching Words and Objects

- -
- -
-

Click Counter:-
-
-
- - - -
-
- -
- - \ No newline at end of file diff --git a/examples/English_Matching_Words_and_Objects/js/lesson.js b/examples/English_Matching_Words_and_Objects/js/lesson.js deleted file mode 100755 index 2ec1018..0000000 --- a/examples/English_Matching_Words_and_Objects/js/lesson.js +++ /dev/null @@ -1,260 +0,0 @@ -$(document).ready(function() { -var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'} - ]}); - -k.ready(function(){ - - var i,j,flag; - var s=0; var m=0; var h=0; //varoiables for timer - var clickedObjects = []; //array storing the clicks of the two succesive clicks - var clickedObject = 0; //store the clicked image id - var matchedObjects = [];//store the matched images - var objrand = []; - var numClicked = 0; // If click on image it is incremnted by 1 - var numMatched = 0; //how many matched objects - var play =0; //not played yet pause - var restart = 0; //not restarted - var clickCounter = 0; - var gameArea = $('#gameArea'); - - - - function startTimer(){ - s=checkTime(s); - m=checkTime(m); - h=checkTime(h); - clickCounter = checkTime(clickCounter); - document.getElementById('clickBox').innerHTML=clickCounter; - document.getElementById('timerBox1').innerHTML=s; - document.getElementById('timerBox2').innerHTML=m; - document.getElementById('timerBox3').innerHTML=h; - - } - - var increaseTime = function(){ - if(play == 1){ - if(restart == 1){ - s = 0; - m = 0; - h = 0; - } - s++; - if(s>60){ - m++; - m=checkTime(m); - document.getElementById('timerBox2').innerHTML=m; - s = 0; - } - if(m>60){ - h++; - h=checkTime(h); - document.getElementById('timerBox3').innerHTML=h; - - m=0; - - } - s=checkTime(s); - - document.getElementById('timerBox1').innerHTML=s; - var t=setTimeout( - function(){ - increaseTime();},1000); - } - }; - - function checkTime(timePara){ - if (timePara<10 ) - { - timePara="0" + timePara; - } - return timePara; - }; - - - - - function generate_random_no() { //generate random number - var rand_no = Math.ceil(30*Math.random()); - return rand_no; - } - - function generate_random_objects_no(){ - objrand[0]=generate_random_no(); //1 number generated, 3 different numbers to be generated - for(i=1; i<30; i++){ - do{ - flag = 0; - objrand[i] = generate_random_no(); - for(j=0; j'); - $('#gameArea a:last-of-type').append(''); - - $('#gameArea a:last-of-type').click( - function(){ - store_clicked_object(square); - }); - }; - - generate_random_objects_no(); - - startTimer(); - - var square; - - for(i=0; i<30; i++){ - square = objrand[i]; - assignSquares(square); - } - - - $('a#anchorPlay').click(function(){ - play = 1; - increaseTime(); - }); - $('a#anchorPause').click(function(){ - play = 0; - increaseTime(); - }); - $('a#anchorRestart').click(function(){ - location.reload(true); - }); - - load_default_images(); - - - - }); -});//end of DOM diff --git a/examples/Math_Largest_Number_Identification/assets/audio/correct.ogg b/examples/Math_Largest_Number_Identification/assets/audio/correct.ogg deleted file mode 100755 index a0d9e3a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/audio/correct.ogg +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/audio/incorrect.ogg b/examples/Math_Largest_Number_Identification/assets/audio/incorrect.ogg deleted file mode 100755 index 4805e55..0000000 --- a/examples/Math_Largest_Number_Identification/assets/audio/incorrect.ogg +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/audio/trigger.ogg b/examples/Math_Largest_Number_Identification/assets/audio/trigger.ogg deleted file mode 100755 index f22512a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/audio/trigger.ogg +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/0.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/0.png deleted file mode 100755 index 3da86fc..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/0.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/1.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/1.png deleted file mode 100755 index 0a1eb04..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/1.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/10.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/10.png deleted file mode 100755 index c245212..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/10.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/11.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/11.png deleted file mode 100755 index 6c20471..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/11.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/12.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/12.png deleted file mode 100755 index a6034a9..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/12.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/13.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/13.png deleted file mode 100755 index 707c486..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/13.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/14.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/14.png deleted file mode 100755 index 5ab548a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/14.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/15.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/15.png deleted file mode 100755 index 970b97b..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/15.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/16.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/16.png deleted file mode 100755 index fd9034d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/16.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/17.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/17.png deleted file mode 100755 index a348448..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/17.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/18.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/18.png deleted file mode 100755 index 3507cd9..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/18.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/19.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/19.png deleted file mode 100755 index 5f3a97c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/19.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/2.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/2.png deleted file mode 100755 index c193aea..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/2.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/20.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/20.png deleted file mode 100755 index 31d85ec..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/20.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/21.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/21.png deleted file mode 100755 index aab5dd6..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/21.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/22.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/22.png deleted file mode 100755 index 087455a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/22.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/23.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/23.png deleted file mode 100755 index 1e60b08..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/23.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/24.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/24.png deleted file mode 100755 index ee6dd62..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/24.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/25.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/25.png deleted file mode 100755 index f98f1b8..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/25.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/26.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/26.png deleted file mode 100755 index 6284143..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/26.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/27.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/27.png deleted file mode 100755 index 08ceeff..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/27.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/28.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/28.png deleted file mode 100755 index 36a3240..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/28.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/29.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/29.png deleted file mode 100755 index 6b76a4c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/29.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/3.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/3.png deleted file mode 100755 index 72b37de..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/3.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/30.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/30.png deleted file mode 100755 index 860e274..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/30.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/31.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/31.png deleted file mode 100755 index 88f50c9..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/31.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/32.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/32.png deleted file mode 100755 index caa6d5f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/32.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/33.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/33.png deleted file mode 100755 index 8c9c5b8..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/33.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/34.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/34.png deleted file mode 100755 index 347b3dd..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/34.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/35.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/35.png deleted file mode 100755 index a109c98..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/35.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/36.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/36.png deleted file mode 100755 index 82bb15e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/36.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/37.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/37.png deleted file mode 100755 index 18294ab..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/37.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/38.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/38.png deleted file mode 100755 index a6d5a4a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/38.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/39.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/39.png deleted file mode 100755 index d6e5b23..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/39.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/4.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/4.png deleted file mode 100755 index 0def1cb..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/4.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/40.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/40.png deleted file mode 100755 index 62fc121..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/40.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/41.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/41.png deleted file mode 100755 index 6e44320..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/41.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/42.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/42.png deleted file mode 100755 index 0b57f13..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/42.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/43.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/43.png deleted file mode 100755 index 6b062f1..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/43.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/44.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/44.png deleted file mode 100755 index 239c462..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/44.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/45.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/45.png deleted file mode 100755 index 2134d3a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/45.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/46.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/46.png deleted file mode 100755 index b936c64..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/46.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/47.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/47.png deleted file mode 100755 index 92ee82f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/47.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/48.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/48.png deleted file mode 100755 index ceda92a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/48.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/49.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/49.png deleted file mode 100755 index c9aef3d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/49.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/5.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/5.png deleted file mode 100755 index 51cc2b0..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/5.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/50.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/50.png deleted file mode 100755 index df5fdbe..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/50.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/51.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/51.png deleted file mode 100755 index 14ef3c1..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/51.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/52.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/52.png deleted file mode 100755 index 8d10c98..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/52.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/53.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/53.png deleted file mode 100755 index d7f255d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/53.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/54.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/54.png deleted file mode 100755 index 736d39a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/54.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/55.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/55.png deleted file mode 100755 index 02a6dc4..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/55.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/56.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/56.png deleted file mode 100755 index 1436a0c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/56.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/57.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/57.png deleted file mode 100755 index a0ddf5c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/57.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/58.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/58.png deleted file mode 100755 index e37db21..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/58.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/59.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/59.png deleted file mode 100755 index 7a6c335..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/59.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/6.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/6.png deleted file mode 100755 index 96fb917..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/6.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/60.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/60.png deleted file mode 100755 index a4fe43e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/60.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/61.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/61.png deleted file mode 100755 index fb0a152..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/61.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/62.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/62.png deleted file mode 100755 index c526a88..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/62.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/63.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/63.png deleted file mode 100755 index 5d60f3e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/63.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/64.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/64.png deleted file mode 100755 index de89371..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/64.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/65.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/65.png deleted file mode 100755 index 058a1ac..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/65.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/66.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/66.png deleted file mode 100755 index 6934f94..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/66.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/67.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/67.png deleted file mode 100755 index 19fd631..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/67.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/68.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/68.png deleted file mode 100755 index fc9dfb2..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/68.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/69.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/69.png deleted file mode 100755 index 9610722..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/69.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/7.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/7.png deleted file mode 100755 index 537d30f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/7.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/70.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/70.png deleted file mode 100755 index a8f4e53..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/70.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/71.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/71.png deleted file mode 100755 index 0d82bf7..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/71.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/72.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/72.png deleted file mode 100755 index 1879387..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/72.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/73.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/73.png deleted file mode 100755 index 4e97b09..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/73.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/74.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/74.png deleted file mode 100755 index 4afe9b4..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/74.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/75.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/75.png deleted file mode 100755 index d23a4e2..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/75.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/76.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/76.png deleted file mode 100755 index 8177e86..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/76.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/77.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/77.png deleted file mode 100755 index 9a12739..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/77.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/78.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/78.png deleted file mode 100755 index b6b6b96..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/78.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/79.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/79.png deleted file mode 100755 index 49eb8c4..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/79.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/8.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/8.png deleted file mode 100755 index 92b8f07..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/8.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/80.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/80.png deleted file mode 100755 index e61cc25..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/80.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/81.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/81.png deleted file mode 100755 index ca42a6e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/81.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/82.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/82.png deleted file mode 100755 index d53ab7e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/82.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/83.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/83.png deleted file mode 100755 index ac82c71..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/83.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/84.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/84.png deleted file mode 100755 index 48a850c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/84.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/85.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/85.png deleted file mode 100755 index b6a1237..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/85.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/86.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/86.png deleted file mode 100755 index f504c7d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/86.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/87.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/87.png deleted file mode 100755 index 9f3ae68..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/87.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/88.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/88.png deleted file mode 100755 index 98928ff..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/88.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/89.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/89.png deleted file mode 100755 index ada779a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/89.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/9.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/9.png deleted file mode 100755 index 195f3a7..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/9.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/90.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/90.png deleted file mode 100755 index fcf127f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/90.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/91.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/91.png deleted file mode 100755 index 05b025c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/91.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/92.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/92.png deleted file mode 100755 index 9e6aee0..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/92.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/93.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/93.png deleted file mode 100755 index 57e68fe..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/93.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/94.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/94.png deleted file mode 100755 index 2169fab..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/94.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/95.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/95.png deleted file mode 100755 index 1ea65cd..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/95.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/96.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/96.png deleted file mode 100755 index 8042a2a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/96.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/97.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/97.png deleted file mode 100755 index 17350a9..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/97.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/98.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/98.png deleted file mode 100755 index 4c1423b..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/98.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/99.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/99.png deleted file mode 100755 index a950188..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/99.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/drag_images/main.png b/examples/Math_Largest_Number_Identification/assets/image/drag_images/main.png deleted file mode 100755 index dfd111f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/drag_images/main.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/Exit.png b/examples/Math_Largest_Number_Identification/assets/image/icons/Exit.png deleted file mode 100755 index 89df410..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/Exit.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/Info.png b/examples/Math_Largest_Number_Identification/assets/image/icons/Info.png deleted file mode 100755 index e5580f6..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/Info.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/help.png b/examples/Math_Largest_Number_Identification/assets/image/icons/help.png deleted file mode 100755 index d60425f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/help.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/refresh.png b/examples/Math_Largest_Number_Identification/assets/image/icons/refresh.png deleted file mode 100755 index 606ea9e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/refresh.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/volumeDisabled.png b/examples/Math_Largest_Number_Identification/assets/image/icons/volumeDisabled.png deleted file mode 100755 index 7f36157..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/volumeDisabled.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/icons/volumeEnabled.png b/examples/Math_Largest_Number_Identification/assets/image/icons/volumeEnabled.png deleted file mode 100755 index b1852ed..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/icons/volumeEnabled.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0.gif deleted file mode 100755 index 5df490b..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/09_9b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/09_9b.gif deleted file mode 100755 index 6ade287..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/09_9b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0a.gif deleted file mode 100755 index 2b80a93..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0b.gif deleted file mode 100755 index 5e97b45..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/0b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1.gif deleted file mode 100755 index 83707e1..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1a.gif deleted file mode 100755 index 45a8789..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1b.gif deleted file mode 100755 index ac1cf40..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/1b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2.gif deleted file mode 100755 index 01b5073..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2a.gif deleted file mode 100755 index 34ff9c5..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2b.gif deleted file mode 100755 index 3e05237..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/2b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3.gif deleted file mode 100755 index f51c794..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3a.gif deleted file mode 100755 index a124ddc..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3b.gif deleted file mode 100755 index 0d7ce72..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/3b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4.gif deleted file mode 100755 index 6dd7ff2..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4a.gif deleted file mode 100755 index 83982ee..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4b.gif deleted file mode 100755 index b590d5a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/4b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5.gif deleted file mode 100755 index a3598cb..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5a.gif deleted file mode 100755 index df91f6a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5b.gif deleted file mode 100755 index 532d010..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/5b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6.gif deleted file mode 100755 index 5170134..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6a.gif deleted file mode 100755 index e09642e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6b.gif deleted file mode 100755 index 8ab50db..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/6b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7.gif deleted file mode 100755 index f1baa0a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7a.gif deleted file mode 100755 index f22034d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7b.gif deleted file mode 100755 index e75a04a..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/7b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8.gif deleted file mode 100755 index 0d04cab..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8a.gif deleted file mode 100755 index 0dcee2e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8b.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8b.gif deleted file mode 100755 index ba4fac8..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/8b.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9.gif deleted file mode 100755 index d9b3d17..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9a.gif b/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9a.gif deleted file mode 100755 index 3fb910c..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/other_numbers/9a.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/0.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/0.gif deleted file mode 100755 index 10f4379..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/0.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/1.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/1.gif deleted file mode 100755 index ced78e1..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/1.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/2.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/2.gif deleted file mode 100755 index 0a27917..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/2.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/3.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/3.gif deleted file mode 100755 index 61c5cde..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/3.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/4.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/4.gif deleted file mode 100755 index c57b94d..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/4.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/5.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/5.gif deleted file mode 100755 index c239dc3..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/5.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/6.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/6.gif deleted file mode 100755 index 0bc0c6f..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/6.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/7.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/7.gif deleted file mode 100755 index d2a29c3..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/7.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/8.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/8.gif deleted file mode 100755 index 782bcde..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/8.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/score_images/9.gif b/examples/Math_Largest_Number_Identification/assets/image/score_images/9.gif deleted file mode 100755 index 6c3dc28..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/score_images/9.gif +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/scorebox.png b/examples/Math_Largest_Number_Identification/assets/image/scorebox.png deleted file mode 100755 index 424b60b..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/scorebox.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/assets/image/yellowBox.png b/examples/Math_Largest_Number_Identification/assets/image/yellowBox.png deleted file mode 100755 index 4ae710e..0000000 --- a/examples/Math_Largest_Number_Identification/assets/image/yellowBox.png +++ /dev/null Binary files differ diff --git a/examples/Math_Largest_Number_Identification/css/lesson.css b/examples/Math_Largest_Number_Identification/css/lesson.css deleted file mode 100755 index 3221ba4..0000000 --- a/examples/Math_Largest_Number_Identification/css/lesson.css +++ /dev/null @@ -1,269 +0,0 @@ -body { - font-family: sans-serif; - font-size: 95%; - margin: 1em 1.5em; - background: #affafc; - -} - - -#gamearea{ - border: 5px gold dashed; - width : 570px; - padding: 5px 5px 20px 5px; - -} -#content { -} -.template { - display: none;ffont: 15px "Verdana",Arial,Times New Roman;ont: 15px "Verdana",Arial,Times New Roman; -} -p, h2 { -} -h1 { - border-bottom: 3px solid #333; -} -h3{ - color: #FF0000; - font: 18px "Agency FB",Verdana,Arial,Times New Roman; -} -#toc { -} -#toc li { - padding: 0 0 0.5em 0; - font-size: 1em; -} -h2 { - border-top: 2px solid #FF00FF; - border-bottom: 2px solid #FF00FF; - padding: 0.25em 0; - margin: 0 0 1em 0; - color : red; - text-align : center; -} -.toclink { - padding-left: 1em; - font-size: 0.5em; -} -p.srclink { - border-top: 1px solid #666; - padding: 0.5em 0 0 0; - margin: 0 0 2em 0; -} -.dragme { - width: 89px; - height: 82px; - border: 1px solfont: 15px "Verdana",Arial,Times New Roman;id #666; - background: #acf; - margin: 1em; - padding: 0.5em; - cursor: move; -} -.drophere { - margin-top : 125px; - padding: 0.25em; - width: 20ex; - height: 20ex; - border: 5px solid #777; - background: #eee; - font : 15px "Arial Black", Arial, Helvetica, sans-serif; - color: #181; - /*margin: 0 0 0 15ex;*/ -} -.dragover { - background: #8f8; -} - -#drop_area{ - margin-left:190px; -} - -#helpBar{ /*Hfont: 15px "Verdana",Arial,Times New Roman;elp and Exit*/ - float : right; - top : 10px; - width: 170px; -} -#gameInfo{ /* pop ups the help for the game*/ - top: 70px; - display: none; - border : 2px solid green; - margin-left:9px; - margin-right: 38px; - font: 14px "Verdana",Arial,Times New Roman; - /*width : 555px;*/ - padding: 10px 20px 10px 20px; /*Top right bottom left*/ - background-color: #1090F2; - color: #620606; - text-align:left; - position:absolute; - text-justify:newspaper; - opacity: 0.8; /* For IE "value" for firefox fraction value 0-1*/ - cursor: help; -} - -.helpme{ - margin: 0.25em; - padding: 0.05em; - cursor: help; -} -.exitProgram{ - margin: 0.25em; - padding: 0.05em; -} - -.imgVolume{ - margin: 0.25em; - padding: 0.05em; -} - - -#sidebar { /* Score Area */ - float:right; - margin-right: 50px; - - width: 25ex; - height: 30ex; - - border: 5px solidfont: 15px "Verdana",Arial,Times New Roman; #F56; - background: #CFA; - font : 15px "Trebuchet MS", Arial, Helvetica, sans-serif; - border : 2px solid black; - padding : 2px; - -} - -#minussign{ - position:absolute; - display: none; - border: 10px solid red; - width: 15px; - margin-top: 40px; - -} - -.scoreBox{ - /*margin-top : 10px;*/ - /*border: 5px solid #000;*/ - /*background-image: url(../assets/image/scorebox.png);*/ - /*padding:0px 0px 134px 195px;*/ - width: 89px; - height: 82px; - border: 1px solid #123; - background: #aAf; - margin-left: 2.75em; - padding: 1em; -} - -#difficulty{ - padding: 20px 0 0 0; - font: 18px "Arial Rounded MT Bold",Arial, Helvetica,sans-serif; - color: #FF0000; -} -#diffulty .option{ - font: 15px; -} - -ul.draglist { - float: left; - list-style: none; - padding: 0; - margin: 0; -} -ul.draglist li { - margin: 0 0 10px 0; -} -ul.draglist li.dragme { - height: 32px; -} -ul.droplist { - list-style: none; - padding: 0; - margin: 0 0 0 15ex; -} -ul.droplist li { - margin: 0 0 10px 0; -} -ul.droplist li.drophere { - height: 32px; -} - -#feedback_image .drophere { - margin: 0 0 0 22ex; -} - - - -.events_monitor { - float: left; - margin: 0.25em; - padding: 0.25em; -} -.events_monitor dt { - font-family: monospace; - font-size: 1.2em; - font-weight: bold; - text-decoration: underline; -} -.events_monitor dd { - font-family: monospace; - margin: 0; padding: 0 0 1em 0; -} -.toys { - margin: 0.25em 0.25em 0.25em 310px; - padding: 0.25em; -} -.toys div.draggable { - float: left; - width: 64px; - height: 64px; - border: 1px solid #666; - background: #acf; - margin: 0.25em; - padding: 0.25em; - cursor: pointer; -} -.toys img { - float: left; - display: block; - margin: 0.25em; - padding: 0.25em; -} -.toys form { - display: block; - margin: 0.25em; - padding: 0.25em; -} - -.boxes { - margin: 0.25em 0.25em 0.25em 310px; - padding: 0.25em; -} -.boxes .droparea { - float: left; - width: 128px; - height: 96px; - border: 1px solid #666; - background: #eee; - margin: 0.25em; - padding: 0.25em; -} -.boxes #delegated { - clear: both; - list-style: none; - margin: 0; - padding: 0; -} -.boxes #delegated li { - float: left; - width: 128px; - height: 96px; - border: 1px solid #666; - background: #eee; - margin: 0.25em; - padding: 0.25em; -} - - -#volDisabled { - display: none; -} \ No newline at end of file diff --git a/examples/Math_Largest_Number_Identification/index.html b/examples/Math_Largest_Number_Identification/index.html deleted file mode 100755 index 1edf92d..0000000 --- a/examples/Math_Largest_Number_Identification/index.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - Largest Number Identification - - - - - - - - - - -
- - - - - - -
-
-
-

Title:

-

Largest Number Identification Game

-

Objective:

-

Identify the Largest number among the four numbers and drag and drop to the box.

-

Description:

-

- The game is basically intended for the students who have knowlege of the numbers from 1-100 - The game consists of the four boxes where random numbers between the 1-99 appears. - The students have to select the largest number among these numbers and drag it to the box - and drop there. After the drop has been completed, next set of numbers appears and the - same steps has to be followed.
- The score system is that you will be awarded 1 point for each correct answer. If the - wrong answer is choosen, 1 point is deducted. The game will be completed - after the player has scored 99. - -

-

Instructions:

-

- The game is self instructive. Just pick the right choice i.e. the greatest - number among four of the numbers and drag and drop to the box right below: -

-

Have a great time...

-
-
- - -
-

Largest Number Identification Game

-
-
- - - - -
-
-
-
-
Pick up the largest number among the four numbers above and drop it to the box below. -
-
-
- - \ No newline at end of file diff --git a/examples/Math_Largest_Number_Identification/info.txt b/examples/Math_Largest_Number_Identification/info.txt deleted file mode 100755 index c9414d6..0000000 --- a/examples/Math_Largest_Number_Identification/info.txt +++ /dev/null @@ -1,15 +0,0 @@ -Title: Largest Number Identification Game -Objective: Identify the Largest number among the four numbers and drag and drop to the box. -Description: The game is basically intended for the students who have knowlege of the numbers from 1-100 - The game consists of the four boxes where random numbers between the 1-99 appears. - The students have to select the largest number among these numbers and drag it to the box - and drop there. After the drop has been completed, next set of numbers appears and the - same steps has to be followed. - The score system is that you will be awarded 1 point for each correct answer. If the - wrong answer is choosen, 1 point is deducted. The game will be completed - after the player has scored 99. -Instructions: The game is self instructive. Just pick the right choice i.e. the greatest - number among four of the numbers and drag and drop to the box right below: - - - Have a great time... \ No newline at end of file diff --git a/examples/Math_Largest_Number_Identification/js/lesson.js b/examples/Math_Largest_Number_Identification/js/lesson.js deleted file mode 100755 index 769b7b4..0000000 --- a/examples/Math_Largest_Number_Identification/js/lesson.js +++ /dev/null @@ -1,194 +0,0 @@ -$(document).ready(function() { - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'}, - {'name':'trigger', 'file':'trigger.ogg'} - ]}); - - k.ready(function(){ - - - //initialize the variables used and display initial value - var selected_box = "not selected"; - var score_value = 0; - var greatest; - var imgrand=[]; - var flag, i ,j; - var volValue = 1; //value of volume 1 means volume on 0 means volume off - var score_sign = 1; //0 means the sign is negative and 1 means it is positive - - /* - document.display.selectedBox.value = selected_box; - document.display.droppedBox.value = "not dropped"; - document.display.score.value = score_value; - */ - document.getElementById("scoreDisplay").src = "assets/image/drag_images/"+score_value+".png"; - game(); - - $('a#anchorInfo').click(function(){ //Show the info of game - $('#gameInfo').toggle(5000); - }); - - $('a#exitNow').click(function(){ //Restart The Game - var confirmVal = confirm("Do you really want to restart the game."); - if(confirmVal == true) - location.reload(true); - }); - $('a#volControl').click(function(){ //Show the info of game - $('.imgVolume').toggle(); - if(volValue == 1) - volValue = 0; - else - volValue = 1; - if(volValue == 1){ - k.audio.trigger.play(); - alert("Volume On"); - - } - else{ - k.audio.trigger.play(); - alert("Volume is Off"); - } - }); - - - - function generate_random_no() { //generate random number - var rand_no = Math.ceil(99*Math.random()); - return rand_no; - } - - function sortNumber(a,b){ //find the greatest number - return a - b; - } - - - function getRadioCheckedValue(radio_name) { - var oRadio = document.diffLevel.elements[radio_name]; - for(var i = 0; i < oRadio.length; i++) { - if(oRadio[i].checked) { - return oRadio[i].value; - } - - } - - return ''; - } - - function displayNumbers(){ - for(i=0; i<4; i++){ - document.getElementById("imgdrag"+i+"").src = "assets/image/drag_images/"+imgrand[i]+".png"; - - } - } - - - function game(){ //draws the necessary random numbers for the game - - //var selected_radio = getRadioCheckedValue("levelBtn"); - //alert(selected_radio); - - //generate random numbers w/o repitition - imgrand[0]=generate_random_no(); //1 number generated, 3 different numbers to be generated - for(i=1; i<4; i++){ - do{ - flag = 0; - imgrand[i] = generate_random_no(); - for(j=0; j - - - Math_Money Identification - - - - - - - - - - -
-
- Score: - Total: -         |Identify Money | -
- - -
-
- - - - -
- - - - -
- -
- Game Over -
-
- - \ No newline at end of file diff --git a/examples/Math_Money_Identification/js/lesson.js b/examples/Math_Money_Identification/js/lesson.js deleted file mode 100755 index 9012805..0000000 --- a/examples/Math_Money_Identification/js/lesson.js +++ /dev/null @@ -1,197 +0,0 @@ -$(document).ready(function(){ - var k = Karma({ - audio: [{'name':'correct','file':'correct.ogg'}, - {'name':'incorrect','file':'incorrect.ogg'}, - {'name':'trigger', 'file':'trigger.ogg'} - ]}); - - k.ready(function(){ - - var flag, i ,j; - var object_counter = 1; - var imgNameRand = []; - var optPosition = []; - var optOtherPos = []; - var imageObject = []; - var correctPosition; - var selectedOption; - var score = 0; - var wrong_selected = 0; //wrong option selected so don't score up - var pos; - var t; - var current_image; - - - load_images(); //load the image numbers for random display - display_score(); - game(); //let the game begin - - - function display_score(){ - document.scoreDisplay.score.value = score; - if(object_counter > 10) - document.scoreDisplay.total.value = 10; - else - document.scoreDisplay.total.value = object_counter; - } - - function checkDisplay(){ //Displays the correct and incorrect info - if(wrong_selected == 1){ - $('.checkedOption').show(); - k.audio.incorrect.play(); - document.getElementById("check").src = "assets/image/incorrect.png"; - $('.checkedOption').fadeOut(1000); - } - else{ - $('.checkedOption').hide(); - k.audio.correct.play(); - document.getElementById("check").src = "assets/image/correct.png"; - $('.checkedOption').fadeOut(2000); - //needs timer for holding on for abt a sec - } - } - - $("#anchorPlayAgain").click(function(){ - $('#gameOver').hide(); - $('.optImg').show(); - $('.imageBox').show(); - load_images(); - score = 0; - object_counter = 1; - wrong_selected = 0; - display_score(); - - game(); - - }); - $("#anchorOpt0").click(function(){ - selected_Option_Process('0'); - }); - $("#anchorOpt1").click(function(){ - selected_Option_Process('1'); - }); - $("#anchorOpt2").click(function(){ - selected_Option_Process('2'); - }); - $("#anchorOpt3").click(function(){ - selected_Option_Process('3'); - }); - - function generate_random_no(no_limit) { //generate random number - var rand_no = Math.ceil(no_limit*Math.random()); - return rand_no; - } - - function get_random_position(){ //generate random number between 0-3 - var rand_pos = Math.floor(Math.random()*4); - return rand_pos; - } - - function load_images(){ - - imageObject[0] = generate_random_no("10"); - for(i=1; i<10; i++){ - do{ - flag = 0; - imageObject[i] = generate_random_no("10"); - for(j=0; j 10){ - - $('.optImg').hide(); - $('.imageBox').hide(); - $('#gameOver').show(); - - - } - - //else - //no change - } //end of game -}); -}); //end of DOM \ No newline at end of file diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/audio/correct.ogg b/examples/Math_Numeric_Puzzle_Solving/assets/audio/correct.ogg deleted file mode 100755 index a0d9e3a..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/audio/correct.ogg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/1.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/1.jpg deleted file mode 100755 index b868f6f..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/1.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/10.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/10.jpg deleted file mode 100755 index 9915a48..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/10.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/11.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/11.jpg deleted file mode 100755 index 16b469a..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/11.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/12.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/12.jpg deleted file mode 100755 index 66da67c..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/12.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/13.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/13.jpg deleted file mode 100755 index 18d9b87..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/13.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/14.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/14.jpg deleted file mode 100755 index 324a3fa..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/14.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/15.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/15.jpg deleted file mode 100755 index d131e27..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/15.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/16.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/16.jpg deleted file mode 100755 index b68a884..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/16.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/2.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/2.jpg deleted file mode 100755 index a140fb4..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/2.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/3.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/3.jpg deleted file mode 100755 index f5dcf0a..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/3.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/4.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/4.jpg deleted file mode 100755 index 6598ab4..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/4.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/5.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/5.jpg deleted file mode 100755 index 94dd716..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/5.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/6.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/6.jpg deleted file mode 100755 index 0eae903..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/6.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/7.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/7.jpg deleted file mode 100755 index c3edfb8..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/7.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/8.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/8.jpg deleted file mode 100755 index 111f3ef..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/8.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/9.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/9.jpg deleted file mode 100755 index 3bb3dda..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/9.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/img1.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/img1.jpg deleted file mode 100755 index 6115094..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img1/img1.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/1.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/1.jpg deleted file mode 100755 index 9ac0afc..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/1.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/10.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/10.jpg deleted file mode 100755 index 355409c..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/10.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/11.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/11.jpg deleted file mode 100755 index 0cc9a6c..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/11.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/12.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/12.jpg deleted file mode 100755 index cb4a435..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/12.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/13.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/13.jpg deleted file mode 100755 index 3a8396f..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/13.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/14.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/14.jpg deleted file mode 100755 index e69bba9..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/14.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/15.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/15.jpg deleted file mode 100755 index 0bce62c..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/15.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/16.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/16.jpg deleted file mode 100755 index 45a7902..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/16.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/2.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/2.jpg deleted file mode 100755 index cb063e4..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/2.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/3.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/3.jpg deleted file mode 100755 index 6f3044a..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/3.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/4.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/4.jpg deleted file mode 100755 index 0327cf1..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/4.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/5.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/5.jpg deleted file mode 100755 index 43bb19f..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/5.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/6.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/6.jpg deleted file mode 100755 index b79e8ad..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/6.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/7.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/7.jpg deleted file mode 100755 index d047c3d..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/7.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/8.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/8.jpg deleted file mode 100755 index 95acda8..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/8.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/9.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/9.jpg deleted file mode 100755 index fe21872..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/9.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/img2.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/img2.jpg deleted file mode 100755 index ba64872..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img2/img2.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/1.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/1.jpg deleted file mode 100755 index 220d337..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/1.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/10.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/10.jpg deleted file mode 100755 index 6c2a45f..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/10.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/11.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/11.jpg deleted file mode 100755 index 458017d..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/11.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/12.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/12.jpg deleted file mode 100755 index f02226f..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/12.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/13.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/13.jpg deleted file mode 100755 index 8135455..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/13.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/14.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/14.jpg deleted file mode 100755 index c2b7f29..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/14.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/15.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/15.jpg deleted file mode 100755 index 0ddfbbe..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/15.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/16.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/16.jpg deleted file mode 100755 index fe03a53..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/16.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/2.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/2.jpg deleted file mode 100755 index 3629a17..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/2.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/3.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/3.jpg deleted file mode 100755 index 3ba580d..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/3.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/4.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/4.jpg deleted file mode 100755 index aae21d0..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/4.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/5.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/5.jpg deleted file mode 100755 index 8271726..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/5.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/6.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/6.jpg deleted file mode 100755 index 6544604..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/6.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/7.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/7.jpg deleted file mode 100755 index 15cd923..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/7.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/8.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/8.jpg deleted file mode 100755 index 5fca761..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/8.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/9.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/9.jpg deleted file mode 100755 index 3c6edaf..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/9.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/img3.jpg b/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/img3.jpg deleted file mode 100755 index 95b352a..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/assets/image/img3/img3.jpg +++ /dev/null Binary files differ diff --git a/examples/Math_Numeric_Puzzle_Solving/css/lesson.css b/examples/Math_Numeric_Puzzle_Solving/css/lesson.css deleted file mode 100755 index 28e9985..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/css/lesson.css +++ /dev/null @@ -1,50 +0,0 @@ -body { - background: #affafc; - } - -#gamearea{ - float:right; - width: 664px; - border: 5px gold dashed; - padding: 10px; -} - -.dragme { - width: 160px; - height: 120px; - padding: 1px 3px 0px 3px; /*top right bottom left*/ - cursor: move; - -} - -#imageBar{ - margin-left: 20px; - margin-top:15px; - float:left; - width: 225px; - height: 495px; - border: 2px solid red; - -} - -.imageThumb{ - margin: 5px; - width: 200px; - height: 138px; - border: 2px groove #00FF00; - padding: 5px; - margin 1em; -} - -.imgMain{ - width: 640px; - height: 480px; - float : right; - padding : 10px; - visibility: hidden; - position:relative; -} - -#img1,#img2,#img3 { - display:none; -} \ No newline at end of file diff --git a/examples/Math_Numeric_Puzzle_Solving/index.html b/examples/Math_Numeric_Puzzle_Solving/index.html deleted file mode 100755 index 0660bce..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/index.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - Math_Numeric Puzzle Solving Game - - - - - - - - - - -
- - - -
-
-
- - - -
-
- - \ No newline at end of file diff --git a/examples/Math_Numeric_Puzzle_Solving/js/jquery-1.3.2.js b/examples/Math_Numeric_Puzzle_Solving/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Math_Numeric_Puzzle_Solving/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - Number Words - - -
Count the number of footballs in the box and find the corresponding number word in the crossword puzzle.
-
-
-
- -
-
- -
-
- - diff --git a/examples/NumberWords/js/lesson.js b/examples/NumberWords/js/lesson.js deleted file mode 100755 index 4eed9b0..0000000 --- a/examples/NumberWords/js/lesson.js +++ /dev/null @@ -1,110 +0,0 @@ -$(document).ready (function(){ - var k = Karma ({ - image: [{name:"football", file:"football.png"}] - }); - k.ready(function() { - var ELEVEN=["30","40","50","60","70","80"]; //coordinates of each answer - var TWELVE=["32","33","34","35","36","37"]; - var THIRTEEN=["32","42","52","62","72","82","92","102"]; - var FOURTEEN=["39","49","59","69","79","89","99","109"]; - var FIFTEEN=["38","48","58","68","78","88","98"]; - var SIXTEEN=["47","56","65","74","83","92","101"]; - var SEVENTEEN=["210","29","28","27","26","25","24","23"]; - var EIGHTEEN=["03","04","05","06","07","08","09","010"]; - var NINETEEN=["10","11","12","13","14","15","16","17"]; - var TWENTY=["103","104","105","106","107","108"]; - var ANS=["eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen","twenty"]; - var ARR=[ELEVEN,TWELVE,THIRTEEN,FOURTEEN,FIFTEEN,SIXTEEN,SEVENTEEN,EIGHTEEN,NINETEEN,TWENTY]; //list of all coordinates - var opt="ONRELEVENCOTIXRAJSFTMNCNNTHIRTEENEEEWTLGEERTITEEGRFTATWGETLRMXWCAEHENVEIAQPFNTNEESOTETMTERVFIFTEENYEAEFOURTEENNTSCNCNETON"; - var question=[0,1,2,3,4,5,6,7,8,9]; //this array will be shuffled and the variable key will be used to generate random questions - var COLOR=["green","purple","orange","brown","pink"]; //some colors to display correct list on right in random color - var counter=0,key; - var paper,set; - var totalQuest = 10; //total number of questions before gameover is displayed - var isActive=false; - - var shuffle = function (choices) { - for(var i=0;i div").hide(); - $("#over").hide(); - var str=""; - for(var i=0;i<11;i++) { - str+=""; - for(var j=0;j<11;j++) { - str+=""+opt.charAt((i*11)+j)+""; - } - str+=""; - } - $('table').append(str); //table with id and class as cell - for(var k=0;k - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - test - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - कमà¥à¤ªà¥à¤¯à¥à¤Ÿà¤°à¤•à¥‹ टà¥à¤°à¤• - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - तिमà¥à¤°à¥‹ टà¥à¤°à¤• - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - तह छान - - - - - - - - - - - - - - शà¥à¤°à¥ गरौठ- - - - - - - - - - - - - - - 00 - - - - - - - - - - - - - - - १ - - - - - - - - - - - - - - - २ - - - - - - - - - - - - - - - ३ - - X - 55 - = ? - 11 - 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/examples/QuickMultiplication/css/lesson.css b/examples/QuickMultiplication/css/lesson.css deleted file mode 100755 index 85dfc00..0000000 --- a/examples/QuickMultiplication/css/lesson.css +++ /dev/null @@ -1,15 +0,0 @@ -.optBtns { -cursor: pointer; -} - -#btnStart, #btnRestart{ -cursor: pointer; -} - -#answerBox { -position:absolute; -top:483px; -left:525px; -font-size:40px; -width:90px; -} diff --git a/examples/QuickMultiplication/index.html b/examples/QuickMultiplication/index.html deleted file mode 100755 index 3ef3ffc..0000000 --- a/examples/QuickMultiplication/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Quick Multiplication - - - - - - - - - - - - - - - diff --git a/examples/QuickMultiplication/js/lesson.js b/examples/QuickMultiplication/js/lesson.js deleted file mode 100755 index ebc85b0..0000000 --- a/examples/QuickMultiplication/js/lesson.js +++ /dev/null @@ -1,119 +0,0 @@ -$(document).ready(function(){ - var k = Karma ({ - svg: [{domId:"truck", name:"truck"}] - }); - - k.ready(function(){ - var TIMER_DELAY=1000, TOTAL_SECONDS=10; - var boxInTruckA=0,boxInTruckB=0,level=1,num1=0,num2=0,numTime=TOTAL_SECONDS; - var selectedOpt="#optA"; - var isRunning=false; - var isFirstRun=true; - var timer; - - var init = function() { - $("#happyFace",k.svg.truck.root).hide(); - $("#sadFace",k.svg.truck.root).hide(); - $("#rightBox",k.svg.truck.root).text(""); - $(selectedOpt,k.svg.truck.root).animate({svgTransform: 'translate(0 -10)'},500); - $("#box1",k.svg.truck.root).text(""); - $("#box2",k.svg.truck.root).text(""); - }; - - var addBoxInTruck = function(truckName,num) { - $("#"+truckName+"box"+num,k.svg.truck.root).show(); - }; - - var timesOut =function(){ - numTime--; - $("#tmrValue",k.svg.truck.root).text(numTime); - if (numTime===0) { - boxInTruckA++; - addBoxInTruck("truckA",boxInTruckA); - if (boxInTruckA===9) { - $("#truckAtext",k.svg.truck.root).show(); - $("#truckA",k.svg.truck.root).animate({svgTransform: 'translate(600)'}, 4000); - endGame(); - return; - } - numTime=TOTAL_SECONDS; - showQuestion(); - } - timer = window.setTimeout(timesOut,TIMER_DELAY); - }; - - var showQuestion = function() { - $("#rightBox",k.svg.truck.root).text(num1+" X "+num2+" = "+num1*num2); - num1=Karma.rand(2+level,3+(level*3)); - num2=Karma.rand(2+level,num1); - $("#box1",k.svg.truck.root).text(num1); - $("#box2",k.svg.truck.root).text(num2); - }; - - var checkAnswer = function(event) { - if(isRunning===true){ - $("#answerBox").css('background-color','white'); - if(event.keyCode===13) { - $("#happyFace",k.svg.truck.root).hide(); - $("#sadFace",k.svg.truck.root).hide(); - if($("#answerBox").val()==(num1*num2)) { - $("#happyFace",k.svg.truck.root).show(); - numTime=TOTAL_SECONDS; - boxInTruckB++; - addBoxInTruck("truckB",boxInTruckB); - if (boxInTruckB===9) { - $("#truckBtext",k.svg.truck.root).show(); - $("#truckB",k.svg.truck.root).animate({svgTransform: 'translate(600 198)'}, 4000); - endGame(); - return; - } - else { - showQuestion(); - } - } - else { - $("#sadFace",k.svg.truck.root).show(); - $("#answerBox").css('background-color','red'); - } - $("#answerBox").val(''); - } - } - }; - - var addEvent = function() { - $("#answerBox").keydown(checkAnswer); - $("#btnStart",k.svg.truck.root).click(startGame); - $(".optBtns",k.svg.truck.root).click(function(){ - if(isFirstRun===true) { - if (selectedOpt==="#"+this.id) { //if same option clicked, do nothing - return; - } - $(selectedOpt,k.svg.truck.root).animate({svgTransform: 'translate(0 0)'},500); - $(this).animate({svgTransform: 'translate(0 -10)'},500); - selectedOpt="#"+this.id; - level = selectedOpt.charCodeAt(4) - 64; //A=65, B=66, C=67 - } - }); - }; - - var endGame=function() { - isRunning=false; - clearTimeout(timer); - }; - - var startGame = function() { - if(isFirstRun===true) { - $(".box",k.svg.truck.root).hide(); - $(".truckText",k.svg.truck.root).hide(); - isRunning=true; - isFirstRun=false; - timesOut(); - showQuestion(); - $("#answerBox").val('').focus(); - } - } - - addEvent(); - init(); - }); -}); diff --git a/examples/Vocabulary_Birds/assets/images/background.png b/examples/Vocabulary_Birds/assets/images/background.png deleted file mode 100755 index cde17c4..0000000 --- a/examples/Vocabulary_Birds/assets/images/background.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/default.png b/examples/Vocabulary_Birds/assets/images/default.png deleted file mode 100755 index ba3b8f1..0000000 --- a/examples/Vocabulary_Birds/assets/images/default.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/drop_box.png b/examples/Vocabulary_Birds/assets/images/drop_box.png deleted file mode 100755 index 944d3e8..0000000 --- a/examples/Vocabulary_Birds/assets/images/drop_box.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/gameover.png b/examples/Vocabulary_Birds/assets/images/gameover.png deleted file mode 100755 index ee47991..0000000 --- a/examples/Vocabulary_Birds/assets/images/gameover.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/1.png b/examples/Vocabulary_Birds/assets/images/images/1.png deleted file mode 100755 index f7fbbf2..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/1.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/2.png b/examples/Vocabulary_Birds/assets/images/images/2.png deleted file mode 100755 index 678b552..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/2.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/3.png b/examples/Vocabulary_Birds/assets/images/images/3.png deleted file mode 100755 index c92f33a..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/3.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/4.png b/examples/Vocabulary_Birds/assets/images/images/4.png deleted file mode 100755 index 9065006..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/4.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/5.png b/examples/Vocabulary_Birds/assets/images/images/5.png deleted file mode 100755 index e5b8374..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/5.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/6.png b/examples/Vocabulary_Birds/assets/images/images/6.png deleted file mode 100755 index 4c5fec4..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/6.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/7.png b/examples/Vocabulary_Birds/assets/images/images/7.png deleted file mode 100755 index fa5c187..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/7.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/images/8.png b/examples/Vocabulary_Birds/assets/images/images/8.png deleted file mode 100755 index b82a68d..0000000 --- a/examples/Vocabulary_Birds/assets/images/images/8.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/1.png b/examples/Vocabulary_Birds/assets/images/names/1.png deleted file mode 100755 index f562da2..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/1.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/2.png b/examples/Vocabulary_Birds/assets/images/names/2.png deleted file mode 100755 index e8b7ebf..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/2.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/3.png b/examples/Vocabulary_Birds/assets/images/names/3.png deleted file mode 100755 index a406fb5..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/3.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/4.png b/examples/Vocabulary_Birds/assets/images/names/4.png deleted file mode 100755 index 6fddc6c..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/4.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/5.png b/examples/Vocabulary_Birds/assets/images/names/5.png deleted file mode 100755 index dca082b..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/5.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/6.png b/examples/Vocabulary_Birds/assets/images/names/6.png deleted file mode 100755 index 38e8059..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/6.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/7.png b/examples/Vocabulary_Birds/assets/images/names/7.png deleted file mode 100755 index cc77326..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/7.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/names/8.png b/examples/Vocabulary_Birds/assets/images/names/8.png deleted file mode 100755 index 3af29f5..0000000 --- a/examples/Vocabulary_Birds/assets/images/names/8.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/next.png b/examples/Vocabulary_Birds/assets/images/next.png deleted file mode 100755 index 6553fa5..0000000 --- a/examples/Vocabulary_Birds/assets/images/next.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/prev.png b/examples/Vocabulary_Birds/assets/images/prev.png deleted file mode 100755 index 30d5f94..0000000 --- a/examples/Vocabulary_Birds/assets/images/prev.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/assets/images/vocabularyImg.png b/examples/Vocabulary_Birds/assets/images/vocabularyImg.png deleted file mode 100755 index dac2bb7..0000000 --- a/examples/Vocabulary_Birds/assets/images/vocabularyImg.png +++ /dev/null Binary files differ diff --git a/examples/Vocabulary_Birds/css/lesson.css b/examples/Vocabulary_Birds/css/lesson.css deleted file mode 100755 index ab4a328..0000000 --- a/examples/Vocabulary_Birds/css/lesson.css +++ /dev/null @@ -1,94 +0,0 @@ -body { - background-color : #EEEEEE ; - background-image:url(../assets/images/background.png); - background-repeat: no-repeat; - background-position:top center; - - } -#vocabTitle{ - position: absolute; - left:450px; - top:5px; - font: 30px Geneva, Helvetica, Verdana, Arial, sans-serif; - color: #FF9900; - font-weight:bold; -} - -#gameArea{ - float:left; - height: 450px; padding : 10px; margin-left: 100px; margin-top: 12px; - -} - -.vocabularyImg{ - padding: 2px; - margin: 0.5em; - margin:50px 0px 10px 75px; -} - -.imgNext{ - position:absolute; - left: 950px; - top: 490px; - width: 40px; - height: 36px; - -} -.imgPrev{ - position:absolute; - left: 950px; - top: 10px; - width: 40px; - height: 36px; - padding:1px; - margin: 0.1em; - -} -#vocabulary{ - margin: 5px 50px; -} - -#imageArea{ - position:relative; - width: 185px; - height: 185px; - padding: 15px; - margin: 0.6em; - float: left; -} - -.imgObject{ - position: relative; - width: 150px; - height: 150px; - margin: 0.25em; - padding: 5px; -} - - -.dropBox{ - - background-image:url(../assets/images/drop_box.png) ; - width: 119px; - height: 33px; - margin: 0.25em; - padding: 2px; -} - - - -#optionArea{ - position: absolute; - width: 980px; height: 40px; padding : 2px; left: 70px; top: 520px; - border: 2px solid green; -} -.dragImg{ - width: 110px; height: 33px; padding: 2px; margin: 0.1em; cursor: move; -} -#imgGameOver{ - display:none; - width: 200px; - height: 36px; - padding: 2px; - margin-left : 350px; -} diff --git a/examples/Vocabulary_Birds/index.html b/examples/Vocabulary_Birds/index.html deleted file mode 100755 index 5fdb3ae..0000000 --- a/examples/Vocabulary_Birds/index.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - English_Vocabulary Birds - - - - - - - - - - - - -
- Vocabulary Birds - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Birds/js/jquery-1.3.2.js b/examples/Vocabulary_Birds/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Birds/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Body Parts - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Body_Parts/js/jquery-1.3.2.js b/examples/Vocabulary_Body_Parts/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Body_Parts/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Clothes - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Clothes/js/jquery-1.3.2.js b/examples/Vocabulary_Clothes/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Clothes/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Domestic Animals - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Domestic_Animals/js/jquery-1.3.2.js b/examples/Vocabulary_Domestic_Animals/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Domestic_Animals/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Foods - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Foods/js/jquery-1.3.2.js b/examples/Vocabulary_Foods/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Foods/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Fruits - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Fruits/js/jquery-1.3.2.js b/examples/Vocabulary_Fruits/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Fruits/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Objects - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Objects/js/jquery-1.3.2.js b/examples/Vocabulary_Objects/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Objects/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Plants - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Plants/js/jquery-1.3.2.js b/examples/Vocabulary_Plants/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Plants/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Profession - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Profession/js/jquery-1.3.2.js b/examples/Vocabulary_Profession/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Profession/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Structure - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Structure/js/jquery-1.3.2.js b/examples/Vocabulary_Structure/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Structure/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Transportation - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_Transportation/js/jquery-1.3.2.js b/examples/Vocabulary_Transportation/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_Transportation/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - - - - - - -
- Vocabulary Wild Animals - -
-
- - -
- - -
-
- -
- - -
- - -
-
- - - \ No newline at end of file diff --git a/examples/Vocabulary_WildAnimals/js/jquery-1.3.2.js b/examples/Vocabulary_WildAnimals/js/jquery-1.3.2.js deleted file mode 100755 index 9263574..0000000 --- a/examples/Vocabulary_WildAnimals/js/jquery-1.3.2.js +++ /dev/null @@ -1,4376 +0,0 @@ -/*! - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){ - -var - // Will speed up references to window, and allows munging its name. - window = this, - // Will speed up references to undefined, and allows munging its name. - undefined, - // Map over jQuery in case of overwrite - _jQuery = window.jQuery, - // Map over the $ in case of overwrite - _$ = window.$, - - jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); - }, - - // A simple way to check for HTML strings or ID strings - // (both of which we optimize for) - quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, - // Is it a simple selector - isSimple = /^.[^:#\[\.,]*$/; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - this.context = selector; - return this; - } - // Handle HTML strings - if ( typeof selector === "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem && elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - var ret = jQuery( elem || [] ); - ret.context = document; - ret.selector = selector; - return ret; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document ).ready( selector ); - - // Make sure that old selector state is passed along - if ( selector.selector && selector.context ) { - this.selector = selector.selector; - this.context = selector.context; - } - - return this.setArray(jQuery.isArray( selector ) ? - selector : - jQuery.makeArray(selector)); - }, - - // Start with an empty selector - selector: "", - - // The current version of jQuery being used - jquery: "1.3.2", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num === undefined ? - - // Return a 'clean' array - Array.prototype.slice.call( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems, name, selector ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - ret.context = this.context; - - if ( name === "find" ) - ret.selector = this.selector + (this.selector ? " " : "") + selector; - else if ( name ) - ret.selector = this.selector + "." + name + "(" + selector + ")"; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( typeof name === "string" ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - 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 this.empty().append( (this[0] && this[0].ownerDocument || 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] ) { - // The elements to wrap the target around - var wrap = jQuery( html, this[0].ownerDocument ).clone(); - - if ( this[0].parentNode ) - wrap.insertBefore( this[0] ); - - wrap.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 this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: [].push, - sort: [].sort, - splice: [].splice, - - find: function( selector ) { - if ( this.length === 1 ) { - var ret = this.pushStack( [], "find", selector ); - ret.length = 0; - jQuery.find( selector, this[0], ret ); - return ret; - } else { - return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - })), "find", selector ); - } - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var html = this.outerHTML; - if ( !html ) { - var div = this.ownerDocument.createElement("div"); - div.appendChild( this.cloneNode(true) ); - html = div.innerHTML; - } - - return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0]; - } else - return this.cloneNode(true); - }); - - // Copy the events from the original to the clone - if ( events === true ) { - var orig = this.find("*").andSelf(), i = 0; - - ret.find("*").andSelf().each(function(){ - if ( this.nodeName !== orig[i].nodeName ) - return; - - var events = jQuery.data( orig[i], "events" ); - - for ( var type in events ) { - for ( var handler in events[ type ] ) { - jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data ); - } - } - - i++; - }); - } - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, jQuery.grep(this, function(elem){ - return elem.nodeType === 1; - }) ), "filter", selector ); - }, - - closest: function( selector ) { - var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null, - closer = 0; - - return this.map(function(){ - var cur = this; - while ( cur && cur.ownerDocument ) { - if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) { - jQuery.data(cur, "closest", closer); - return cur; - } - cur = cur.parentNode; - closer++; - } - }); - }, - - not: function( selector ) { - if ( typeof selector === "string" ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector === "string" ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return !!selector && this.is( "." + selector ); - }, - - val: function( value ) { - if ( value === undefined ) { - var elem = this[0]; - - if ( elem ) { - if( jQuery.nodeName( elem, 'option' ) ) - return (elem.attributes.value || {}).specified ? elem.value : elem.text; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery(option).val(); - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - } - - // Everything else, we just grab the value - return (elem.value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if ( typeof value === "number" ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value === undefined ? - (this[0] ? - this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, +i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ), - "slice", Array.prototype.slice.call(arguments).join(",") ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - domManip: function( args, table, callback ) { - if ( this[0] ) { - var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(), - scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ), - first = fragment.firstChild; - - if ( first ) - for ( var i = 0, l = this.length; i < l; i++ ) - callback.call( root(this[i], first), this.length > 1 || i > 0 ? - fragment.cloneNode(true) : fragment ); - - if ( scripts ) - jQuery.each( scripts, evalScript ); - } - - return this; - - function root( elem, cur ) { - return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ? - (elem.getElementsByTagName("tbody")[0] || - elem.appendChild(elem.ownerDocument.createElement("tbody"))) : - elem; - } - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !jQuery.isFunction(target) ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy === "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -// exclude the following css properties to add px -var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}, - toString = Object.prototype.toString; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning isFunction. - // Since version 1.3, DOM methods and functions like alert - // aren't supported. They return false on IE (#2968). - isFunction: function( obj ) { - return toString.call(obj) === "[object Function]"; - }, - - isArray: function( obj ) { - return toString.call(obj) === "[object Array]"; - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" || - !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument ); - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - if ( data && /\S/.test(data) ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.support.scriptEval ) - script.appendChild( document.createTextNode( data ) ); - else - script.text = data; - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length === undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length === undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames !== undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force, extra ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - - if ( extra === "border" ) - return; - - jQuery.each( which, function() { - if ( !extra ) - val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - if ( extra === "margin" ) - val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0; - else - val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - } - - if ( elem.offsetWidth !== 0 ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, Math.round(val)); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // We need to handle opacity special in IE - if ( name == "opacity" && !jQuery.support.opacity ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle ) - ret = computedStyle.getPropertyValue( name ); - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context, fragment ) { - context = context || document; - - // !context.createElement fails in IE with an error but returns typeof 'object' - if ( typeof context.createElement === "undefined" ) - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - // If a single string is passed in and it's a single tag - // just do a createElement and skip the rest - if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) { - var match = /^<(\w+)\s*\/?>$/.exec(elems[0]); - if ( match ) - return [ context.createElement( match[1] ) ]; - } - - var ret = [], scripts = [], div = context.createElement("div"); - - jQuery.each(elems, function(i, elem){ - if ( typeof elem === "number" ) - elem += ''; - - if ( !elem ) - return; - - // Convert html string into DOM nodes - if ( typeof elem === "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and