diff --git a/content/pages/dataview.html b/content/pages/dataview.html index 5910cbf7..50aac846 100644 --- a/content/pages/dataview.html +++ b/content/pages/dataview.html @@ -36,9 +36,9 @@ btn_download.onclick=function(){ window.open(path,"_self"); } - var preNode= document.getElementById('fileContent'); - preNode.hidden=false; - preNode.innerText=await textPromise; + document.getElementById('fileTitle').innerText=filename; + document.getElementById('fileContent').innerText=await textPromise; + document.getElementById('file').hidden=false; document.getElementById("div_btn").hidden=false; } else { @@ -60,7 +60,10 @@ - +