Spaces:
Sleeping
Sleeping
Update static/script.js
Browse files- static/script.js +4 -3
static/script.js
CHANGED
|
@@ -31,9 +31,6 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 31 |
const panelSeq = document.getElementById("panel-seq");
|
| 32 |
const panelFasta = document.getElementById("panel-fasta");
|
| 33 |
const downloadBtn = document.getElementById("downloadCsvBtn");
|
| 34 |
-
if (downloadBtn) {
|
| 35 |
-
downloadBtn.addEventListener("click", downloadCSV);
|
| 36 |
-
});
|
| 37 |
|
| 38 |
if (tabSeq && tabFasta && panelSeq && panelFasta) {
|
| 39 |
tabSeq.addEventListener("click", () => {
|
|
@@ -49,6 +46,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
| 49 |
panelFasta.classList.remove("hidden");
|
| 50 |
panelSeq.classList.add("hidden");
|
| 51 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
// Buttons
|
|
|
|
| 31 |
const panelSeq = document.getElementById("panel-seq");
|
| 32 |
const panelFasta = document.getElementById("panel-fasta");
|
| 33 |
const downloadBtn = document.getElementById("downloadCsvBtn");
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
if (tabSeq && tabFasta && panelSeq && panelFasta) {
|
| 36 |
tabSeq.addEventListener("click", () => {
|
|
|
|
| 46 |
panelFasta.classList.remove("hidden");
|
| 47 |
panelSeq.classList.add("hidden");
|
| 48 |
});
|
| 49 |
+
|
| 50 |
+
(downloadBtn) {
|
| 51 |
+
downloadBtn.addEventListener("click", downloadCSV);
|
| 52 |
+
});
|
| 53 |
}
|
| 54 |
|
| 55 |
// Buttons
|