comparison rlgterm.js @ 51:2eda3909f6a3

rlgterm.js: don't make nonfunctional button. The "Game in progress" text shouldn't look like a button, because clicking it doesn't do anything.
author John "Elwin" Edwards <elwin@sdf.org>
date Mon, 11 Jun 2012 14:04:35 -0700
parents 27b7f0c8b9f0
children 96815eae4ebe
comparison
equal deleted inserted replaced
50:bef5629f50d8 51:2eda3909f6a3
440 acttext = "Game in progress"; 440 acttext = "Game in progress";
441 else 441 else
442 continue; 442 continue;
443 var button = document.createElement("span"); 443 var button = document.createElement("span");
444 button.appendChild(document.createTextNode(acttext)); 444 button.appendChild(document.createTextNode(acttext));
445 button.className = "ibutton";
446 if ("s0".indexOf(reply.stat[gname]) >= 0) { 445 if ("s0".indexOf(reply.stat[gname]) >= 0) {
447 button.onclick = makeStarter(gname); 446 button.onclick = makeStarter(gname);
447 button.className = "ibutton";
448 } 448 }
449 var actdiv = document.createElement("div"); 449 var actdiv = document.createElement("div");
450 actdiv.appendChild(button); 450 actdiv.appendChild(button);
451 var gamediv = document.createElement("div"); 451 var gamediv = document.createElement("div");
452 gamediv.appendChild(document.createTextNode(games[gname].name)); 452 gamediv.appendChild(document.createTextNode(games[gname].name));