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:21:42 +01:00 committed by GitHub
parent ce71a287bf
commit b09e9c9b3c

View File

@ -1,3 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
@ -23,6 +24,9 @@ Calling the colorPicker on all inputs with the calssName 'color': <pre>jsColorPi
<input class="color" value="hsla(32, 95%, 23%, 0.9)" />
</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>