10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +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")
downloadData(blob, "file.dat")
})
document.getElementById('fileTitle').hudden=true
document.getElementById('fileContent').innerText=atob(base64)
document.getElementById('file').hidden=false;
document.getElementById("div_btn").hidden=false;
$('#fileTitle').hide()
$('#fileContent').text(atob(base64))
$('file').show();
$("div_btn").show()
}
else {
document.getElementById('error_P').hidden=false;
$('#error_P').show()
errNode;
}
}
</script>
<script>
function Copy()
{
navigator.clipboard.writeText(document.getElementById('fileContent').innerText);
function Copy() {
navigator.clipboard.writeText($('#fileContent').text());
};
</script>