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