PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 4.13.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v4.13.2
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / node_modules / jquery / README.md
matomo / app / node_modules / jquery Last commit date
dist 3 years ago AUTHORS.txt 3 years ago LICENSE.txt 3 years ago README.md 3 years ago
README.md
66 lines
1 # jQuery
2
3 > jQuery is a fast, small, and feature-rich JavaScript library.
4
5 For information on how to get started and how to use jQuery, please see [](http://api.jquery.com/jQuery's documentation](http://api.jquery.com/](http://api.jquery.com/).
6 For source files and issues, please visit the [](https://github.com/jquery/jqueryjQuery repo](https://github.com/jquery/jquery](https://github.com/jquery/jquery).
7
8 ## Including jQuery
9
10 Below are some of the most common ways to include jQuery.
11
12 ### Browser
13
14 #### Script tag
15
16 ```html
17 <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
18 ```
19
20 #### Babel
21
22 [](http://babeljs.io/Babel](http://babeljs.io/](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
23
24 ```js
25 import $ from "jquery";
26 ```
27
28 #### Browserify/Webpack
29
30 There are several ways to use [](http://browserify.org/Browserify](http://browserify.org/](http://browserify.org/) and [](https://webpack.github.io/Webpack](https://webpack.github.io/](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this...
31
32 ```js
33 var $ = require("jquery");
34 ```
35
36 #### AMD (Asynchronous Module Definition)
37
38 AMD is a module format built for the browser. For more information, we recommend [](http://requirejs.org/docs/whyamd.htmlrequire.js' documentation](http://requirejs.org/docs/whyamd.html](http://requirejs.org/docs/whyamd.html).
39
40 ```js
41 define(["jquery"], function($) {
42
43 });
44 ```
45
46 ### Node
47
48 To include jQuery in [](nodejs.orgNode](nodejs.org](nodejs.org), first install with npm.
49
50 ```sh
51 npm install jquery
52 ```
53
54 For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [](https://github.com/tmpvar/jsdomjsdom](https://github.com/tmpvar/jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes.
55
56 ```js
57 require("jsdom").env("", function(err, window) {
58 if (err) {
59 console.error(err);
60 return;
61 }
62
63 var $ = require("jquery")(window);
64 });
65 ```
66