]> git.scottworley.com Git - reliable-chat/blobdiff - webclient/rc.html
Separate count, timestamp, and message with spaces
[reliable-chat] / webclient / rc.html
index 01dc1681dc29f8afa47b98f7a0d03241c541cb73..8c08c7921eb98a7c30fa0c78c6ffceb4f70e8699 100644 (file)
                padding: 0px 5px 55px 5px;
                vertical-align: bottom
        }
+       .banner {
+               font-size: 85%;
+               text-align: right;
+       }
        .servercount {
-               margin-right: 0.5em;
+               margin-right: -0.5em;
                font-size: 70%;
        }
-       .timestamp {
-               margin-right: 0.8em;
-       }
        .timestamp:hover, .timestamp:hover .servertimestamps {
                background-color: #556;
        }
                servercount.setAttribute("class", "servercount");
                servercount.appendChild(document.createTextNode(Object.keys(message.ServerTimes).length));
                message.UI.appendChild(servercount);
+               message.UI.appendChild(document.createTextNode(" "));
 
                // Timestamp
                var timestamp_text = message.Time ? rcformattime(message.Time) : "";
                timestamp.setAttribute("class", "timestamp");
                timestamp.appendChild(document.createTextNode(timestamp_text));
                message.UI.appendChild(timestamp);
+               message.UI.appendChild(document.createTextNode(" "));
 
                // Timestamp hover
                var timestamp_hover = document.createElement("div");
                                text_span.appendChild(document.createTextNode(leading_text));
                        }
                        var anchor = document.createElement("a");
+                       anchor.setAttribute("rel", "nofollow");
                        anchor.setAttribute("href", encodeURI(match[0]));
                        anchor.appendChild(document.createTextNode(match[0]));
                        text_span.appendChild(anchor);
 
 <body onload="rcconnect()">
        <div id="container">
+               <div class="banner">(You are using <a href="https://github.com/chkno/reliable-chat">Reliable Chat</a>)</div>
                <div id="history"></div>
                <div id="client">
                        <div id="input">