Mercurial > hg > rlgwebd
comparison rlgterm.js @ 88:d644e7d46852
RLG-Web: make /pstatus/* differentiate between dgl and RLG-Web games.
The /pstatus/ API now responds with "p" for games being played in
RLG-Web and "d" for games being played in dgamelaunch.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Mon, 09 Jul 2012 12:51:12 -0700 |
parents | e04c8bf6d4da |
children | 6145e1ea7ace |
comparison
equal
deleted
inserted
replaced
87:bd2cf6dda28d | 88:d644e7d46852 |
---|---|
560 acttext = "Resume your game"; | 560 acttext = "Resume your game"; |
561 else if (reply.stat[gname] == "0") | 561 else if (reply.stat[gname] == "0") |
562 acttext = "Start a game"; | 562 acttext = "Start a game"; |
563 else if (reply.stat[gname] == "p") | 563 else if (reply.stat[gname] == "p") |
564 acttext = "Game in progress"; | 564 acttext = "Game in progress"; |
565 else if (reply.stat[gname] == "d") | |
566 acttext = "Game in progress (dgl)"; | |
565 else | 567 else |
566 continue; | 568 continue; |
567 var button = document.createElement("span"); | 569 var button = document.createElement("span"); |
568 button.appendChild(document.createTextNode(acttext)); | 570 button.appendChild(document.createTextNode(acttext)); |
569 if ("s0".indexOf(reply.stat[gname]) >= 0) { | 571 if ("s0".indexOf(reply.stat[gname]) >= 0) { |