X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=client.coffee;h=c14c42657114c9a21f815ab8f8e853d634c7c931;hp=cf973f85a8f174be5ed6c2c2dceb2ff17c8314bb;hb=6360b697a9933ab36a683b0f443acfe227fc89ec;hpb=39e9d94e9556527642a06b39b1d14e35c0533d23 diff --git a/client.coffee b/client.coffee index cf973f8..c14c426 100644 --- a/client.coffee +++ b/client.coffee @@ -80,10 +80,10 @@ $ -> if (txt.length == 0 or style == 0x000007) return txt css = '' - css += 'font-weight: bold; ' if style & 0x10000 - css += 'text-decoration: underline; ' if style & 0x20000 - css += 'font-style: italic; ' if style & 0x40000 # blink - css += 'text-decoration: line-through; ' if style & 0x100000 # invisible + css += 'font-weight: bold; ' if style & 0x010000 + css += 'text-decoration: underline; ' if style & 0x020000 + css += 'font-style: italic; ' if style & 0x200000 # italic + css += 'opacity: 0; ' if style & 0x100000 # invisible css += color_to_css(style) if ((style & 0x0800ff) isnt 0x07) css += bg_color_to_css(style) if (style & 0x08ff00) return $('').text(txt)