Skip to content

Instantly share code, notes, and snippets.

@martindale
Created November 7, 2012 22:17
Show Gist options
  • Save martindale/4034888 to your computer and use it in GitHub Desktop.
Save martindale/4034888 to your computer and use it in GitHub Desktop.
discotymeplaes
var e=!1,f=function(){var d=function(){var b=Math.floor(Math.random()*255),a=Math.floor(Math.random()*255),c=Math.floor(Math.random()*255);return"rgb("+b+","+a+","+c+")"},h=function(){jQuery("p, li, h1, h2, h3, div, span, a, input").each(function(b,a){if(jQuery(a).children().size()==0&&!jQuery(a).hasClass("partying")){var c=jQuery(a).text().split(" "),c=jQuery.map(jQuery.makeArray(c),function(a){return"<b style=\"color:"+d()+";display:inline ! important;font-size:auto ! important;font-weight:inherit ! important\" class=\"partying\">"+a+"</b>"});jQuery(a).html(c.join(" "))}});jQuery(".partying").each(function(b,a){jQuery(a).css("color",d())})},g=function(){setTimeout(function(){h();g();jQuery("body").css("background-color",d())},100)};g()};f();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment