From 61fbf81dcd61064bd2e84fbb74a3a4815fb1d7af Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 5 Feb 2016 11:55:37 +0100 Subject: [PATCH] factor out rainbow stuff into rainbow.js --- www/render/main.js | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/www/render/main.js b/www/render/main.js index ba19b32ea..0f7e3e7fd 100644 --- a/www/render/main.js +++ b/www/render/main.js @@ -5,9 +5,10 @@ define([ '/common/crypto.js', '/common/marked.js', '/common/convert.js', + '/common/rainbow.js', '/bower_components/jquery/dist/jquery.min.js', '/customize/pad.js' -], function (Config, Realtime, Messages, Crypto, Marked, Convert) { +], function (Config, Realtime, Messages, Crypto, Marked, Convert, Rainbow) { var $ = jQuery; var Vdom = Convert.core.vdom, @@ -57,33 +58,7 @@ define([ }; }()); - window.colour = (function () { - var r = 0.6, - n = 24, - i = 0, - t = [], - rgb = [0,2,4]; - - while(i