You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changes:
* Drop the dead Jenkins link; we use GitHub Actions now
* Update supported jQuery versions
* Simplify Git clone instructions to refer to GitHub docs
* Remove references to concrete versions in favor of linking
to https://releases.jquery.com/color/
Supported jQuery versions: 1.12+ (only the latest version within each jQuery major is tested)
6
4
7
5
## Browser Support
8
6
@@ -17,44 +15,24 @@ Other browsers may also work correctly with this plugin but support is not guara
17
15
Information on browser support of jQuery Color 2.x can be found in the [Browser Support section](https://github.com/jquery/jquery-color/blob/2.x-stable/README.md#browser-support) in its README.
18
16
19
17
## Using jQuery Color in Production
20
-
We release jQuery Color by itself, or in a bundle. The extended names can be included as a jQuery Color plugin, or you can download the version of jQuery Color that includes the names. Choose your build from the following list:
21
-
22
-
**Current version: 2.1.2**
23
18
24
-
* jQuery Color [Compressed](http://code.jquery.com/color/jquery.color-2.1.2.min.js)[Uncompressed](http://code.jquery.com/color/jquery.color-2.1.2.js)
25
-
* jQuery Color Extended Names [Compressed](http://code.jquery.com/color/jquery.color.svg-names-2.1.2.min.js)[Uncompressed](http://code.jquery.com/color/jquery.color.svg-names-2.1.2.js)
26
-
* jQuery Color & Extended Names(previous two combined) [Compressed](http://code.jquery.com/color/jquery.color.plus-names-2.1.2.min.js)[Uncompressed](http://code.jquery.com/color/jquery.color.plus-names-2.1.2.js)
19
+
We release jQuery Color by itself, or in a bundle. The extended names can be included as a jQuery Color plugin, or you can download the version of jQuery Color that includes the names. Choose your version & build from the list at https://releases.jquery.com/color/.
First, [clone the jQuery Color git repo](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository).
35
24
36
25
Enter the directory and install the node dependencies:
37
26
38
27
```shell
39
28
cd jquery-color && npm install
40
29
```
41
30
42
-
Make sure you have `grunt` installed by testing:
43
-
44
-
```shell
45
-
grunt -version
31
+
To build and test jQuery Color, run:
46
32
```
47
-
48
-
If not, run:
49
-
50
-
```shell
51
-
npm install -g grunt
33
+
npm test
52
34
```
53
35
54
-
To run tests locally, run `grunt`, and this will run the tests in PhantomJS.
55
-
56
-
You can also run the tests in a browser by navigating to the `test/` directory.
57
-
58
36
## Animated colors
59
37
60
38
This plugin installs a [`cssHook`](https://api.jquery.com/jQuery.cssHooks/) which allows jQuery's [`.animate()`](https://api.jquery.com/animate) to animate between two colors.
@@ -68,6 +46,7 @@ This plugin installs a [`cssHook`](https://api.jquery.com/jQuery.cssHooks/) whic
68
46
<!DOCTYPE html>
69
47
<html>
70
48
<head>
49
+
<title>jQuery Color demo</title>
71
50
<style>
72
51
div {
73
52
background-color: #bada55;
@@ -215,7 +194,7 @@ If a color is created using any of the HSLA functions or parsers, it will keep t
215
194
216
195
## Extensibility
217
196
218
-
It is possible for you to add your own functions to the color object. For instance, this function will tell you if its better to use black or white on a given background color.
197
+
It is possible for you to add your own functions to the color object. For instance, this function will tell you if it's better to use black or white on a given background color.
0 commit comments