Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update .eslintrc
  • Loading branch information
simonwep committed Dec 5, 2020
1 parent 76e871d commit 2f2f56d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
},
"rules": {
"new-cap": "off"
},
"globals": {
"VERSION": true
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ Since version `0.4.x` Pickr is event-driven. Use the `on(event, cb)` and `off(ev
| `show` | Pickr got opened | `PickrInstance` |
| `save` | User clicked the save / clear button. Also fired on clear with `null` as color. | `HSVaColorObject or null, PickrInstance` |
| `clear` | User cleared the color. | `PickrInstance` |
| `change` | Color has changed (but not saved). Also fired on `swatchselect` | `HSVaColorObject, PickrInstance` |
| `changestop` | User stopped to change the color | ` PickrInstance` |
| `change` | Color has changed (but not saved). Also fired on `swatchselect` | `HSVaColorObject, eventSource, PickrInstance` |
| `changestop` | User stopped to change the color | `eventSource, PickrInstance` |
| `cancel` | User clicked the cancel button (return to previous color). | `PickrInstance` |
| `swatchselect` | User clicked one of the swatches | `HSVaColorObject, PickrInstance` |

Expand Down Expand Up @@ -401,7 +401,7 @@ As default color representation is hsva (`hue`, `saturation`, `value` and `alpha
* hsva.toCMYK() _- Converts the object to a cmyk array._
* hsva.clone() _- Clones the color object._

The `toString()` is overridden so you can get a color representation string.
The `toString()` is overridden, so you can get a color representation string.

```javascript
hsva.toRGBA(); // Returns [r, g, b, a]
Expand Down
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ <h1>Pickr. Keep it simple.</h1>
<p>(Tap it)</p>
</main>

<iframe id="inlineFrameExample"

This comment has been minimized.

Copy link
@viocassel

viocassel Dec 7, 2020

What is this for..? 🤔

This comment has been minimized.

Copy link
@simonwep

simonwep Dec 8, 2020

Author Owner

Oh this was committed by accident, I removed it.

title="Inline Frame Example"
src="https://www.openstreetmap.org/export/embed.html?bbox=-0.004017949104309083%2C51.47612752641776%2C0.00030577182769775396%2C51.478569861898606&layer=mapnik">
</iframe>

<script src="dist/pickr.es5.min.js"></script>
<script src="st/script.js"></script>
</body>
Expand Down

0 comments on commit 2f2f56d

Please sign in to comment.