-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (89 loc) · 3.83 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Colorpicker</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" type="image/x-icon" href="">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="node_modules/mocha/mocha.css"/>
</head>
<body>
<input type="text" class="NoColor">
<input type="text" id="ColorPicker" value="">
<!--<div class="DyeMe">HALLO</div>-->
<!--<div class="big">
<div class="no1"></div>
color
<div class="no1"></div><div class="no1"></div>
</div>-->
<script src="js/background.js"></script>
<div id="mocha"></div>
<script src="node_modules/mocha/mocha.js"></script>
<script>
//mocha.ui('bdd');
</script>
<script src="node_modules/expect/umd/expect.min.js"></script>
<script src="js/colorPicker.js"></script>
<script src="test/test.js"></script>
<script>
//var spy = new Spy();
//spy.registerSpy('ColorPicker');
//var mock = new Mock();
//ColorPicker.setGlobalStyle({
// '.containTheColor': {
// border: '7px solid green'
// }
//});
var color = new ColorPicker({
'append': '#ColorPicker', // {input[type=text]} !important
'view': '#ColorPicker', // {input[type=text]}
//'dye': '.big', // object class witch will be dyed. if undefined it is same as append
//'css': 'borderColor',
//'backgroundColor', // 'borderColor', 'color', 'backgroundColor'
'format': 'hex', // 'hex', 'RGB', 'Hsl', 'hSv' caps dosent matter
'standard': '0088f5', //{ // first value witch will be shown.
// h: 207, // note that this need to be hsv min.: 0, max.:360
// s: 1.0, // min.: 0 max.: 1.0
// v: 0.51 // min.: 0 max.: 1.0
//},
//'position': 'right', // 'bottom center/left/right', 'top center/left/right',
// 'bottom', 'top', 'left', 'right'
//left top // 'bottom' == 'bottom middle', 'top' == 'top middle'
//'margin': '1000 -30', // spacing between the input and the ColorPicker
customCss: {
'.containTheColor': {
border: '10px solid black'
},
'.crosshair': {
background: 'transparent center center url(data:image/png;base64,' + cross2 +') no-repeat scroll'
}
},
//defined: {
// data:[['#ffffff', '#000000'],['#ff0000','#00ff00','#0000ff'], ['#d4d6d8']],
// switch: false
//},
execute: function () {
console.log("exec");
},
//alwaysActive: true,
close: function () {
console.log("close");
},
open: function () {
console.log("open");
},
painter: false
});
//var color2 = new ColorPicker({
// 'append': '.NoColor'
//});
</script>
<script>
</script>
<!--<script> mocha.run();</script>-->
</body>
</html>