-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
287 lines (264 loc) · 15.2 KB
/
index.html
File metadata and controls
287 lines (264 loc) · 15.2 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
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>CellSplit | Host Cell</title>
<!-- PWA / mobile -->
<meta name="theme-color" content="#f2f2f7" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="CellSplit" />
<link rel="manifest" href="./manifest.json" />
<link rel="icon" type="image/png" href="./icon-192.png" />
<link rel="apple-touch-icon" href="./icon-192.png" />
<link rel="stylesheet" href="./src/css/app.css" />
</head>
<body>
<!-- NAV -->
<header class="nav" aria-label="CellSplit navigation">
<!-- Row 1: Brand + Host Cell -->
<div class="nav-row nav-row-brand">
<div class="brand">
<img src="./icon-192.png" alt="CellSplit" class="app-icon" />
<div class="brand-text">
<h1 class="app-title">CellSplit</h1>
<div class="app-subtitle">Count, calculate, passage</div>
</div>
</div>
<a class="hc-suite-pill" href="https://www.hostcell.app" target="_blank" rel="noopener noreferrer" aria-label="Host Cell Lab Suite">
<span class="hc-suite-label">Host Cell</span>
</a>
</div>
<!-- Row 2: Tools -->
<div class="nav-row nav-row-tools">
<div class="seg" aria-label="Language selector">
<button id="lang-es" type="button" aria-selected="true">ES</button>
<button id="lang-en" type="button" aria-selected="false">EN</button>
</div>
<button class="btn-info-badge" id="btn-info" type="button" aria-label="Info">!</button>
<button class="btn btn-danger" id="btn-clear" type="button" aria-label="Clear">
<svg class="icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path d="M3 6h18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
<path d="M8 6V4h8v2" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
<path d="M7 6l1 15h8l1-15" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/>
</svg>
</button>
<button class="btn btn-install" id="install-btn" type="button" hidden aria-label="Install app">
<svg class="icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path d="M12 3v10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
<path d="M8 11l4 4 4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M4 20h16" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
<span data-i18n="btnInstall">Instalar</span>
</button>
</div>
</header>
<div class="container">
<!-- iOS install banner -->
<div class="ios-install-banner" id="ios-install-banner" role="note">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 3v10M8 11l4 4 4-4M4 20h16"/>
</svg>
<span data-i18n="ios_install_hint">Para instalar: toca <strong>Compartir</strong> → <strong>Añadir al inicio</strong></span>
<button class="btn btn-ghost" id="btn-ios-dismiss" type="button" style="margin-left:auto;padding:4px 10px;font-size:0.80rem;" aria-label="Cerrar">✕</button>
</div>
<!-- Module tiles -->
<div class="tiles" aria-label="Modules overview">
<button class="tile active" type="button" id="tile-count" data-module="count" aria-label="Conteo">
<div class="tile-badge mono" data-i18n="tile1N">01</div>
<div style="min-width:0;">
<p class="tile-title" data-i18n="tile1T">Conteo de células</p>
<p class="tile-sub">Neubauer · viable conc</p>
</div>
</button>
<button class="tile" type="button" id="tile-passage" data-module="passage" aria-label="Pase">
<div class="tile-badge mono" data-i18n="tile2N">02</div>
<div style="min-width:0;">
<p class="tile-title" data-i18n="tile2T">Pase / Inóculo</p>
<p class="tile-sub">C1V1 = C2V2</p>
</div>
</button>
</div>
<main>
<!-- PANEL: Count -->
<section class="panel active card" id="card-count" role="region" aria-label="Conteo">
<div class="card-header">
<div>
<h2 class="card-h" data-i18n="card1Title">01. Conteo de células</h2>
<p class="card-desc">
<span data-i18n="card1Hint">Neubauer 0.1 mm · concentración viable (x10⁶ <span class="mono">cell/mL</span>)</span>
<button class="info-btn" id="btn-neubauer-info" type="button" aria-label="Neubauer chamber info" aria-expanded="false">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="2.2"/>
<path d="M12 10.5v6" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/>
<circle cx="12" cy="7" r="1.3" fill="currentColor"/>
</svg>
</button>
</p>
<div class="neubauer-detail" id="neubauer-detail" hidden>
<p data-i18n="neubauerDetail">9 cuadrantes grandes de 1 mm² cada uno.</p>
</div>
</div>
<div>
<span class="pill mono">Count</span>
</div>
</div>
<div class="form" role="form" aria-label="Cell count form">
<div class="grid-2">
<div class="field-group">
<label for="inpVivas" data-i18n="lblLive">Vivas</label>
<input type="number" id="inpVivas" placeholder="0" min="0" step="1" inputmode="numeric" />
</div>
<div class="field-group">
<label for="inpMuertas" data-i18n="lblDead">Muertas</label>
<input type="number" id="inpMuertas" placeholder="0" min="0" step="1" inputmode="numeric" />
</div>
</div>
<div class="grid-2">
<div class="field-group">
<label data-i18n="lblSquares">Cuadrantes</label>
<div class="picker" id="pickerCuadrantes">
<button class="picker-opt active" type="button" data-value="10">10</button>
<button class="picker-opt" type="button" data-value="5">5</button>
<button class="picker-opt" type="button" data-value="custom" data-i18n="lblCustom">Otro</button>
</div>
<input type="number" id="inpCuadrantesCustom" class="picker-custom" hidden min="1" max="10" step="1" inputmode="numeric" placeholder="1 – 10" />
<input type="hidden" id="inpCuadrantes" value="10" />
<div class="hint" data-i18n="hintSquares">10 = 8 esquinas + 2 centrales (común)</div>
</div>
<div class="field-group">
<label data-i18n="lblDilution">Dilución</label>
<div class="picker" id="pickerDilucion">
<button class="picker-opt active" type="button" data-value="2">2</button>
<button class="picker-opt" type="button" data-value="5">5</button>
<button class="picker-opt" type="button" data-value="10">10</button>
<button class="picker-opt" type="button" data-value="20">20</button>
<button class="picker-opt" type="button" data-value="40">40</button>
<button class="picker-opt" type="button" data-value="custom" data-i18n="lblCustom">Otro</button>
</div>
<input type="number" id="inpDilucion" class="picker-custom" hidden value="2" min="1" max="200" step="1" inputmode="numeric" placeholder="1 – 200" />
<div class="hint" data-i18n="hintDilution">Ej.: 2 para 1:1 con Azul de Tripano</div>
</div>
</div>
<button class="btn btn-primary btn-block" id="btn-calc-count" type="button" data-i18n="btnCalc1">Analizar Conteo</button>
<div class="result" id="boxResConteo" aria-live="polite">
<div class="result-head">
<p class="result-title" data-i18n="resTitle">Resultados</p>
<span class="pill mono">x10⁶ cell/mL</span>
</div>
<ul class="result-list">
<li class="row">
<div class="k" data-i18n="resViableConc">Concentración Viable (x10⁶ <span class="mono">cell/mL</span>)</div>
<div class="v mono" id="outConc">---</div>
</li>
<li class="row">
<div class="k" data-i18n="resViability">Viabilidad</div>
<div class="v mono" id="outViability">---</div>
</li>
<li class="row">
<div class="k" data-i18n="statusDefault">Diagnóstico</div>
<div class="v"><span id="outStatus" class="badge" data-i18n="statusDefault">Diagnóstico</span></div>
</li>
</ul>
</div>
</div>
</section>
<!-- PANEL: Passage -->
<section class="panel card" id="card-passage" role="region" aria-label="Pase">
<div class="card-header">
<div>
<h2 class="card-h" data-i18n="card2Title">02. Pase</h2>
<p class="card-desc" data-i18n="card2Hint">C1V1 = C2V2 · cálculo de inóculo</p>
</div>
<div>
<span class="pill mono">Passage</span>
</div>
</div>
<div class="form" role="form" aria-label="Passage form">
<div class="grid-2">
<div class="field-group">
<label for="inpC1" data-i18n="lblCurrentC">Conc. Actual (x10⁶ <span class="mono">cell/mL</span>)</label>
<input type="number" id="inpC1" placeholder="" min="0.0001" step="any" inputmode="decimal" data-i18n-placeholder="placeholderC1" />
<div class="hint">Se llena automáticamente al calcular el conteo.</div>
</div>
<div class="field-group">
<label data-i18n="lblTargetV">Vol. Meta (<span class="mono">mL</span>)</label>
<div class="picker" id="pickerV2">
<button class="picker-opt" type="button" data-value="10">10</button>
<button class="picker-opt active" type="button" data-value="25">25</button>
<button class="picker-opt" type="button" data-value="50">50</button>
<button class="picker-opt" type="button" data-value="custom" data-i18n="lblCustom">Otro</button>
</div>
<input type="number" id="inpV2" class="picker-custom" hidden value="25" min="1" max="10000000" step="any" inputmode="decimal" placeholder="0 – 10,000,000" />
</div>
</div>
<div class="field-group">
<label for="inpC2" data-i18n="lblTargetC">Conc. Meta (x10⁶)</label>
<input type="number" id="inpC2" value="0.3" min="0.0001" step="any" inputmode="decimal" />
</div>
<button class="btn btn-primary btn-block" id="btn-calc-passage" type="button" data-i18n="btnCalc2">Calcular Pase</button>
<div class="result" id="boxResInoculo" aria-live="polite">
<div class="result-head">
<p class="result-title" data-i18n="resTitle">Resultados</p>
<span class="pill mono">mL</span>
</div>
<ul class="result-list">
<li class="row">
<div class="k" data-i18n="resInoculum">Volumen Inóculo</div>
<div class="v mono"><span id="outV1">---</span> mL</div>
</li>
<li class="row">
<div class="k" data-i18n="resFreshMedium">Volumen de medio fresco</div>
<div class="v mono"><span id="outFreshMedium">---</span> mL</div>
</li>
</ul>
</div>
</div>
</section>
</main>
<footer class="hc-footer">
<div class="hc-footer-inner">
<div class="hc-footer-suite">
<span class="hc-footer-name">Host Cell Lab Suite</span>
<span class="hc-footer-slogan">Practical tools for high-performance biotechnology</span>
</div>
<span class="hc-footer-author">© Emiliano Balderas Ramírez</span>
<a href="https://github.com/ebalderasr/CellSplit" target="_blank" rel="noopener noreferrer" class="hc-footer-github">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M12 2C6.477 2 2 6.477 2 12c0 4.418 2.865 8.166 6.839 9.489.5.09.682-.217.682-.482 0-.237-.009-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12c0-5.523-4.477-10-10-10z"/></svg>
GitHub
</a>
</div>
</footer>
</div>
<!-- Info sheet -->
<div class="sheet-backdrop" id="sheet-backdrop" role="dialog" aria-modal="true" aria-labelledby="sheet-title" aria-hidden="true">
<div class="sheet" role="document" id="info-sheet">
<div class="sheet-handle" aria-hidden="true"></div>
<div class="sheet-header">
<h3 class="sheet-title" id="sheet-title" data-i18n="infoTitle">Scientific fundamentals</h3>
<button class="btn btn-ghost" id="sheet-close" type="button" data-i18n="btnClose">
<span>Cerrar</span>
</button>
</div>
<div class="sheet-body">
<div class="section">
<h4 data-i18n="infoFund">Fundamentos</h4>
<p data-i18n="infoFundP">La concentración viable se calcula a partir del conteo en cámara de Neubauer (profundidad 0.1 mm) y el factor de dilución.</p>
<div class="formula mono" data-i18n="infoEq1">Viable (x10⁶ cell/mL) = (Vivas / Cuadrantes) × Dilución × 0.01</div>
<div class="formula mono" data-i18n="infoEq2">Viabilidad (%) = Vivas / (Vivas + Muertas) × 100</div>
<p style="margin-top:10px;" data-i18n="infoTipsP">El diagnóstico es una guía práctica basada en el total de eventos contados: muy bajo (ruido), muy alto (saturación) o óptimo.</p>
</div>
<div class="section">
<h4 data-i18n="infoEquip">Pase / Inóculo</h4>
<p data-i18n="infoEquipP">Para planear el pase se asume mezcla ideal: C1V1 = C2V2. La app calcula V1 (inóculo) y el volumen de medio fresco requerido.</p>
<div class="formula mono" data-i18n="infoEq3">V1 = (C2 × V2) / C1</div>
</div>
</div>
</div>
</div>
<script src="./src/js/i18n.js"></script>
<script src="./src/js/app.js"></script>
</body>
</html>