-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.html
107 lines (74 loc) · 2.45 KB
/
demo.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
101
102
103
104
105
106
107
<html>
<head>
<title>GradX</title>
<script src="lib/js/jquery.js"></script>
<!-- <script src="lib/js/jquery-ui.js"></script>
-->
<!-- <link type="text/css" rel="stylesheet" href="lib/css/jquery-ui.css" />-->
<link type="text/css" rel="stylesheet" href="gradX.css" />
<link type="text/css" rel="stylesheet" href="colorpicker/css/colorpicker.css" />
<script src="colorpicker/js/colorpicker.js"></script>
<script src="dom-drag.js"></script>
<script src="gradX.js"></script>
<style>
.targets {
margin:0 auto;
text-align: center;
border: 1px solid #ccc;
background: #f8f8f8;
margin: 0 auto;
border-radius: 4px;
width:auto;
padding:10px;
}
.target_text {
margin: 0px auto;
margin-top: 40%;
background: #f8f8f8;
width: 70px;
border: 1px solid #ddd;
padding: 2px;
border-radius: 2px;
color: #111;
}
.target {
border: 1px solid;
margin: 0px 10%;
width: 150px;
height: 150px;
display:inline-block;
}
#target {
border-radius: 150px;
}
.result {
text-align: center;
text-transform: uppercase;
font-weight: bold;
padding:12px;
padding-left: 15px;
margin: 10px 0px;
border: 1px solid #ddd;
background: #f8f8f8;
}
#gradX {
height: 200px;
margin: 100px 34%;
}
</style>
</head>
<body>
<!-- <input type='text' id="basic" value='red' /> -->
<div id="gradX" ></div>
<div class="result"> Result [Target elements]</div>
<div class="targets">
<div class="target" id="target"><div class="target_text">Target #1</div></div>
<div class="target" id="target2"><div class="target_text">Target #2</div></div>
</div>
<script>
gradX("#gradX", {
targets: [".target"]
});
</script>
</body>
</html>