Changeset 4244 for trunk/licqweb

Show
Ignore:
Timestamp:
10/01/05 15:45:58 (3 years ago)
Author:
phatfil
Message:

fix displaying return characters in sent messages
fix some indentation

Location:
trunk/licqweb
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/licqweb/CHANGELOG

    r4228 r4244  
    33- get sent message timestamp from server 
    44- use event tags from rms properly in rmsSendMessage() 
    5 - window focus issues 
     5- sent messages with return characters get displayed properly 
     6- added aim icons 
  • trunk/licqweb/index.php

    r4237 r4244  
    1919    </div> 
    2020    <div id="contactList" class="box" style="left:10px;top:150px;display:none;"> 
    21       <div class="bar" onmousedown="init_drag(event, 'contactList')" id="nick">licqweb</div> 
    22       <div id="contacts"></div> 
    23       <div id="ownerStatus"></div> 
     21        <div class="bar" onmousedown="init_drag(event, 'contactList')" id="nick">licqweb</div> 
     22        <div id="contacts"></div> 
     23        <div id="ownerStatus"></div> 
    2424    </div> 
    2525    <div id="statusMenu"></div> 
     
    3030    $fd = fopen("http://www.licq.org/licqweb-news.txt", "r"); 
    3131    if (!$fd) 
    32       $fd = fopen("http://www.thejon.org/licqweb-news.txt", "r"); 
    33         if ($fd) 
    34     { 
    35           $str = ""; 
    36           while(!feof($fd)) 
    37             $str .= fread($fd, 4096); 
    38           fclose($fd); 
     32        $fd = fopen("http://www.thejon.org/licqweb-news.txt", "r"); 
     33    if ($fd) { 
     34        $str = ""; 
     35        while(!feof($fd)) 
     36            $str .= fread($fd, 4096); 
     37        fclose($fd); 
    3938    } 
    40  
    41         echo "<div id=\"newsid\" class=\"news\"><div class=\"bar\">News</div>".$str."</div>\n"; 
     39    echo "<div id=\"newsid\" class=\"news\"><div class=\"bar\">News</div>".$str."</div>\n"; 
    4240?> 
    4341    </body> 
  • trunk/licqweb/licqweb.css

    r4234 r4244  
    184184 
    185185.news { 
    186         position: absolute; 
    187         top: 300; 
    188         right: 0; 
    189         bottom: 0; 
    190         left: 0; 
    191         width: 300px; 
    192         height: 100px; 
    193         margin: auto; 
    194         background-color: #aaf; 
    195         color: white; 
     186    position: absolute; 
     187    top: 300; 
     188    right: 0; 
     189    bottom: 0; 
     190    left: 0; 
     191    width: 300px; 
     192    height: 100px; 
     193    margin: auto; 
     194    background-color: #aaf; 
     195    color: white; 
    196196} 
    197197.centre { 
  • trunk/licqweb/licqweb.js

    r4237 r4244  
    154154    } 
    155155    contacthtml = ""; 
    156         var aimLower = 'abcdefghijklmnopqrstuvwxyz'; 
    157         var aimUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 
     156    var aimLower = 'abcdefghijklmnopqrstuvwxyz'; 
     157    var aimUpper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; 
    158158    for (var status in statuss) { 
    159159        j = sortedContacts[status].length; 
     
    161161            var contact = sortedContacts[status][i]; 
    162162            var uclass = contact.status; 
    163                         var pp = ""; 
    164                         if (contact.pp.toLowerCase() == "licq" && 
    165                             (aimLower.indexOf(contact.id.charAt(0), 0) != -1 || 
    166                              aimUpper.indexOf(contact.id.charAt(0), 0) != -1)){ 
    167   
     163            var pp = ""; 
     164            if (contact.pp.toLowerCase() == "licq" && 
     165                (aimLower.indexOf(contact.id.charAt(0), 0) != -1 || 
     166                aimUpper.indexOf(contact.id.charAt(0), 0) != -1)) { 
    168167                pp = "aim"; 
     168            } else { 
     169                pp = contact.pp.toLowerCase(); 
    169170            } 
    170                         else { 
    171                           pp = contact.pp.toLowerCase(); 
    172             } 
    173                         
    174171            var imgsrc = "images/" + pp + "." + contact.status.toLowerCase() + ".png"; 
    175172            if (parseInt(contact.nummsgs) > 0) { 
     
    254251    var txt = document.getElementById(message.id + '-' + message.pp + '-txt'); 
    255252    if (res == "done.") { 
    256         txt.innerHTML += "(" + ts + ") " + nick + ": " + message.message + "<br/>"; 
     253        txt.innerHTML += "(" + ts + ") " + nick + ": " + message.message.replace(/[\r\n]+/g, "<br/>") + "<br/>"; 
    257254    } else { 
    258255        txt.innerHTML += "--- Message failed!<br/>"; 
  • trunk/licqweb/TODO

    r4238 r4244  
    22* fix plaintext passwords 
    33* fix invisible status images 
    4 * return characters in sent messages 
    54* html tags in user nicks + messages (should show unallowed html as plain text) 
    65* messages from offline users 
     6* focus issues 
    77 
    88Other: