aboutsummaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'script.js')
-rw-r--r--script.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..d424c04
--- /dev/null
+++ b/script.js
@@ -0,0 +1,8 @@
+{
+ let now = Date.now() / 1000;
+ document.querySelectorAll("[x-unhide-after]").forEach(el => {
+ if (now > el.getAttribute("x-unhide-after"))
+ el.classList.remove("hidden");
+ });
+}
+