From f45a50b2b901db1a961b818135153646dc4ab271 Mon Sep 17 00:00:00 2001 From: Marsell Kukuljevic Date: Fri, 16 Jan 2026 13:48:15 +0000 Subject: [PATCH] Add support for expiring links. --- index.html | 37 ++++++++++++++++++---- server.js | 90 ++++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 98 insertions(+), 29 deletions(-) diff --git a/index.html b/index.html index 9c02b19..e62c2e4 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,7 @@ --surface: #2d2d2d; --primary: #10a37f; --text: #ececec; + --smalltext: #888; } body { background: var(--bg); @@ -77,9 +78,20 @@ .hidden { display: none; } + .expires { + font-size: 12px; + color: var(--smalltext); + margin-top: 8px; + text-align: center; + } + .expires > input { + background: #111; + border: 1px solid #444; + color: var(--text); + } .status { font-size: 12px; - color: #888; + color: var(--smalltext); margin-top: 8px; text-align: center; } @@ -93,6 +105,9 @@ id="text" placeholder="Type or paste your secret here..." > +
+ Expires in hours if unread. +
Maximum size: 10MB. Content is encrypted in-browser. @@ -156,8 +171,9 @@