From 3d0107ed2c0f03998b6ca59f3731d785f05df1e8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 Mar 2023 15:35:07 +0200 Subject: contrib/notification.html: add and load the script --- contrib/notification.d/script.js | 6 ++++++ contrib/notification.html | 1 + 2 files changed, 7 insertions(+) create mode 100644 contrib/notification.d/script.js (limited to 'contrib') 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; +} diff --git a/contrib/notification.html b/contrib/notification.html index e71c71b..f483ab0 100644 --- a/contrib/notification.html +++ b/contrib/notification.html @@ -4,6 +4,7 @@ RouterOS-Scripts Notification Generator + -- cgit v1.2.3-70-g09d2