X-Git-Url: https://git.ucc.asn.au/?p=progcomp2013.git;a=blobdiff_plain;f=web%2Fqwebchess%2Fjs.js;fp=web%2Fqwebchess%2Fjs.js;h=3474c3ac61d2fa7a15e8bc6eb2841600a70a6f14;hp=8099802ec34a1ea0b136b57b429b8cd08e924922;hb=b62f274ce80bc47fd5bd684cc4157860b8ad65f4;hpb=0a0868c019e4f68356a8793058d407539548759b diff --git a/web/qwebchess/js.js b/web/qwebchess/js.js index 8099802..3474c3a 100644 --- a/web/qwebchess/js.js +++ b/web/qwebchess/js.js @@ -12,7 +12,7 @@ playerColour = ""; // colour of this player pieceChar = {"W" : { "p" : "\u2659", "h" : "\u2658", "b" : "\u2657", "r" : "\u2656", "q" : "\u2655", "k" : "\u2654", "?" : "?"}, "B" : { "p" : "\u265F", "h" : "\u265E", "b" : "\u265D", "r" : "\u265C", "q" : "\u265B", "k" : "\u265A", "?" : "?"}}; -emptyHTML = "     " +emptyHTML = "" gameStarted = false; canClick = true; @@ -34,7 +34,7 @@ $(document).ready(function() pieceSelected = ""; canClick = false; $.ajax({url : "/cgi-bin/qchess.cgi", data : {r : "force_quit"}, success : function() {}}); - $.ajax({url : "/cgi-bin/qchess.cgi", data : {r : "start", m : "black"}}).done(function(data) {$(this).update(data)}); + $.ajax({url : "/cgi-bin/qchess.cgi", data : {r : "start"}}).done(function(data) {$(this).update(data)}); } @@ -355,7 +355,7 @@ $(document).ready(function() boardHTML += ""; for (var x = 0; x < 8; ++x) { - boardHTML += ""+emptyHTML+""; + boardHTML += ""+emptyHTML+""; } boardHTML += ""; }