

var reader = new FileReader(); reader.onload = function(e) { document.querySelector('img').src = e.target.result; }; function onDrop(e) { reader.readAsDataURL(e.dataTransfer.files[0]); }; mkdir command, and you can generate a random set of folders and files with the init command.
3d command launches three-dimensional rendering of your file structure. Mouse can rotate the image.
3d off command, the picture is turned off.wget command also works, but there are cross-domain restrictions here, so wget is executed on the same URL.
Source: https://habr.com/ru/post/132479/
All Articles