Commit Graph

10 Commits

Author SHA1 Message Date
Lokesh Dhakar
8236c9d71f refactor: Move validation logic to core 2019-07-21 22:58:43 -07:00
Lokesh Dhakar
c91f3e808e feat: Add module support with new dist files
- `/dist/color-thief.umd.js`: UMD module. For simple script tag loading that exposes a global variable or for RequireJS AMD support.
- `/dist/color-thief.js`: CommonJS module. Entry point for Node.js and Browserify.
- `/dist/color-thief.mjs`: ES6 module. For modern browsers as well as Webpack and Rollup.
- `/dist/color-thief.min.js`: Duplicate of `/dist/color-thief.umd.js`. Kept around to maintain backwards compatibility.
2019-07-14 20:00:27 -07:00
Lokesh Dhakar
b41cd65747 feat: Add demo page back index.html 2019-07-14 09:19:41 -07:00
Lokesh Dhakar
b61e6406a1 refactor: Remove console log from demo js 2019-05-26 20:30:33 -07:00
Lokesh Dhakar
eef8742c0b docs: Add palette count calls to example page 2019-05-02 08:43:05 -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
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
Lokesh Dhakar
9cbad46067 Reorganize files for Bower distro 2014-04-17 11:07:23 -07:00