+
+ Content is deleted after __RETENTION_HOURS__ hours of inactivity and can be accessed
+ by the server and anyone with the link and optional password.
+
+
-
-
- Please Note: no client-side encryption — the server and anyone with the
- link and password can access the content. Content is deleted after __RETENTION_HOURS__ hours
- of inactivity.
-
-
@@ -400,6 +450,16 @@ function toggleTheme() {
});
})();
+// Bottom notice: click anywhere on it to dismiss, remembered across pads and reloads.
+function hideNotice() {
+ $("#notice").style.display = "none";
+ try { localStorage.setItem("notice", "off"); } catch (e) {}
+}
+(function() {
+ try { if (localStorage.getItem("notice") === "off") $("#notice").style.display = "none"; }
+ catch (e) {} // private mode / storage disabled: just leave the notice up
+})();
+
// Derive docId from path; redirect root to random
let docId = decodeURIComponent(location.pathname.replace(/(^\\/|\\/$)/g, ""));
if (!docId) { location.replace("/" + rand() + "/"); }
@@ -587,6 +647,13 @@ function submitAuth() {
}
}
+function setPeers(n) {
+ const el = $("#peers");
+ $("#peer-count").textContent = n; // never el.textContent: it would wipe the