aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/notification.d/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/notification.d/script.js')
-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;
+}