summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/play.js b/play.js
index 1db1cb4..dfb9afe 100644
--- a/play.js
+++ b/play.js
@@ -878,15 +878,15 @@ function on_log(text) {
if (text.match(/^\.h1/)) {
text = text.substring(4)
p.className = "h1"
- } else if (text.match(/^\.h2d/)) {
- text = text.substring(5)
- p.className = "h2 dem"
- } else if (text.match(/^\.h2c/)) {
- text = text.substring(5)
- p.className = "h2 com"
} else if (text.match(/^\.h2/)) {
text = text.substring(4)
p.className = "h2"
+ } else if (text.match(/^\.d/)) {
+ text = "Democrat"
+ p.className = "h2 dem"
+ } else if (text.match(/^\.c/)) {
+ text = "Communist"
+ p.className = "h2 com"
} else if (text.match(/^\.h3/)) {
text = text.substring(4)
p.className = "h3"