summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.html b/index.html
index 6ccdbb1..350cf8a 100644
--- a/index.html
+++ b/index.html
@@ -10,10 +10,10 @@
</form>
<ul id="updates"></ul>
- <script src="/socket.io/socket.io.js"></script>
+ <!-- <script src="/socket.io/socket.io.js"></script> -->
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>
- var socket = io();
+ //var socket = io();
$("#update-form").submit(function(e) {
var name = $("input:first").val();
$.get("/api/player/name/" + name).done(function() {
@@ -23,6 +23,7 @@
.css("color", "black")
);
/* subscribe to socket notifications */
+ /*
socket.on(name, function(msg) {
if (msg == "grab_failed") {
$("#updates").append(
@@ -53,6 +54,7 @@
);
}
});
+ */
}).fail(function() {
$("#updates").append(
$("<li>")