We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5682bf commit 95829cbCopy full SHA for 95829cb
index.html
@@ -26,7 +26,6 @@
26
<div class="container">
27
<div id="demo">This is a demo only! Download and serve the repo locally to test the gamepad</div>
28
<div id="stats">
29
- lat:
30
</div>
31
<p>Socket Joy Alpha</p>
32
<div class="bumpers">
socketjoy.js
@@ -22,7 +22,8 @@ if (isLocal) {
22
lat = 0;
23
sock.on('pong', function(ms) {
24
lat = ms;
25
- document.getElementById("stats").innerHTML = "lat: " + ms + "ms";
+ document.getElementById("stats").innerHTML = "latency: " + ms + "ms";
+ document.getElementById("stats").style.display = "block";
});
} else {
// Notify user that this is a demo only
0 commit comments