From 3a6445c0e906ab0eb99026a037a31e0d19c43554 Mon Sep 17 00:00:00 2001 From: capossele <angelocapossele@gmail.com> Date: Fri, 24 Jan 2020 14:17:42 +0000 Subject: [PATCH] :art: changes font --- plugins/analysis/webinterface/httpserver/index.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/analysis/webinterface/httpserver/index.go b/plugins/analysis/webinterface/httpserver/index.go index 574a252f..4f65bf27 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>`) -- GitLab