"<i>cookies</i>. "
"<li>Also keep in mind that if your browser is "
"configured to block pop-up windows, you will not be able "
- "to receive any instant messages.<br />"
+ "to receive any instant messages.<br>"
"</ul>")
);
svput("HELLO", WCS_SERVCMD, "MESG hello");
svprintf(HKEY("OFFER_CONVENTIONAL_LOGIN"), WCS_STRING,
- "<div align=center>"
+ "<div id=\"convlogin\">"
"<a href=\"display_login\">"
"%s</a>"
"</div>"
serv_printf("VALI %s|%s", buf, bstr("axlevel"));
serv_getln(buf, sizeof buf);
if (buf[0] != '2') {
- wprintf("<b>%s</b><br />\n", &buf[4]);
+ wprintf("<b>%s</b><br>\n", &buf[4]);
}
}
}
if (buf[0] == '2') {
wprintf("<b>");
wprintf(_("No users require validation at this time."));
- wprintf("</b><br />\n");
+ wprintf("</b><br>\n");
wDumpContent(1);
return;
}
if (buf[0] != '3') {
- wprintf("<b>%s</b><br />\n", &buf[4]);
+ wprintf("<b>%s</b><br>\n", &buf[4]);
wDumpContent(1);
return;
}
wprintf("<div class=\"fix_scrollbar_bug\">"
"<table class=\"auth_validate\"><tr><td>\n");
- wprintf("<center>");
+ wprintf("<div id=\"validate\">");
safestrncpy(user, &buf[4], sizeof user);
serv_printf("GREG %s", user);
serv_getln(buf, sizeof buf);
++a;
if (a == 1)
- wprintf("#%s<br /><H1>%s</H1>",
+ wprintf("#%s<br><H1>%s</H1>",
buf, &cmd[4]);
if (a == 2) {
char *pch;
pch = _("strong");
}
- wprintf("PW: %s<br />\n", pch);
+ wprintf("PW: %s<br>\n", pch);
}
if (a == 3)
- wprintf("%s<br />\n", buf);
+ wprintf("%s<br>\n", buf);
if (a == 4)
- wprintf("%s<br />\n", buf);
+ wprintf("%s<br>\n", buf);
if (a == 5)
wprintf("%s, ", buf);
if (a == 6)
wprintf("%s ", buf);
if (a == 7)
- wprintf("%s<br />\n", buf);
+ wprintf("%s<br>\n", buf);
if (a == 8)
- wprintf("%s<br />\n", buf);
+ wprintf("%s<br>\n", buf);
if (a == 9)
wprintf(_("Current access level: %d (%s)\n"),
atoi(buf), axdefs[atoi(buf)]);
}
wprintf("<br />\n");
- wprintf("</CENTER>\n");
+ wprintf("</div>\n");
wprintf("</td></tr></table></div>\n");
wDumpContent(1);
}
nummsgs = load_msg_ptrs(cmd, with_headers);
if (nummsgs == 0) {
if (care_for_empty_list) {
- wprintf("<div align=\"center\"><br /><em>");
+ wprintf("<div class=\"nomsgs\"><br><em>");
switch (oper) {
case readnew:
wprintf(_("No new messages."));
default:
wprintf(_("No messages here."));
}
- wprintf("</em><br /></div>\n");
+ wprintf("</em><br></div>\n");
goto DONE;
}
long len;
int intext = 0;
- StrBufAppendPrintf(Target, "<div align=\"%s\">\n", align);
+ StrBufAppendPrintf(Target, "<div class=\"fmout\">\n", align);
while ((n = StrBufSipLine(Line, Source, &BufPtr), n >= 0) && !done)
{
done = n == 0;
pte = ptr + len;
if ((intext == 1) && (isspace(*ptr))) {
- StrBufAppendBufPlain(Target, HKEY("<br />"), 0);
+ StrBufAppendBufPlain(Target, HKEY("<br>"), 0);
}
intext = 1;
if (isspace(*ptr)) while ((ptr < pte) &&
}
for (i = 0; i < bn; i++)
StrBufAppendBufPlain(Target, HKEY("</blockquote>"), 0);
- StrBufAppendBufPlain(Target, HKEY("</div><br />\n"), 0);
+ StrBufAppendBufPlain(Target, HKEY("</div><br>\n"), 0);
FreeStrBuf(&Line);
FreeStrBuf(&Line1);
FreeStrBuf(&Line2);
"rsender" : sortRowsByFromDescending
};
var toggles = {};
-window.console = window.console || {};
-var opera = opera || null;
-if (opera && opera.postError) {
- console.log = opera.postError;
-}
+
var nummsgs = 0;
var startmsg = 0;
function createMessageView() {
var classStmt = "col"+x;
tdElement.setAttribute("class", classStmt);
} catch (e) {
- if (!!window.console && !!console.log) {
- console.log("Error on #"+msgId +" col"+j+":"+e);
- }
+ WCLog("Error on #"+msgId +" col"+j+":"+e);
}
}
}
rowArray[i] = trElement;
}
var end = new Date();
- if (!!window.console && !!console.log) {
- var delta = end.getTime() - start.getTime();
- console.log("loadMessages construct: " + delta);
- }
+ var delta = end.getTime() - start.getTime();
+ WCLog("loadMessages construct: " + delta);
} catch (e) {
window.alert(e);
}
}
message_view.appendChild(fragment);
var end = new Date();
- if (!!window.console && !!console.log) {
var delta = end.getTime() - start.getTime();
- console.log("resortAndDisplay sort and append: " + delta);
- }
+ WCLog("resortAndDisplay sort and append: " + delta);
ApplySorterToggle();
normalizeHeaderTable();
}
<?_("Online users")>
</span>
</a>
-<ul id="online_users"></ul>
+<ul id="online_users">
+<li><?_("Loading")></li>
+</ul>
</li>
<li id="ib_chat">
<a href="#" id="ib_chat_launch"><span>
<?!("COND:IMPMSG", 1)>
<div class="login_message"><?IMPORTANTMESSAGE></div>
<?!("X", 1)>
-
+<div class="login_image"><img src="image&name=hello" alt="<?_("Welcome image")>"></div>
<form action="login" method="POST" class="box" id="login_form">
<div>
<label for="uname"><?_("User name:")></label>
<?_("Log in using OpenID")></a>
</div>
<??("X", 3)>
-<div class="login_image"><img src="image&name=hello" alt="<?_("Welcome image")>"></div>
<div class="login_infos">
<ul><li><b><?_("If you already have an account on")> <?SERV:HUMANNODE></b>,
<?_("enter your user name and password and click "Login."<li><b>If you are a new user</b>, enter the name and password you wish to use, and click "New User." <li>Please log off properly when finished. <li>You must use a browser that supports <i>frames</i> and <i>cookies</i>. <li>Also keep in mind that if your browser is configured to block pop-up windows, you will not be able to receive any instant messages.")>
<li class="search" id="searchomatic"><?SEARCHOMATIC></li>
<li class="view"><?VIEWOMATIC></li>
<??("COND:SUBST", 1, "WCVIEW", "1")><li id="selectpage"><?_("Select
-page: ")> <select id="summpage"></select></li><??("X",1)>
+page: ")> <select id="summpage"><option> </option></select></li><??("X",1)>
</ul>
</div>
<!-- end roombanner.html -->
}
function changeIconBar(target) {
var switchTo = target.ctdlSwitchIconBarTo;
- if (!!window.console) {
- console.log("Changing to: " + switchTo);
- }
+ WCLog("Changing to: " + switchTo);
ctdlLocalPrefs.setPref("iconbar_view", target.ctdlSwitchIconBarTo);
if (switchTo == "rooms") {
switch_to_room_list();
}
}
-
-
-
// Functions which handle show/hide of various elements in the recurrence editor
function RecurrenceShowHide() {
function launchChat(event) {
window.open('chat', 'ctdl_chat_window', 'toolbar=no,location=no,directories=no,copyhistory=no,status=no,scrollbars=yes,resizable=yes');
}
+// logger
+function WCLog(msg) {
+ if (!!window.console && !!console.log) {
+ console.log(msg);
+ } else if (!!window.opera && !!opera.postError) {
+ opera.postError(msg);
+ }
+}
#loading {
background-color: white;
}
+/* Message list in mailbox/summaryview */
+.table-row {
+ background-color: white;
+}
+.table-alt-row {
+ background-color: #DDDDDD;
+}
/* Links */
a { text-decoration: none; }
z-index: 2;
padding: 3px;
}
-#hellomsg {
+#hellomsg, .fmout, .nomsgs {
text-align: center;
}
#login_screen, #logout_screen {
margin: 0;
padding: 3% 6% 3% 6%;
}
-
+#convlogin, #validate {
+ text-align: center;
+}
#iconbar, #banner, #content, #message_list_hdr, #message_list, #preview_pane {
text-align: left;
}
#message_list_body {
background-color: white !important;
}
+#message_list_body > tr > td {
+ overflow-y: hidden;
+ overflow-x: hidden; /* stop long subjects overflowing */
+}
.col1 {
width: 50%;
}
vertical-align: middle;
border: none;
}
-.table-row {
- background-color: white;
-}
-.table-alt-row {
- background-color: #DDDDDD;
+.table-row, .table-alt-row {
+ width: 100%;
}
.stickynote_outer {