diff options
author | Pjotr Prins | 2020-11-16 11:10:46 +0000 |
---|---|---|
committer | Pjotr Prins | 2020-11-16 11:10:52 +0000 |
commit | 15264306d255042b0880409f40d5c69a007d8193 (patch) | |
tree | a4e29b0170d51ccadbfa809115c3f392eecb1054 /bh20simplewebuploader/static/main.js | |
parent | a06860d5212efa9e15489a791e80944b436f8330 (diff) | |
download | bh20-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.js | 6 |
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>" } |