diff options
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>' }) } |