This commit is contained in:
2026-06-04 12:07:14 -04:00
parent c1f041b4f6
commit 02cae92797
31 changed files with 1709 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
function download(filename, text) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}