aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static/main.js
blob: e8d4776a293986321f8487782e8606a54d51a1bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
fetch(scriptRoot + "/api/getAllaccessions")
  .then(response => {
    return response.json();
  })
  .then(data => {
    console.log('test');
    console.log(data);
  })

/**
 * Show form if checked
 */
let fillFormSpot = document.getElementById('metadata_fill_form_spot');
function displayForm() {
  if (document.getElementById('metadata_form').checked) {
    fillFormSpot.classList.remove("invisible");
  } else {
    fillFormSpot.classList.add("invisible");
    console.log("visible");
  }
}