diff --git a/README.md b/README.md index dc315f2..bbb5097 100644 --- a/README.md +++ b/README.md @@ -9,26 +9,26 @@ See [huebee.buzz](http://huebee.buzz) for complete docs and demos. ### Download + CSS: - - [huebee.min.css](https://unpkg.com/huebee@1/dist/huebee.min.css) minified, or - - [huebee.css](https://unpkg.com/flickity@1/dist/huebee.css) un-minified + - [huebee.min.css](https://unpkg.com/huebee@2/dist/huebee.min.css) minified, or + - [huebee.css](https://unpkg.com/huebee@2/dist/huebee.css) un-minified + JavaScript: - - [huebee.pkgd.min.js](https://unpkg.com/huebee@1/dist/huebee.pkgd.min.js) minified, or - - [huebee.pkgd.js](https://unpkg.com/huebee@1/dist/huebee.pkgd.js) un-minified + - [huebee.pkgd.min.js](https://unpkg.com/huebee@2/dist/huebee.pkgd.min.js) minified, or + - [huebee.pkgd.js](https://unpkg.com/huebee@2/dist/huebee.pkgd.js) un-minified ### CDN Link directly to Huebee files on [unpkg](https://unpkg.com). ``` html - + - + ``` ``` html - + - + ``` ### Package managers @@ -37,18 +37,6 @@ Bower: `bower install huebee --save` npm: `npm install huebee --save` -## License - -### Commercial license - -If you want to use Huebee to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a Huebee Commercial License at [huebee.buzz](http://huebee.buzz/#commercial-license) - -### Open source license - -If you are creating an open source application under a license compatible with the [GNU GPL license v3](https://www.gnu.org/licenses/gpl-3.0.html), you may use Huebee under the terms of the GPLv3. - -[Read more about Huebee's license](http://huebee.buzz/license.html). - ## Usage Initialize Huebee on an anchor element. @@ -242,4 +230,6 @@ hueb.on( 'change', function( color, hue, sat, lum ) { --- -By [Metafizzy](http://metafizzy.co) +MIT License + +By [Metafizzy](https://metafizzy.co) diff --git a/dist/huebee.css b/dist/huebee.css index 358f7ee..99679c4 100644 --- a/dist/huebee.css +++ b/dist/huebee.css @@ -1,4 +1,4 @@ -/*! Huebee v1.0.1 +/*! Huebee v2.0.0 http://huebee.buzz ---------------------------------------------- */ diff --git a/dist/huebee.min.css b/dist/huebee.min.css index 1aae978..55edc15 100644 --- a/dist/huebee.min.css +++ b/dist/huebee.min.css @@ -1,4 +1,4 @@ -/*! Huebee v1.0.1 +/*! Huebee v2.0.0 http://huebee.buzz ---------------------------------------------- */ .huebee{position:absolute;z-index:1;transform:translateY(0);transition:opacity .15s,transform .15s}.huebee.is-hidden{opacity:0;transform:translateY(10px)}.huebee.is-static-open{position:relative;z-index:auto}.huebee__container{position:absolute;left:0;top:5px;padding:10px;background:#EEE;border-radius:5px;box-shadow:0 5px 10px hsla(0,0%,0%,.3)}.huebee.is-static-open .huebee__container{position:relative;display:inline-block;left:auto;top:auto;box-shadow:none}.huebee__canvas{display:block;cursor:pointer}.huebee__cursor{width:15px;height:15px;position:absolute;left:0;top:0;box-sizing:content-box;border:3px solid #fff;border-radius:5px;pointer-events:none}.huebee__cursor.is-hidden{opacity:0}.huebee__close-button{display:block;position:absolute;width:24px;height:24px;top:-9px;right:-9px;border-radius:12px;background:#222}.huebee__close-button__x{stroke:#fff;stroke-width:3;stroke-linecap:round}.huebee__close-button:hover{background:#fff;cursor:pointer}.huebee__close-button:hover .huebee__close-button__x{stroke:#222} \ No newline at end of file diff --git a/dist/huebee.pkgd.js b/dist/huebee.pkgd.js index 3c03e5e..4a4c3c9 100644 --- a/dist/huebee.pkgd.js +++ b/dist/huebee.pkgd.js @@ -1,12 +1,9 @@ /** - * Huebee PACKAGED v1.0.1 + * Huebee PACKAGED v2.0.0 * 1-click color picker - * - * Licensed GPLv3 for open source use - * or Huebee Commercial License for commercial use - * + * MIT license * http://huebee.buzz - * Copyright 2016 Metafizzy + * Copyright 2018 Metafizzy */ /** @@ -424,14 +421,11 @@ return Unipointer; })); /** - * Huebee v1.0.1 + * Huebee v2.0.0 * 1-click color picker - * - * Licensed GPLv3 for open source use - * or Huebee Commercial License for commercial use - * + * MIT license * http://huebee.buzz - * Copyright 2016 Metafizzy + * Copyright 2018 Metafizzy */ /*jshint browser: true, unused: true, undef: true */ diff --git a/dist/huebee.pkgd.min.js b/dist/huebee.pkgd.min.js index 47129df..af17b6a 100644 --- a/dist/huebee.pkgd.min.js +++ b/dist/huebee.pkgd.min.js @@ -1,12 +1,9 @@ /** - * Huebee PACKAGED v1.0.1 + * Huebee PACKAGED v2.0.0 * 1-click color picker - * - * Licensed GPLv3 for open source use - * or Huebee Commercial License for commercial use - * + * MIT license * http://huebee.buzz - * Copyright 2016 Metafizzy + * Copyright 2018 Metafizzy */ !function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return i.indexOf(e)==-1&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{},i=n[t]=n[t]||{};return i[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return i!=-1&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=0,o=n[i];e=e||[];for(var s=this._onceEvents&&this._onceEvents[t];o;){var r=s&&s[o];r&&(this.off(t,o),delete s[o]),o.apply(this,e),i+=r?0:1,o=n[i]}return this}},t}),function(t,e){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(n){return e(t,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.Unipointer=e(t,t.EvEmitter)}(window,function(t,e){function n(){}function i(){}var o=i.prototype=Object.create(e.prototype);o.bindStartEvent=function(t){this._bindStartEvent(t,!0)},o.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},o._bindStartEvent=function(e,n){n=void 0===n||!!n;var i=n?"addEventListener":"removeEventListener";t.navigator.pointerEnabled?e[i]("pointerdown",this):t.navigator.msPointerEnabled?e[i]("MSPointerDown",this):(e[i]("mousedown",this),e[i]("touchstart",this))},o.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},o.getTouch=function(t){for(var e=0;e.5;var o=this.colorGrid[e.toUpperCase()];this.updateCursor(o),this.setTexts(),this.setBackgrounds(),n||this.emitEvent("change",[e,t.hue,t.sat,t.lum])}},f.setTexts=function(){if(this.setTextElems)for(var t=0;t