aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
authorPjotr Prins2020-10-28 15:21:05 +0000
committerPjotr Prins2020-10-28 15:21:05 +0000
commit89ccd3ce507ea2abad408a9df559aa3bbcc0e377 (patch)
treee6e0f09d90ca32228e84f95412a6891d495e4f04 /bh20simplewebuploader/static
parent2e7ff0e040a011e4bc3aae2c2816c7f3f4ed875d (diff)
downloadbh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.tar.gz
bh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.tar.lz
bh20-seq-resource-89ccd3ce507ea2abad408a9df559aa3bbcc0e377.zip
Fix DEMO links
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js10
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")
};