-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.js
More file actions
45 lines (43 loc) · 769 Bytes
/
settings.js
File metadata and controls
45 lines (43 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var activities = {
8 : {
id : 8,
name : "Design",
color : "#952d98"
},
9 : {
id : 9,
name : "Development",
color : "#F3D311"
}
};
var projectsInfo = {
1 : {
id : 1,
name : 'Sample Project',
color : '#952d98',
activities : [
activities[8],
activities[9],
activities[10],
activities[17]
]
},
2 : {
id : 2,
name : 'Sample Project 2',
color : '#F3D311',
activities : [
activities[8],
activities[9]
]
}
};
function getProjectColor(projectId)
{
if(projectsInfo[projectId] != undefined) {
return projectsInfo[projectId].color;
} else {
console.log ('no project information for id ' + projectId);
return 'black';
}
}