Commit Graph

119 Commits

Author SHA1 Message Date
Lokesh Dhakar
d82f147343 style: Add eslint 2019-05-26 22:12:17 -07:00
Lokesh Dhakar
47cdb18e14 Merge pull request #150 from lokesh/dont-append-dom
refactor: Dont append canvas tag to DOM
2019-05-26 20:34:15 -07:00
Lokesh Dhakar
a921953d1a refactor: Don't append canvas to DOM 2019-05-26 20:31:37 -07:00
Lokesh Dhakar
b61e6406a1 refactor: Remove console log from demo js 2019-05-26 20:30:33 -07:00
Lokesh Dhakar
9cea24a6bf refactor: Remove unused canvas methods 2019-05-26 20:28:38 -07:00
Lokesh Dhakar
20c33cc3bb chore: Upgrade Cypress and docs on how to run tests 2019-05-25 19:18:34 -07:00
Lokesh Dhakar
7a4e672b8c test: Add getPalette() tets 2019-05-02 09:04:23 -07:00
Lokesh Dhakar
eef8742c0b docs: Add palette count calls to example page 2019-05-02 08:43:05 -07:00
Lokesh Dhakar
fed4154d29 docs: Add API table 2019-05-02 08:23:32 -07:00
Lokesh Dhakar
eb38ecf0dc chore: Update npm dev task to ref http-server in local node_modules 2019-05-02 08:23:15 -07:00
Lokesh Dhakar
fa0ada7c33 Merge pull request #146 from lokesh/add-tests
Add Cypress tests
2019-05-02 07:47:45 -07:00
Lokesh Dhakar
8e77715d5d Add tests: getColor on black, red, color, transparent, white image 2019-04-29 08:24:09 -07:00
Lokesh Dhakar
2ffa707ae0 Cleanup: remove unused jquery, tabs to spaces 2019-04-28 22:10:32 -07:00
Lokesh Dhakar
e251daa01f Update demo code to be test specific. Remove jQuery 2019-04-28 21:12:48 -07:00
Lokesh Dhakar
621ae20cd3 Discontinue using SASS. Simplify CSS for test page 2019-04-28 21:12:26 -07:00
Lokesh Dhakar
2563e20099 Strip example page. Simplify for test cases 2019-04-28 21:11:29 -07:00
Lokesh Dhakar
43d8a74e6d wip tests: api spec stub, add test image 2019-04-28 21:10:58 -07:00
Lokesh Dhakar
f63d533d65 Add more example images for testing 2019-04-28 19:36:28 -07:00
Lokesh Dhakar
42da5347b2 Fix color-thief version. Accidentally bumped prev 2019-04-28 14:07:51 -07:00
Lokesh Dhakar
5fbe83db15 Discontinue support for Bower 2019-04-28 14:07:39 -07:00
Lokesh Dhakar
7fb3680a92 Remove unused lint config files 2019-04-28 14:07:30 -07:00
Lokesh Dhakar
e2db15e67a remove DEPLOY.md 2019-04-28 14:05:38 -07:00
Lokesh Dhakar
b94c175a7a Move deploy notes to contributing.md 2019-04-28 14:05:23 -07:00
Lokesh Dhakar
4f980ae788 Merge pull request #145 from lokesh/replace-grunt
Replace Grunt and use npm tasks
2019-04-28 14:01:53 -07:00
Lokesh Dhakar
e0ff746a2d Switch to uglify-es for minification 2019-04-28 13:59:49 -07:00
Lokesh Dhakar
9a4443097c Replace Grunt w/node deps: http-server, node-minify, uglify 2019-04-28 13:58:49 -07:00
Lokesh Dhakar
dadaba619a testing: Remove Cypress examples 2019-04-27 23:00:07 -07:00
Lokesh Dhakar
2b04a97f79 add: editorconfig 2019-04-27 22:59:45 -07:00
Lokesh Dhakar
f319e54b19 Add Cypress dep for testing 2019-04-27 20:52:10 -07:00
Lokesh Dhakar
105c888e73 Add node engine req to package.json 2019-04-27 20:51:13 -07:00
Lokesh Dhakar
9cf5e33ecd Add nvmrc file 2019-04-27 20:50:53 -07:00
Lokesh Dhakar
0951178b1b Merge pull request #136 from nbwsc/master
fix a bug in VBOX.contains
2019-04-22 21:04:15 -07:00
Lokesh Dhakar
4f0acc1759 Merge pull request #143 from ajmeese7/master
Implemented detectmobilebrowsers
2019-04-22 21:01:50 -07:00
Aaron Meese
d17bc0e65b Implemented detectmobilebrowsers
Replaced the previous isMobile() code with a functioning implementation of the website specified in the comments. This more complete list will allow for more accurate mobile detection.
2019-03-30 08:30:43 -05:00
Wangshichao
fedd83af85 fix a bug in VBOX.contains 2018-06-08 20:11:31 +08:00
Lokesh Dhakar
d05ec978b0 Merge pull request #81 from ibobo/master
Fixed getColor description in README
2016-11-06 18:36:35 -08:00
Lokesh Dhakar
b011513147 Merge pull request #57 from mhahmadi/mhahmadi_fix_getpalette_validation
fixes #56
2016-11-06 15:41:06 -08:00
Lokesh Dhakar
5d1b4d0dc6 Merge pull request #99 from ali-bugdayci/master
Fix the 'ReferenceError: index is not defined' for the index variable
2016-11-06 15:38:36 -08:00
Lokesh Dhakar
28f22b97d1 Merge pull request #103 from patrickkeenan/master
cross-domain and url
2016-11-06 15:35:24 -08:00
Lokesh Dhakar
e1908027bf JS listing rules. Not currently used 2016-10-30 20:24:05 -07:00
Lokesh Dhakar
65fc4c26b5 Cleaned up gruntfile and am considering js lint 2016-10-30 20:23:54 -07:00
Lokesh Dhakar
c9236b189d Add DEPLOY.md because I have a bad memory 2016-10-30 20:23:32 -07:00
Lokesh Dhakar
e3670978a9 Add @license directive for preserving comments w/uglify 2016-10-30 20:22:50 -07:00
Lokesh Dhakar
30f791290a readme 2016-10-30 20:21:29 -07:00
Lokesh Dhakar
af478eb09c Remove private boolean from package.json. Upgrade deps. 2016-10-30 20:21:15 -07:00
Patrick Keenan
be918bbaef cross-domain and url
getColorFromUrl gets color from an image served from the same domain,
so you don't have to create an image element to get the color.

getColorAsync gets the color from another domain that has an open
cross-domain policy.
2016-05-27 12:32:31 -07:00
Ali Bugdayci
f0e57ddebe Fix the 'ReferenceError: index is not defined' for the index variable 2016-04-20 14:00:24 +03:00
Lokesh Dhakar
de968be816 2.0.1: readme and version # 2015-10-05 08:35:57 -07:00
Lokesh Dhakar
36a3c4171e Remove CC License refs. MIT all-around. 2015-10-05 08:33:52 -07:00
iBobo
b0bde62d91 Fixed getColor description in README
The README erroneously stated that getColor would return a js object with 'r', 'g' and 'b' members, instead it returns an array just like getPalette.
2015-08-17 12:36:21 +02:00