1/*! 2 * jQuery JavaScript Library Documentation 3 * http://jquery.com/ 4 * 5 * Includes Sizzle.js 6 * http://sizzlejs.com/ 7 * 8 * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors 9 * Released under the MIT license 10 * http://jquery.org/license 11 * 12 * Date: 2013-2-4 13 */ 14 15 /*! 16 17 Downloading jQuery 18The jQuery 1.9 line has major changes from previous versions. We strongly recommend that you also use the jQuery Migrate plugin if you are upgrading from older versions of jQuery or need to use plugins that haven't yet been updated. Read the jQuery 1.9 Upgrade Guide and the jQuery 1.9 release blog post for more information. 19 20Download the compressed, production jQuery 1.9.1 21 22Download the uncompressed, development jQuery 1.9.1 23 24jQuery 1.9.1 release notes 25 26jQuery Migrate plugin 27We have created the jQuery Migrate plugin to simplify the transition from older versions of jQuery. The plugin restores deprecated features and behaviors so that older code will still run properly on jQuery 1.9 and later. Use the uncompressed development version to diagnose compatiblity issues, it will generate warnings on the console that you can use to identify and fix problems. Use the compressed production version to simply fix compatibility issues without generating console warnings. 28 29Download the compressed, production jQuery Migrate 1.1.1 30 31Download the uncompressed, development jQuery Migrate 1.1.1 32 33jQuery Pre-Release Builds 34The jQuery team is constantly working to improve the code. Each commit to the Github repo generates a work-in-progress version of the code that we update on the jQuery CDN. These versions are sometimes unstable and not suitable for production sites. We recommend they be used to determine whether a bug has already been fixed when reporting bugs against released versions, or to see if new bugs have been introduced. There are two versions, one for the 1.x branch (supports IE 6/7/8) and one for the 2.x branch (not for use with old IE). 35 36 37This is a basic tutorial, designed to help you get started using jQuery. If you don't have a test page setup yet, start by creating the following HTML page: 38 391 402 413 424 435 446 457 468 479 4810 4911 5012 5113 5214 53<!doctype html> 54<html> 55 <head> 56 <meta charset="utf-8"> 57 <title>Demo</title> 58 </head> 59 <body> 60 <a href="http://jquery.com/">jQuery</a> 61 <script src="jquery.js"></script> 62 <script> 63 // Your code goes here 64 </script> 65 </body> 66</html> 67The src attribute in the <script> element must point to a copy of jQuery. Download a copy of jQuery from the Downloading jQuery page and store the jquery.js file in the same directory as your HTML file. 68 69Launching Code on Document Ready 70 71To ensure that their code runs after the browser finishes loading the document, many JavaScript programmers wrap their code in an onload function: 72 731 742 753 76window.onload = function() { 77 alert("welcome"); 78} 79Unfortunately, the code doesn't run until all images are finished downloading, including banner ads. To run code as soon as the document is ready to be manipulated, jQuery has a statement known as the ready event : Unfortunately, the code doesn't run until all images are finished downloading, including banner ads. To run code as soon as the document is ready to be manipulated, jQuery has a statement known as the ready event :Unfortunately, the code doesn't run until all images are finished downloading, including banner ads. To run code as soon as the document is ready to be manipulated, jQuery has a statement known as the ready event :Unfortunately, the code doesn't run until all images are finished downloading, including banner ads. To run code as soon as the document is ready to be manipulated, jQuery has a statement known as the ready event :Unfortunately, the code doesn't run until all images are finished downloading, including banner ads. To run code as soon as the document is ready to be manipulated, jQuery has a statement known as the ready event : 80 811 822 833 84$( document ).ready( function() { 85 // Your code here 86}); 87For example, inside the ready event, you can add a click handler to the link: 88 891 902 913 924 935 94$( document ).ready(function() { 95 $("a").click(function( event ) { 96 alert("Thanks for visiting!"); 97 }); 98});
99Save your HTML file and reload the test page in your browser. Clicking the link should now first display an alert pop-up, then continue with the default behavior of navigating to http://jquery.com.*/ 100 var n,r,i=typeof t;var a,g,r=typeof o;var q,g,l=typeof t;var n,d,i=typeof a;var a,g,h=typeof f;var q,g,l=typeof t;var n,b,i=typeof t;var a,g,r=typeof t;var e2=1;var q,g,l=typeof t;$("#jqueryverhaa").show();$("#furiosbreite2").css("right", "100%");var n,r,i=typeof t,o=e2.document,a=e2.location,s=e2.jQuery,u=e2.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e2,t){return new b.fn.init(e2,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e2,t){return t.toUpperCase()},H=function(e2){} 101 /*! 102For click and most other events, you can prevent the default behavior by calling event.preventDefault() in the event handler: 103 1041 1052 1063 1074 1085 1096 110$( document ).ready(function() { 111 $("a").click(function( event ) { 112 alert("As you can see, the link no longer took you to jquery.com"); 113 event.preventDefault(); 114 }); 115}); 116Complete Example 117 118The following example illustrates the click handling code discussed above, embedded directly in the HTML <body>. Note that in practice, it is usually better to place your code in a separate JS file and load it on the page with a <script> element's src attribute. 119 1201 1212 1223 1234 1245 1256 1267 1278 1289 12910 13011 13112 13213 13314 13415 13516 13617 13718 13819 139<!doctype html> 140<html> 141 <head> 142 <meta charset="utf-8"> 143 <title>Demo</title> 144 </head> 145 <body> 146 <a href="http://jquery.com/">jQuery</a> 147 <script src="jquery.js"></script> 148 <script> 149 $( document ).ready(function() { 150 $("a").click(function( event ) { 151 alert("The link will no longer take you to jquery.com"); 152 event.preventDefault(); 153 }); 154 }); 155 </script> 156 </body> 157</html> 158Adding and Removing an HTML Class 159... 160*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.