From 0f6fc5d8b5032bab633f7e2f47bfbb587d704b1f Mon Sep 17 00:00:00 2001 From: nrb <freifunk@nicoboehr.de> Date: Sun, 3 Jan 2021 13:14:53 +0100 Subject: [PATCH] add refresh button --- update_checker.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update_checker.html b/update_checker.html index c160bba..8504cc0 100644 --- a/update_checker.html +++ b/update_checker.html @@ -52,13 +52,14 @@ } $(document).ready(function() { refreshUpdates() - window.setInterval(refreshUpdates, 60*1000); + window.setInterval(refreshUpdates, 60*1000) + $("refresh").on("click", function() { refreshUpdates(); }) }) </script> </head> <body> <h1>Update Checker</h1> - <p>Last update: <span id="lastUpdate">(never)</span></p> + <p>Last update: <span id="lastUpdate">(never)</span> <button id="refresh">refresh</button></p> <h2>Update downloaded and offline</h2> <p>These nodes have downloaded a firmware update from the server, have never been observed running the updated firmware and are currently offline. It is not guaranteed they are offline because of the update. It could also mean they are running the new firmware fine, but they currently don't have a connection to the mesh or they were interrupted before installing the update etc.</p> <table> -- GitLab