10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2025-01-11 21:48:30 +01:00

JQuerysation of file viewer

This commit is contained in:
Mickaël Véril 2020-01-29 10:56:50 +01:00
parent 7303e6bc98
commit 27df5105e6

View File

@ -43,21 +43,20 @@ draft: false
const blob = base64ToBlob(base64, "text/plain") const blob = base64ToBlob(base64, "text/plain")
downloadData(blob, "file.dat") downloadData(blob, "file.dat")
}) })
document.getElementById('fileTitle').hudden=true $('#fileTitle').hide()
document.getElementById('fileContent').innerText=atob(base64) $('#fileContent').text(atob(base64))
document.getElementById('file').hidden=false; $('file').show();
document.getElementById("div_btn").hidden=false; $("div_btn").show()
} }
else { else {
document.getElementById('error_P').hidden=false; $('#error_P').show()
errNode; errNode;
} }
} }
</script> </script>
<script> <script>
function Copy() function Copy() {
{ navigator.clipboard.writeText($('#fileContent').text());
navigator.clipboard.writeText(document.getElementById('fileContent').innerText);
}; };
</script> </script>