diff options
author | Nate Buttke <nate-web@riseup.net> | 2023-08-14 20:33:31 -0700 |
---|---|---|
committer | Nate Buttke <nate-web@riseup.net> | 2023-08-14 20:33:31 -0700 |
commit | f334391613e01057d572e0228aa4f3c2f24346dc (patch) | |
tree | a41f9eb6e9b924d40979100fcf462fff0ca1be52 /frontend | |
parent | d02ee2b2d10769e184781879adc3b43aac8fe9bd (diff) |
base64ify path links
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/index.html b/frontend/index.html index 22c142c..7a71b97 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -68,7 +68,7 @@ if (res['loctype'] == "folder"){ text+="<div class='code'>" res['text'].forEach((a)=>{ - text += "<div><a href='/?path="+a[0]+"'>"+a[0]+"</a><div>" + text += "<div><a href='/?path="+a[0][1]+"'>"+a[0][0]+"</a><div>" }) text+="<div>" @@ -76,7 +76,7 @@ else if(res['loctype'] == "file"){ leftClass = "none" res['text'].forEach((a, i)=>{ - text += '<div class="col-xs-5 code" id="code-'+i+'"><pre><code class="none">'+a[0]+'</code></pre></div>' + text += '<div class="col-xs-5 code" id="code-'+i+'"><pre><code class="none">'+a[0][0]+'</code></pre></div>' text += '<div class="col-xs-5 summary" id="summary-"'+i+'><p>'+a[1]+'</p></div>' }) } |