Commit 58589d59 authored by Eben Blaisdell's avatar Eben Blaisdell

loadbar fix

parent 653581ee
......@@ -27,6 +27,7 @@ socket.on('update', function (data) {
ctx.lineTo(c.width,blockSize*i);
ctx.stroke();
}
console.log($("#turnbar").css("width"));
if(data.turn % turnbarStep == 0){
$("#turnbar").css("width",(100*data.turn/turnLimit).toString()+"%");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment