Sanjana Vekhande commited on
Commit Β·
5122888
1
Parent(s): 75627d2
simplify upload UI: remove numbered boxes, generic drop text, remove file format hints, fix col-label font size
Browse files- frontend/index.html +7 -10
frontend/index.html
CHANGED
|
@@ -464,16 +464,15 @@ input[type="range"]::-webkit-slider-thumb {
|
|
| 464 |
<!-- Top-right: Step 1 -->
|
| 465 |
<div class="col-card">
|
| 466 |
<div class="col-label">Step 1</div>
|
| 467 |
-
<div class="step-num" id="num1">1</div>
|
| 468 |
<div class="step-title">Prefixed model files</div>
|
| 469 |
<div class="step-desc">One .xlsx per species β output from Step 4 of the Metabolic Community Pipeline.</div>
|
| 470 |
<div class="drop-zone" id="dropModel">
|
| 471 |
<input type="file" id="fileModel" accept=".xlsx" multiple onchange="handleFiles('model', this.files)"/>
|
| 472 |
<span class="drop-icon">π</span>
|
| 473 |
<div class="drop-text">
|
| 474 |
-
<strong>Drop
|
| 475 |
or click to browse
|
| 476 |
-
|
| 477 |
</div>
|
| 478 |
</div>
|
| 479 |
<div class="file-chips" id="chipsModel"></div>
|
|
@@ -483,16 +482,15 @@ input[type="range"]::-webkit-slider-thumb {
|
|
| 483 |
<!-- Bottom-left: Step 2 -->
|
| 484 |
<div class="col-card">
|
| 485 |
<div class="col-label">Step 2</div>
|
| 486 |
-
<div class="step-num" id="num2">2</div>
|
| 487 |
<div class="step-title">Identifier mapping files</div>
|
| 488 |
<div class="step-desc">One .xlsx per species, in the same order as model files β output from Step 3 of the Pipeline.</div>
|
| 489 |
<div class="drop-zone" id="dropMapping">
|
| 490 |
<input type="file" id="fileMapping" accept=".xlsx" multiple onchange="handleFiles('mapping', this.files)"/>
|
| 491 |
<span class="drop-icon">π</span>
|
| 492 |
<div class="drop-text">
|
| 493 |
-
<strong>Drop
|
| 494 |
or click to browse
|
| 495 |
-
|
| 496 |
</div>
|
| 497 |
</div>
|
| 498 |
<div class="file-chips" id="chipsMapping"></div>
|
|
@@ -503,16 +501,15 @@ input[type="range"]::-webkit-slider-thumb {
|
|
| 503 |
<!-- Bottom-right: Step 3 -->
|
| 504 |
<div class="col-card">
|
| 505 |
<div class="col-label">Step 3</div>
|
| 506 |
-
<div class="step-num" id="num3">3</div>
|
| 507 |
<div class="step-title">Combined gene expression CSV</div>
|
| 508 |
<div class="step-desc">Normalised gene expression counts for all species and samples from your metatranscriptomics data.</div>
|
| 509 |
<div class="drop-zone" id="dropExpr">
|
| 510 |
<input type="file" id="fileExpr" accept=".csv" onchange="handleFiles('expr', this.files)"/>
|
| 511 |
<span class="drop-icon">π</span>
|
| 512 |
<div class="drop-text">
|
| 513 |
-
<strong>Drop
|
| 514 |
or click to browse
|
| 515 |
-
|
| 516 |
</div>
|
| 517 |
</div>
|
| 518 |
<div class="file-chips" id="chipsExpr"></div>
|
|
@@ -601,7 +598,7 @@ function handleFiles(type, files) {
|
|
| 601 |
const num = { model: 'num1', mapping: 'num2', expr: 'num3' }[type];
|
| 602 |
document.getElementById(key).innerHTML =
|
| 603 |
state[type].map(f => `<div class="chip">β ${f.name} <span style="cursor:pointer;margin-left:3px" onclick="removeFile('${type}','${f.name}')">Γ</span></div>`).join('');
|
| 604 |
-
document.getElementById(num).classList.add('done');
|
| 605 |
checkPrefixMatch();
|
| 606 |
}
|
| 607 |
|
|
|
|
| 464 |
<!-- Top-right: Step 1 -->
|
| 465 |
<div class="col-card">
|
| 466 |
<div class="col-label">Step 1</div>
|
|
|
|
| 467 |
<div class="step-title">Prefixed model files</div>
|
| 468 |
<div class="step-desc">One .xlsx per species β output from Step 4 of the Metabolic Community Pipeline.</div>
|
| 469 |
<div class="drop-zone" id="dropModel">
|
| 470 |
<input type="file" id="fileModel" accept=".xlsx" multiple onchange="handleFiles('model', this.files)"/>
|
| 471 |
<span class="drop-icon">π</span>
|
| 472 |
<div class="drop-text">
|
| 473 |
+
<strong>Drop file here</strong>
|
| 474 |
or click to browse
|
| 475 |
+
|
| 476 |
</div>
|
| 477 |
</div>
|
| 478 |
<div class="file-chips" id="chipsModel"></div>
|
|
|
|
| 482 |
<!-- Bottom-left: Step 2 -->
|
| 483 |
<div class="col-card">
|
| 484 |
<div class="col-label">Step 2</div>
|
|
|
|
| 485 |
<div class="step-title">Identifier mapping files</div>
|
| 486 |
<div class="step-desc">One .xlsx per species, in the same order as model files β output from Step 3 of the Pipeline.</div>
|
| 487 |
<div class="drop-zone" id="dropMapping">
|
| 488 |
<input type="file" id="fileMapping" accept=".xlsx" multiple onchange="handleFiles('mapping', this.files)"/>
|
| 489 |
<span class="drop-icon">π</span>
|
| 490 |
<div class="drop-text">
|
| 491 |
+
<strong>Drop file here</strong>
|
| 492 |
or click to browse
|
| 493 |
+
|
| 494 |
</div>
|
| 495 |
</div>
|
| 496 |
<div class="file-chips" id="chipsMapping"></div>
|
|
|
|
| 501 |
<!-- Bottom-right: Step 3 -->
|
| 502 |
<div class="col-card">
|
| 503 |
<div class="col-label">Step 3</div>
|
|
|
|
| 504 |
<div class="step-title">Combined gene expression CSV</div>
|
| 505 |
<div class="step-desc">Normalised gene expression counts for all species and samples from your metatranscriptomics data.</div>
|
| 506 |
<div class="drop-zone" id="dropExpr">
|
| 507 |
<input type="file" id="fileExpr" accept=".csv" onchange="handleFiles('expr', this.files)"/>
|
| 508 |
<span class="drop-icon">π</span>
|
| 509 |
<div class="drop-text">
|
| 510 |
+
<strong>Drop file here</strong>
|
| 511 |
or click to browse
|
| 512 |
+
|
| 513 |
</div>
|
| 514 |
</div>
|
| 515 |
<div class="file-chips" id="chipsExpr"></div>
|
|
|
|
| 598 |
const num = { model: 'num1', mapping: 'num2', expr: 'num3' }[type];
|
| 599 |
document.getElementById(key).innerHTML =
|
| 600 |
state[type].map(f => `<div class="chip">β ${f.name} <span style="cursor:pointer;margin-left:3px" onclick="removeFile('${type}','${f.name}')">Γ</span></div>`).join('');
|
| 601 |
+
const el = document.getElementById(num); if (el) el.classList.add('done');
|
| 602 |
checkPrefixMatch();
|
| 603 |
}
|
| 604 |
|