2
0
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:
Ruben Almeida 2017-01-26 21:22:41 +01:00 committed by GitHub
parent b09e9c9b3c
commit f075a98153

View File

@ -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>