X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=index.html;h=25fdb39eee032dcee234174ae382bfdac64302ed;hp=a7f197858bf96d1a5827236ac3a14039c6323ee2;hb=8e82934389a8bb1b9ea4e1d784bd163d29a7e48f;hpb=99c236235ea97b892efd200506f7c20463a5be46 diff --git a/index.html b/index.html index a7f1978..25fdb39 100644 --- a/index.html +++ b/index.html @@ -272,9 +272,9 @@ var $body = $('body'); var socket = io.connect('http://localhost'); var color_to_css = function(i) { - index = i & 0xff + index = 0xff & i; // lighten the basic 8 colors when they're bold - if (i & 0x10000 && index < 8) { + if ((i & 0x10000) && index < 8) { index += 8; } return 'color: #' + palette[index] + '; ';