diff options
author | Pjotr Prins | 2020-10-28 15:21:05 +0000 |
---|---|---|
committer | Pjotr Prins | 2020-10-28 15:21:05 +0000 |
commit | 89ccd3ce507ea2abad408a9df559aa3bbcc0e377 (patch) | |
tree | e6e0f09d90ca32228e84f95412a6891d495e4f04 /bh20simplewebuploader/static/main.js | |
parent | 2e7ff0e040a011e4bc3aae2c2816c7f3f4ed875d (diff) | |
download | bh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.tar.gz bh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.tar.lz bh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.zip |
Fix DEMO links
Diffstat (limited to 'bh20simplewebuploader/static/main.js')
-rw-r--r-- | bh20simplewebuploader/static/main.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index c0bc23f..6e63ed3 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -72,9 +72,11 @@ function fetchHTMLTable(apiEndPoint) { for (var i=0; i<data.length;i++) { htmlString=htmlString+"<tr><td><a href='#' onclick='fetchSEQByLocation(\""+data[i]["key"]+"\");'>"+data[i]["label"]+"</a></td><td>"+data[i]["count"]+"<td></tr>" } -*/ + */ for (var i=0; i<data.length;i++) { - htmlString=htmlString+"<tr><td>"+data[i]["label"]+"</td><td>"+data[i]["count"]+"<td></tr>" + let url = data[i]["key"]; + let label = data[i]["label"]; + htmlString=htmlString+"<tr><td><a href=\""+url+"\">"+label+"</a></td><td>"+data[i]["count"]+"<td></tr>" } htmlString=htmlString+"</table>" @@ -143,10 +145,6 @@ let fetchMap = () => { updateMapMarkers(); }; -let fetchSEQCountbyLocation = () => { - fetchHTMLTable("/api/getSEQCountbyLocation"); -}; - let fetchSEQByLocation = () => { console.log("Missing - set parameter for request, retrieve data") }; |