mirror of
https://github.com/PitPik/colorPicker.git
synced 2025-09-24 16:40:57 -06:00
Add namespace
Add a namespace to allow storing the colorpicker into "namespace" instead "window".
This commit is contained in:
parent
b09e9c9b3c
commit
f075a98153
@ -26,6 +26,9 @@ Calling the colorPicker on all inputs with the calssName 'color': <pre>$('input.
|
||||
<input class="color" value="hsl(32, 95%, 23%)" />
|
||||
</p>
|
||||
<!-- <button onclick="$colors.colorPicker('destroy')">destroy</button> -->
|
||||
<script type="text/javascript">
|
||||
var CPNamespace = window;
|
||||
</script>
|
||||
<script type="text/javascript" src="../colors.js"></script>
|
||||
<script type="text/javascript" src="../colorPicker.data.js"></script>
|
||||
<script type="text/javascript" src="../colorPicker.js"></script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user