diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/notification.d/script.js | 6 | ||||
-rw-r--r-- | contrib/notification.html | 1 |
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> |