-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (194 loc) · 7.8 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<!--* Created by Carlos Maranje.-->
<!--* User: Carlos Maranje-->
<!--* Date: 12/13/2018-->
<!--* Time: 9:13 PM-->
<head>
<title>Nanorings simulator</title>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="drawer.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<h1>Nanorings</h1>
<div id="canvas-container">
<div id="scale-tooltip">
<div id="input-scale-value">
<span id="scale-length-display">0</span>
</div>
<!-- <div id="autoscale-micelle">-->
<!-- <label for="scale-micelle">Scale micelle</label>-->
<!-- <input type="checkbox" id="scale-micelle">-->
<!-- </div>-->
</div>
<canvas id="background-canvas" class="canvas" width="600" height="600"></canvas>
<canvas id="nanoanillo" class="canvas" width="600" height="600"></canvas>
</div>
<section id="controles">
<div id="controles-container">
<label for="radiusNP" class="label">Nanoparticle diameter</label>
<input type="number" step="1" min="1" value="50" id="radiusNP" class="radio number-input">
<label for="radiusMicelle" class="label">Micelle diameter</label>
<input type="number" step="1" min="1" value="200" id="radiusMicelle" class="radio number-input">
<label for="cantNP" class="label">Amount of nanoparticles</label>
<input id="cantNP" class="range" type="range" min="3" max="200" value="2" step="1">
<label for="zoom" class="label">Zoom</label>
<input id="zoom" class="range" type="range" min="0.1" max="10" value="1" step="any">
<label for="espacio" class="label">Ligand length (nm)</label>
<input id="espacio" class="range" type="range" min="0" max="10" value="0" step="0.1">
<input type="hidden" id="lastActive" value="radiusNP">
</div>
<div id="display-info">
<table id="tabla-info" cellpadding="10">
<tr class="fila">
<td>NP diameter</td>
<td id="display-radio-np"></td>
</tr>
<tr class="fila">
<td>Micelle diameter</td>
<td id="display-radio-micela"></td>
</tr>
<tr class="fila">
<td>NP amount</td>
<td id="display-cant"></td>
</tr>
<tr class="fila">
<td>Ligand</td>
<td id="display-recubrimiento"></td>
</tr>
<tr class="fila">
<td>Interparticle distance</td>
<td id="display-espacio"></td>
</tr>
<tr class="fila">
<td>Zoom</td>
<td id="display-zoom"></td>
</tr>
</table>
<div id="div-reset">
<button id="insertar-escala" class="tab-button float-left">Scale bar</button>
<button id="reset-coords" class="tab-button float-left">Recenter</button>
<button id="reset-canvas" class="tab-button float-left">Reset</button>
</div>
<div id="temporary-actions">
<div id="set-scale-container" class="hidden">
<input type="number" id="scale-value" value="50" step="1" min="1" class="number-input">
<button id="set-scale-button" class="tab-button">Set scale</button>
<input type="hidden" id="scale-equivalence" data-pixels="0" data-nm="0">
</div>
</div>
</div>
<div id="load-image">
<div>
<button id="cargar-imagen">Load image</button>
</div>
<input type="file" id="image-file">
</div>
<div id="personalization-layer">
<div id="color-controls">
<div id="personalization-tabs">
<ul id="tabs-list">
<li class="tab" data-info="np">
<button class="tab-button" disabled>
Nanoparticles
</button>
</li>
<li class="tab" data-info="micela">
<button class="tab-button" disabled>
Micelle
</button>
</li>
<li class="tab" data-info="otros">
<button class="tab-button" disabled>
Scale bar
</button>
</li>
<li class="tab" data-info="otros">
<button class="tab-button" disabled>
General
</button>
</li>
</ul>
</div>
<div class="personalization-content" data-content="nanoparticulas">
<table class="personalization-table">
<tr>
<td>Border</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Background</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Font color</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Font size</td>
<td><input type="range" min="8" max="32" value="14" disabled></td>
<td>
<input type="checkbox" id="auto-size" disabled>
<label for="auto-size">Auto</label>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
<div class="personalization-content" data-content="nanoparticulas" style="display: none">
<table class="personalization-table">
<tr>
<td>Border</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Background</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Font color</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Font size</td>
<td><input type="range" min="8" max="32" value="14"></td>
<td>
<input type="checkbox" id="auto-size-micelle" disabled>
<label for="auto-size">Auto</label>
</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
<div class="personalization-content" data-content="nanoparticulas" style="display: none">
<table class="personalization-table">
<tr>
<td>Border</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Background</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td>Font color</td>
<td><input type="color" disabled></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
</div>
<input type="hidden" id="xDrag" value="0">
<input type="hidden" id="yDrag" value="0">
</section>
</body>