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
ce71a287bf
commit
b09e9c9b3c
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user