diff --git a/README.md b/README.md index 0d30dcb..9f78b8a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ $('.color').colorPicker({ opacity: true, // enable / disable alpha slider renderCallback: function($elm, toggled) {}, // this === instance; $elm: the input field;toggle === true -> just appeared; false -> opposite; else -> is rendering on pointer move // toggled true/false can for example be used to check if the $elm has a certain className and then hide alpha,... - buidCallback: function($elm) {}, // this === instance; $elm: the UI + buildCallback: function($elm) {}, // this === instance; $elm: the UI css: '', // replaces existing css cssAddon: '', // adds css to existing margin: '', // positioning margin (can also be set in cssAddon) diff --git a/index.html b/index.html index 2c3b061..d678799 100644 --- a/index.html +++ b/index.html @@ -63,7 +63,7 @@ As Tiny jQuery colorPicker uses window.myColorPicker = $('input.color').colorPicker({ - buidCallback: function($elm) { + buildCallback: function($elm) { $elm.prepend('<div class="cp-disp"></div>'); }, cssAddon: @@ -95,9 +95,9 @@ window.myColorPicker = $('input.color').colorPicker({ - - - + + +