aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/notification.d
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-29 15:35:07 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-03-29 15:35:07 +0200
commit3d0107ed2c0f03998b6ca59f3731d785f05df1e8 (patch)
tree7aa7201ec09b6a1dfd3ad2e5c512795bc2ad2c48 /contrib/notification.d
parent9d823448f6f3bfe00a6c8a44d151e79fb9a41ff4 (diff)
contrib/notification.html: add and load the script
Diffstat (limited to 'contrib/notification.d')
-rw-r--r--contrib/notification.d/script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/notification.d/script.js b/contrib/notification.d/script.js
new file mode 100644
index 0000000..91741fd
--- /dev/null
+++ b/contrib/notification.d/script.js
@@ -0,0 +1,6 @@
+function visible(cb, element) {
+ document.getElementById(element).style.display = cb.checked ? "block" : "none";
+}
+function update(cb, element) {
+ document.getElementById(element).innerHTML = cb.value;
+}