· 6 years ago · Feb 16, 2019, 09:24 PM
1<!DOCTYPE html>
2<html>
3 <head>
4 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
5 <script src="classthree.js"></script>
6 </head>
7 <body>
8 <h1 id="ttl" align="center">jQuery Information</h1>
9 <button id="oplogo">Open Logo</button>
10 <button id="cllogo">Close Logo</button>
11 <img id="logopic" src="https://upload.wikimedia.org/wikipedia/en/9/9e/JQuery_logo.svg"></img>
12 <p>jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. Web analysis indicates that it is the most widely deployed JavaScript library by a large margin.</p>
13 <p>jQuery's syntax is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications. jQuery also provides capabilities for developers to create plug-ins on top of the JavaScript library. This enables developers to create abstractions for low-level interaction and animation, advanced effects and high-level, themeable widgets. The modular approach to the jQuery library allows the creation of powerful dynamic web pages and Web applications.
14
15 <p>The set of jQuery core features—DOM element selections, traversal and manipulation—enabled by its selector engine (named "Sizzle" from v1.3), created a new "programming style", fusing algorithms and DOM data structures. This style influenced the architecture of other JavaScript frameworks like YUI v3 and Dojo, later stimulating the creation of the standard Selectors API.</p>
16
17 <p>Microsoft and Nokia bundle jQuery on their platforms. Microsoft includes it with Visual Studio for use within Microsoft's ASP.NET AJAX and ASP.NET MVC frameworks while Nokia has integrated it into the Web Run-Time widget development platform.</p>
18
19 <button id="optbl">Show Table of Contents</button>
20 <button id="cltbl">Close Table of Contents</button>
21 <ol id="tbl">
22 <li><a href="#1">Overview</a></li>
23 <li><a href="#2">History</a></li>
24 <li><a href="#3">Features</a></li>
25 <li><a href="#4">Distribution</a></li>
26 </ol>
27 <h2 id="1">Overview</h2>
28 <p>
29 jQuery, at its core, is a Document Object Model (DOM) manipulation library. The DOM is a tree-structure representation of all the elements of a Web page. jQuery simplifies the syntax for finding, selecting, and manipulating these DOM elements. For example, jQuery can be used for finding an element in the document with a certain property (e.g. all elements with an h1 tag), changing one or more of its attributes (e.g. color, visibility), or making it respond to an event (e.g. a mouse click).</p>
30 <p>jQuery also provides a paradigm for event handling that goes beyond basic DOM element selection and manipulation. The event assignment and the event callback function definition are done in a single step in a single location in the code. jQuery also aims to incorporate other highly used JavaScript functionality (e.g. fade ins and fade outs when hiding elements, animations by manipulating CSS properties).</p>
31 <p>The principles of developing with jQuery are:
32 <br>
33 1. Separation of JavaScript and HTML: The jQuery library provides simple syntax for adding event handlers to the DOM using JavaScript, rather than adding HTML event attributes to call JavaScript functions. Thus, it encourages developers to completely separate JavaScript code from HTML markup.
34 <br>
35 2. Brevity and clarity: jQuery promotes brevity and clarity with features like "chainable" functions and shorthand function names.
36 <br>
37 3. Elimination of cross-browser incompatibilities: The JavaScript engines of different browsers differ slightly so JavaScript code that works for one browser may not work for another. Like other JavaScript toolkits, jQuery handles all these cross-browser inconsistencies and provides a consistent interface that works across different browsers.
38 Extensibility: New events, elements, and methods can be easily added and then reused as a plugin.
39 </p>
40
41 <h2 id="2">History</h2>
42 <p>jQuery was originally created in January 2006 at BarCamp NYC by John Resig, influenced by Dean Edwards' earlier cssQuery library. It is currently maintained by a team of developers led by Timmy Willison (with the jQuery selector engine, Sizzle, being led by Richard Gibson).</p>
43 <p>jQuery was originally licensed under the CC BY-SA 2.5, and relicensed to the MIT license in 2006. At the end of 2006, it was dual-licensed under GPL and MIT licenses. As this led to some confusion, in 2012 the GPL was dropped and is now only licensed under the MIT license.</p>
44 <p>In 2015, jQuery was used on 63% of the top 1 million websites (according to BuiltWith), and 17% of all Internet websites. As of June 2018, jQuery is used on 73% of the top 1 million websites, and by 22.4% of all websites (according to BuiltWith).</p>
45
46 <h2 id="3">Features</h2>
47 <p>jQuery includes the following features:
48 <br>
49 <ul>
50 <li>DOM element selections using the multi-browser open source selector engine Sizzle, a spin-off of the jQuery project</li>
51 <li>Events</li>
52 <li>Effects and Animations</li>
53 <li>Ajax</li>
54 <li>Deferred and Promise objects to control asynchronous processing</li>
55 <li>JSON parsing</li>
56 <li>Extensibility through plug-ins</li>
57 <li>Utilities, such as feature detection</li>
58 <li>Compatibility methods that are natively available in modern browsers, but need fallbacks for older browsers, such as jQuery.inArray() and jQuery.each().</li>
59 <li>Cross-browser support</li>
60 </ul>
61 </p>
62 <p>Browser support
63 <br>
64 jQuery 3.0 & newer supports "current−1 versions" (meaning the current stable version of the browser and the version that preceded it) of Firefox (and ESR), Chrome, Safari, and Edge as well as Internet Explorer 9 & newer. On mobile it supports iOS 7 & newer and Android 4.0 & newer. </p>
65 </body>
66</html>