Biocoder09 commited on
Commit
d45e299
·
verified ·
1 Parent(s): f473056

Update static/script.js

Browse files
Files changed (1) hide show
  1. 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