if(style & 0x20000) css += 'text-decoration: underline; ';
if(style & 0x40000) css += 'text-decoration: underline; '; // blink
if(style & 0x80000) css += 'text-decoration: line-through; '; // invisible
if(style & 0x20000) css += 'text-decoration: underline; ';
if(style & 0x40000) css += 'text-decoration: underline; '; // blink
if(style & 0x80000) css += 'text-decoration: line-through; '; // invisible
- if(style & 0x000ff) css += color_to_css(style & 0xff);
- if(style & 0x0ff00) css += bg_color_to_css((style & 0xff00) >> 8);
+ if(style & 0x000ff) css += color_to_css(style);
+ if(style & 0x0ff00) css += bg_color_to_css(style);
return $('<span style="'+css+'"></span>').text(txt);
}
socket.on('init', function (v) {
return $('<span style="'+css+'"></span>').text(txt);
}
socket.on('init', function (v) {