Guest User

tlkfast+list

a guest
Jul 30th, 2013
130
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: var idcolor = new Array(); var clrList = new Array("#ffeff9", "#ffede6", "#ffe8ff", "#ffffeb", "#faf2bc", "#fffff9", "#cdffff", "#fae6f9", "#e2f2fe", "#fdfdfd", "#edf9d7", "#d6fada", "#f9ebe9", "#d9f2f8", "#dbf8ef", "#fff8ff", "#d7ffff", "#e3dcf9", "#ffebff", "#fffeff", "#fefee8", "#e8e8e8", "#edf8dd", "#fac8be", "#eef3f4", "#d6f7ed", "#f9efdd", "#dfecf9", "#fcf9ce", "#f5f8d7", "#f1ffff", "#aae4ff", "#eaf9de", "#f9e8f3", "#e0f6f9", "#c0f9d2", "#fffaff", "#cedcb8"); function clrSet() { var items = $("#online-participants .participant-list-item"); for (var i = 0; i < items.length; i++) { if (!idcolor[items[i].id]) { idcolor[items[i].id] = clrList[i]; } $('.' + items[i].id).css('background-color', idcolor[items[i].id]); $('li#' + items[i].id).css('background-color',idcolor[items[i].id]); } } clrSet(); socket.on('message', function (message) { clrSet(); }); socket.onerror('message', function (message) { clrSet(); });
RAW Paste Data