diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:29:23 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:29:23 +0100 |
| commit | dbb2bd6d915102a53aaecb476fced469f673d6d4 (patch) | |
| tree | 9a63a613e7596b9889a70a01dd507b4aadd51a3c /updater/index.html | |
| parent | d25ff2bddd44b9dac1ceb248424109d1782dd211 (diff) | |
| download | meta-dbb2bd6d915102a53aaecb476fced469f673d6d4.tar.gz meta-dbb2bd6d915102a53aaecb476fced469f673d6d4.zip | |
add updater as submodule
Diffstat (limited to 'updater/index.html')
| -rw-r--r-- | updater/index.html | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/updater/index.html b/updater/index.html deleted file mode 100644 index b97d287..0000000 --- a/updater/index.html +++ /dev/null @@ -1,60 +0,0 @@ -<!doctype html> -<html> - <head> - <title>Vainsocial backend status</title> - </head> - <body> - <form id="update-form"> - <input type="text"> - <input type="submit" value="Update"> - </form> - - <ul id="updates"></ul> - <script src="/socket.io/socket.io.js"></script> - <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> - <script> - var socket = io(); - $("#update-form").submit(function(e) { - var name = $("input:first").val(); - $.get("/api/player/name/" + name).done(function() { - $("#updates").append( - $("<li>") - .text("(found)") - .css("color", "black") - ); - /* subscribe to socket notifications */ - socket.on(name, function(msg) { - if (msg == "grab_failed") { - $("#updates").append( - $("<li>") - .text(name + ": no new data") - .css("color", "red") - ); - } - if (msg == "process_finished") { - $("#updates").append( - $("<li>") - .text(name + ": processed") - .css("color", "green") - ); - } - if (msg == "compile_finished") { - $("#updates").append( - $("<li>") - .text(name + ": compiled") - .css("color", "orange") - ); - } - }); - }).fail(function() { - $("#updates").append( - $("<li>") - .text("(not found)") - .css("color", "red") - ); - }); - e.preventDefault(); - }); - </script> - </body> -</html> |
