would you like to download them?"
+ ,0);
+ break;
+ case "Delete":
+ delStoredDataOnServer();
+ break;
+
+ default:
+ e.preventDefault;
+ }
+ }
+ });
+ modalNotifier(
+ "Here you can manage if your files should be saved on the server \
+ If there are stored files already on the server you can inport them \
+ It will overwrite any saved documents
\
+
\
+ \
+ \
+
",
+ 0);
+
+}
+
+function createBookShelfDownload() {
+ let data = createBookShelf();
+ let filename = data[0]['data'] + ".txt";
+ document.getElementById("modalMsg").addEventListener("click", (e) => {
+ if (e.target && e.target.tagName === "BUTTON") {
+ var element = document.createElement('a');
+ element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(data)));
+ element.setAttribute('download', filename);
+ element.style.display = 'none';
+ document.body.appendChild(element);
+ element.click();
+ document.body.removeChild(element);
+ }
+ });
+ modalNotifier(
+ "Since you are in local only mode you can only export a backup of your files \
+