From 319da55b31b57557848fe6a60fed612532bff71a Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Thu, 14 Feb 2013 00:44:31 -0800 Subject: Chat restyled. --- pages/chat.php | 110 ++++++--------------------------------------------------- 1 file changed, 11 insertions(+), 99 deletions(-) (limited to 'pages/chat.php') diff --git a/pages/chat.php b/pages/chat.php index ff61294..a29cf36 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -1,6 +1,6 @@ Please login to chat!"; } -?> - +?> @@ -161,16 +71,13 @@ function getChatDone(data) { p = ''; p = p+ "
"; p = p+ " ["+timestamp+"]"; - p = p+ "
"; - - p = p+ "
"; p = p+ "
"; p = p+ "
"; p = p+ "
"; p = p+ "
"; p = p+ "
"; - p = p+ "
"; + p = p+ "
"; p = p+ ""; p = p+ user.displayName+":"; @@ -182,15 +89,20 @@ function getChatDone(data) { lastID = user.ID; - items.unshift('
' + p + '
'); + var strClass = ''; + console.log('cpm', user.userID, userObj.ID); + if (user.userID == userObj.ID) { + strClass += ' self'; + } + + items.unshift('
' + p + '
'); newChats = true; }); //console.log("BUILD DONE"); if (newChats) { - if (chatTimerDelay > chatTimerDelayLower) - chatTimerDelay -= 1000; + if (chatTimerDelay > chatTimerDelayLower) chatTimerDelay -= 1000; var new_chatDiv = $('
', { 'class': 'my-new-list', -- cgit v1.2.3