aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/css/akn.css1
-rw-r--r--src/js/utils.js9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/css/akn.css b/src/css/akn.css
index e034628..a3e2da1 100644
--- a/src/css/akn.css
+++ b/src/css/akn.css
@@ -204,6 +204,7 @@ select {
}
article {
+ font-family: monospace;
border: none;
border-radius: 40px;
border-left: 2px dashed #672178;
diff --git a/src/js/utils.js b/src/js/utils.js
index 74f3cfa..a952328 100644
--- a/src/js/utils.js
+++ b/src/js/utils.js
@@ -26,4 +26,13 @@ export function debugLog(message)
{
if (showDebug) console.log(message);
}
+
+export function offerDownloadableData(data)
+{
+ var link = document.createElement('a');
+ link.download = 'data';
+ var blob = new Blob([data]); // , {type: 'text/plain'}
+ link.href = window.URL.createObjectURL(blob);
+ link.click();
+}
// @license-end