aboutsummaryrefslogtreecommitdiffstats
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
parent9d823448f6f3bfe00a6c8a44d151e79fb9a41ff4 (diff)
contrib/notification.html: add and load the script
-rw-r--r--contrib/notification.d/script.js6
-rw-r--r--contrib/notification.html1
2 files changed, 7 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;
+}
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 @@
<meta charset="UTF-8">
<title>RouterOS-Scripts Notification Generator</title>
<link rel="stylesheet" type="text/css" href="notification.d/style.css">
+<script src="notification.d/script.js"></script>
</head>
<body>