diff --git a/plugins/analysis/webinterface/httpserver/index.go b/plugins/analysis/webinterface/httpserver/index.go index 574a252fb96de241fe3c955297ea004bc170802d..4f65bf271305b8614c6b2d9ea017a23aeca4aa12 100644 --- a/plugins/analysis/webinterface/httpserver/index.go +++ b/plugins/analysis/webinterface/httpserver/index.go @@ -8,6 +8,11 @@ import ( func index(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, `<head> <style> + html { + font-family: monospace, monospace; + line-height: 1.15; + -webkit-text-size-adjust: 100%%; + } body { text-align: center; margin: 0; @@ -83,8 +88,8 @@ func index(w http.ResponseWriter, r *http.Request) { <div id="nodestat"> <p id="in"></p> <p id="out"></p> + </div> </div> - <script> var socket = new WebSocket(((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.host + "/datastream"); @@ -196,7 +201,6 @@ func index(w http.ResponseWriter, r *http.Request) { } }); - showNodeStat(node); } updateHighlight(); @@ -315,8 +319,6 @@ func index(w http.ResponseWriter, r *http.Request) { outgoing.forEach(function(link){ document.getElementById("out").innerHTML += "NODE → " + link.target.id.substr(0, 16) + "<br>"; }); - - nodesById[node.id].color = 'rgba(0,255,255,1)' } </script> </body>`)