Permalink
Browse files

DUDE

  • Loading branch information...
1 parent df631a6 commit 11c6cb849a57780c402e42b666aef7ab6cbc3bbf @whitequark committed Dec 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/application.js
View
@@ -30,8 +30,9 @@ function afterUpdate(where) {
if(this.innerHTML.indexOf("nebkat") != -1) {
var name = this.textContent, newContent = "";
for(var i = 0; i < name.length; i++) {
- var color = Math.floor(Math.random(10) * 16) + 1;
- newContent += "<span class='nick-" + color + "'>" + name[i] + "</span>";
+ var color = "color:rgb(" + (55 + Math.floor((Math.random()*200)+1)) + "," + (55 + Math.floor((Math.random()*200)+1)) + "," + (55 + Math.floor((Math.random()*200)+1)) + ")"
+
+ newContent += "<span style='" + color + "'>" + name[i] + "</span>";
}
this.innerHTML = newContent;
}

0 comments on commit 11c6cb8

Please sign in to comment.