Skip to content
Snippets Groups Projects
Commit 3a6445c0 authored by capossele's avatar capossele
Browse files

:art: changes font

parent 11d26b05
No related branches found
No related tags found
No related merge requests found
......@@ -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 &rarr; " + link.target.id.substr(0, 16) + "<br>";
});
nodesById[node.id].color = 'rgba(0,255,255,1)'
}
</script>
</body>`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment