]> git.scottworley.com Git - reliable-chat/blobdiff - webclient/rc.html
Different colors for different message types
[reliable-chat] / webclient / rc.html
index a8bc337a2193ebbc8c6506b97b5f9772afbb63e7..c1d36b26117bcbd58a969e1fe0d0a4360e97404d 100644 (file)
                font-size: 85%;
                text-align: right;
        }
                font-size: 85%;
                text-align: right;
        }
+       .status {
+               color: #dd8;
+       }
+       .local.self {
+               color: #d8d;
+       }
+       .self {
+               color: #8d8;
+       }
+       .me {
+               color: #bbd;
+       }
        .servercount {
                margin-right: -0.5em;
                font-size: 70%;
        .servercount {
                margin-right: -0.5em;
                font-size: 70%;
                        "?id=" + encodeURIComponent(message.ID) +
                        "&text=" + encodeURIComponent(message.Text);
                for (var i in servers) {
                        "?id=" + encodeURIComponent(message.ID) +
                        "&text=" + encodeURIComponent(message.Text);
                for (var i in servers) {
-                       var uri = rcserverbase(servers[i]) + path;
-                       var img = document.createElement("img");
-                       img.setAttribute("src", uri);
-                       d.appendChild(img);
+                       var xhr = new XMLHttpRequest();
+                       xhr.open("POST", rcserverbase(servers[i]) + path);
+                       xhr.send();
                }
        }
 
                }
        }