aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
authorPjotr Prins2020-11-10 12:59:30 +0000
committerPjotr Prins2020-11-10 12:59:30 +0000
commitd53120b6106e301c7f5b58bdb4dc89f85dbe2ad0 (patch)
tree4174376f5fc8a49c28d0d1ada644bcdec17349a0 /bh20simplewebuploader/static
parentb3eb10770bada631c929fec83247f6fda7ef22a4 (diff)
downloadbh20-seq-resource-d53120b6106e301c7f5b58bdb4dc89f85dbe2ad0.tar.gz
bh20-seq-resource-d53120b6106e301c7f5b58bdb4dc89f85dbe2ad0.tar.lz
bh20-seq-resource-d53120b6106e301c7f5b58bdb4dc89f85dbe2ad0.zip
Demo links to permalink for countries
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index 89bc603..6cc0d9f 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -68,6 +68,12 @@ function fetchHTMLTable(apiEndPoint) {
htmlString="<table>"
for (var i=0; i<data.length;i++) {
let url = data[i]["key"];
+ continents = ["Q538", "Q48", "Q49", "Q18", "Q15", "Q27611" ];
+ node = url.split("/").pop();
+ console.log(continents.includes(node));
+ if (url.includes("wikidata") && !continents.includes(node)) {
+ url = "http://covid19.genenetwork.org/location?label="+url ;
+ }
let label = data[i]["label"];
htmlString=htmlString+"<tr><td><a href=\""+url+"\">"+label+"</a></td><td>"+data[i]["count"]+"<td></tr>"
}