-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (143 loc) · 3.28 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.line {
fill: none;
stroke: #458ffe;
stroke-width: 2px;
}
.zoom {
cursor: move;
fill: none;
pointer-events: all;
}
.gridlines line {
stroke-width: 1px;
stroke: #ddd;
}
.dataLabel {
font-family:sans-serif;
font-size:12px;
}
.annotationLine {
stroke: #8fbcff;
stroke-width: 1px;
stroke-dasharray: 6, 6;
}
svg {
background-color: white;
}
/* --------------- */
/* Checkbox styles */
body {
background: #e6e6e6;
}
.control-group {
display: inline-block;
width: 150px;
height: 260px;
margin: 0px;
padding: 20px;
text-align: left;
vertical-align: top;
background: #fff;
box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.control {
font-size: 14px;
font-family:sans-serif;
position: relative;
display: block;
margin-bottom: 15px;
padding-left: 25px;
cursor: pointer;
}
.control input {
position: absolute;
z-index: -1;
opacity: 0;
}
.control__indicator {
position: absolute;
top: 0px;
left: 0;
width: 16px;
height: 16px;
background: #e6e6e6;
}
/* Hover and focus states */
.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
background: #ccc;
}
/* Checked state */
.control input:checked ~ .control__indicator {
background: #6aa3f9;
}
/* Hover state whilst checked */
.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
background: #90bcff;
}
/* Disabled state */
.control input:disabled ~ .control__indicator {
pointer-events: none;
opacity: .6;
background: #e6e6e6;
}
/* Check mark */
.control__indicator:after {
position: absolute;
display: none;
content: '';
}
/* Show check mark */
.control input:checked ~ .control__indicator:after {
display: block;
}
/* Checkbox tick */
.control--checkbox .control__indicator:after {
top: 2px;
left: 6px;
width: 3px;
height: 8px;
transform: rotate(45deg);
border: solid #fff;
border-width: 0 2px 2px 0;
}
/* Disabled tick colour */
.control--checkbox input:disabled ~ .control__indicator:after {
border-color: #7b7b7b;
}
</style>
<div class="control-group">
<!-- https://kyusuf.com/post/completely-css-custom-checkbox-radio-buttons-and-select-boxes -->
<label class="control control--checkbox">Show Labels
<input type="checkbox" checked="checked" onclick="onclick_toggleLabels(this)"/>
<div class="control__indicator"></div>
</label>
<label class="control control--checkbox">Clip Series
<input type="checkbox" onclick="onclick_toggleClipView(this)"/>
<div class="control__indicator"></div>
</label>
<!-- <label class="control control--checkbox">Disabled
<input type="checkbox" disabled="disabled"/>
<div class="control__indicator"></div>
</label> -->
<label>Upper Guideline
<input id="upper-annotation" type="number" min="0" max="1000" step="1" value="100" oninput="oninput_upperAnnotation(this)"/>
<div ></div>
</label>
<label>Lower Guideline
<input id="lower-annotation" type="number" min="0" max="1000" step="1" value="60" oninput="oninput_lowerAnnotation(this)"/>
<div ></div>
</label>
</div>
<body>
<!-- load the d3.js library -->
<script src="d3.js"></script>
<script src="d3-peaks.js"></script>
<script src="dataGen.js"></script>
<script src="main.js"></script>
<script src="http://localhost:35729/livereload.js"></script>
</body>