diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-11 15:16:42 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 15:16:42 +0200 |
| commit | d3cacedf337e851d678c182c901d3dcf17fc25fa (patch) | |
| tree | 27e79d03b4c0fb581b175fd785d95fa8c56a132b /scripts/view | |
| parent | 758d24c1bef78d1ac3dc2b8b3141436f5124428b (diff) | |
rz_core: split off view/helpers
Diffstat (limited to 'scripts/view')
| -rw-r--r-- | scripts/view/helpers.js | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/scripts/view/helpers.js b/scripts/view/helpers.js new file mode 100644 index 00000000..9926049f --- /dev/null +++ b/scripts/view/helpers.js @@ -0,0 +1,40 @@ +define(function() { +function customColor(type) { + var color; + switch (type) { + case "person": + color = '#FCB924'; + break; + case "project": + color = '#009DDC'; + break; + case "skill": + color = '#62BB47'; + break; + case "deliverable": + color = '#202020'; + break; + case "objective": + color = '#933E99'; + break; + case "empty": + color = "#080808"; + break; + case "chainlink": + color = "#fff"; + break; + case "bubble": + color = "rgba(0,0,0,0.2)"; + break; + default: + console.log('bug: unknown type ' + type); + color = '#080808'; + break; + } + return color; +} + +return { + customColor: customColor, +}; +}); |
