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