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
b307eaeeae
commit
f5a68f147f
@ -1,4 +1,3 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@ -38,7 +37,7 @@ var CPNamespace = window;
|
||||
<!-- <script type="text/javascript" src="jsColorPicker.min.js"></script> -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var colors = jsColorPicker('input.color', {
|
||||
var colors = CPNamespace.jsColorPicker('input.color', {
|
||||
customBG: '#222',
|
||||
readOnly: true,
|
||||
// patch: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user