Created
January 16, 2012 01:43
Revisions
-
minikomi revised this gist
Jan 16, 2012 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ javascript:(function(){var divs=["normalBG","normalFG","commentFG","constantFG","strFG","specFG","identFG","keyFG","incFG","typeFG","funFG","repFG","opFG"];for(var i=1;i<myscopes.length;i++){var randcolstring="";for(var j=0;j<3;j++){var randcol=(Math.floor(Math.random()*256)).toString(16);if(randcol.length==1){randcol="0"+randcol;}randcolstring=randcolstring+randcol;myscopes[i]=randcolstring;}$("#"+divs[i]).ColorPickerSetColor(myscopes[i]);$("#"+divs[i]+" div").css("background-color","#"+myscopes[i]);$("."+divs[i]).css("color","#"+myscopes[i]);}})(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ var divs = ["normalBG", "normalFG", "commentFG", "constantFG", "strFG", "specFG", "identFG", "keyFG", "incFG", "typeFG", "funFG", "repFG", "opFG"]; for (var i = 1; i < myscopes.length; i++){ var randcolstring = ""; for(var j=0; j<3; j++){ var randcol = (Math.floor(Math.random() * 256)).toString(16); if(randcol.length == 1){ randcol = "0"+randcol;} -
minikomi created this gist
Jan 16, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ javascript:(function(){var divs=["normalBG","normalFG","commentFG","constantFG","strFG","specFG","identFG","keyFG","incFG","typeFG","funFG","repFG","opFG"];for(var i=1;i<myscopes.length;i++){randcolstring="";for(var j=0;j<3;j++){var randcol=(Math.floor(Math.random()*256)).toString(16);if(randcol.length==1){randcol="0"+randcol;}randcolstring=randcolstring+randcol;myscopes[i]=randcolstring;}$("#"+divs[i]).ColorPickerSetColor(myscopes[i]);$("#"+divs[i]+" div").css("background-color","#"+myscopes[i]);$("."+divs[i]).css("color","#"+myscopes[i]);}})(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ var divs = ["normalBG", "normalFG", "commentFG", "constantFG", "strFG", "specFG", "identFG", "keyFG", "incFG", "typeFG", "funFG", "repFG", "opFG"]; for (var i = 1; i < myscopes.length; i++){ randcolstring = ""; for(var j=0; j<3; j++){ var randcol = (Math.floor(Math.random() * 256)).toString(16); if(randcol.length == 1){ randcol = "0"+randcol;} randcolstring = randcolstring + randcol; myscopes[i] = randcolstring; } $("#" + divs[i]).ColorPickerSetColor(myscopes[i]); $("#" + divs[i] + " div").css("background-color", "#" + myscopes[i]); $("." + divs[i]).css("color", "#" + myscopes[i]); }