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-27 00:16:07 +01:00 committed by GitHub
parent b307eaeeae
commit f5a68f147f

View File

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