aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static/main.js
diff options
context:
space:
mode:
authorPjotr Prins2020-11-16 11:10:46 +0000
committerPjotr Prins2020-11-16 11:10:52 +0000
commit15264306d255042b0880409f40d5c69a007d8193 (patch)
treea4e29b0170d51ccadbfa809115c3f392eecb1054 /bh20simplewebuploader/static/main.js
parenta06860d5212efa9e15489a791e80944b436f8330 (diff)
downloadbh20-seq-resource-15264306d255042b0880409f40d5c69a007d8193.tar.gz
bh20-seq-resource-15264306d255042b0880409f40d5c69a007d8193.tar.lz
bh20-seq-resource-15264306d255042b0880409f40d5c69a007d8193.zip
Make demo results clickable
Diffstat (limited to 'bh20simplewebuploader/static/main.js')
-rw-r--r--bh20simplewebuploader/static/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js
index efbf615..8baf635 100644
--- a/bh20simplewebuploader/static/main.js
+++ b/bh20simplewebuploader/static/main.js
@@ -110,7 +110,11 @@ function demofetchHTMLTable(apiEndPoint) {
for (var i=0; i<data[1].length;i++) {
htmlString+="</tr><tr>"
for (var j=0; j<keys.length;j++){
- htmlString+="<td>"+data[1][i][keys[j]]+"</td>"
+ content = data[1][i][keys[j]];
+ if (content.startsWith("http://")) {
+ content = "<a href=\""+content+"\">"+content+"</a>";
+ }
+ htmlString+="<td>"+content+"</td>"
}
htmlString+="</tr>"
}