-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsamples.html
More file actions
118 lines (82 loc) · 2.64 KB
/
samples.html
File metadata and controls
118 lines (82 loc) · 2.64 KB
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
108
109
110
111
112
113
114
115
116
117
118
<!doctype html>
<meta charset="UTF-8">
<html>
<head>
<title>Sandbox page</title>
<!-- Include jQuery... -->
<!-- old jquery....
<script src="http://127.0.0.1:3012/jquery-1.11.1.js"></script>
-->
<!-- Include jColor is this colour picker... -->
<!-- should be purchased from envatomarket -->
<!-- see https://0.s3.envato.com/files/144700183/index.html for usage documentation -->
<!-- also, https://codecanyon.net/item/jcolor-a-jquery-color-picker/10688026 -->
<link rel="stylesheet" type="text/css" href="include/jcolor.min.css">
<script src="include/jquery2.1.1.js"></script>
<script src="include/jcolor.min.js"></script>
<!-- Herewith include the great *D3* library -->
<script src="include/d3/d3.min.js"></script>
<script src="include/jquery-ui.js"></script>
<link rel="stylesheet" href="include/jquery-ui.css" />
<!-- https://bgrins.github.io/spectrum/ -->
<script src="include/bgrins-spectrum-98454b5/spectrum.js"></script>
<link rel="stylesheet" href="include/bgrins-spectrum-98454b5/spectrum.css" />
<!-- CODE for the D3 bar-chart -->
<!-- CODE for the D3 bar-chart -->
<style type="text/css">
div.bar {
display: inline-block;
width: 20px;
height: 75px;/* Gets overriden by D3-assigned height below */
margin-right: 2px;
background-color: teal;
}
</style>
<!-- CODE for the D3 bar-chart -->
</head>
<body>
<div id="d3-demo-area">
D3 demonstration area...
<div style="border: 1px solid red;">lala</div>
</div>
<!-- CODE for the D3 bar-chart -->
<!-- CODE for the D3 bar-chart -->
<script type="text/javascript">
var dataset = [ 5, 10, 15, 20, 25 ];
function do_d3(){
d3.select("#d3-demo-area").selectAll("div")
.data(dataset)
.enter()
.append("div")
.attr("class", "bar")
.style("height", function(d) {
var barHeight = d * 5;
return barHeight + "px";
});
}
$( function() {
$( "#slider" ).slider();
} );
</script>
</script>
<!-- CODE for the D3 bar-chart -->
Test space for widgets etc...2
<br>
<div class="my-color-picker">huh</div>
<script type="text/javascript">
$('.my-color-picker').colorpicker();
console.log("hmm");
</script>
<input id='colorpicker' />
<script>
$("#colorpicker").spectrum({
color: "#f00"
});
</script>
<input type='color' name='color' />
<br>
Slider div next...
<div id="slider"></div>
<a href="/index.html">Link to Main Page</a>
</body>
</html>