@ -109,9 +116,9 @@ for (i= 0; i < color_loops; i++) {
});
});
}
}
return false;
return false;
}
}
function get_color(d) {
function get_color(d) {
depth = d.depth;
depth = d.depth;
if (d.family_id) {
if (d.family_id) {
/*var p = color_patterns[d.family_id];
/*var p = color_patterns[d.family_id];
@ -132,20 +139,20 @@ for (i= 0; i < color_loops; i++) {
}
}
color = '#fefefe';
color = '#fefefe';
return color; //missing colors
return color; //missing colors
}
}
/*
gray tones for all skills that have no particular property ("Basic skills wheel" view)
yellow tones for skills that are provided by courses in Chamilo ("Teachable skills" view)
bright blue tones for personal skills already acquired by the student currently looking at the weel ("My skills" view)
dark blue tones for skills already acquired by a series of students, when looking at the will in the "Owned skills" view.
bright green for skills looked for by a HR director ("Profile search" view)
dark green for skills most searched for, summed up from the different saved searches from HR directors ("Most wanted skills")
bright red for missing skills, in the "Required skills" view for a student when looking at the "Most wanted skills" (or later, when we will have developed that, for the "Matching position" view)
*/
/* Manage the partition colors */
/*
function set_skill_style(d, attribute, searched_skill_id) {
gray tones for all skills that have no particular property ("Basic skills wheel" view)
yellow tones for skills that are provided by courses in Chamilo ("Teachable skills" view)
bright blue tones for personal skills already acquired by the student currently looking at the weel ("My skills" view)
dark blue tones for skills already acquired by a series of students, when looking at the will in the "Owned skills" view.
bright green for skills looked for by a HR director ("Profile search" view)
dark green for skills most searched for, summed up from the different saved searches from HR directors ("Most wanted skills")
bright red for missing skills, in the "Required skills" view for a student when looking at the "Most wanted skills" (or later, when we will have developed that, for the "Matching position" view)
*/
/* Manage the partition colors */
function set_skill_style(d, attribute, searched_skill_id) {
//Default stroke
//Default stroke
return_stroke = 'black';
return_stroke = 'black';
@ -187,10 +194,10 @@ for (i= 0; i < color_loops; i++) {
return return_stroke;
return return_stroke;
break;
break;
}
}
}
}
/* When you click a skill partition */
/* When you click a skill partition */
function click_partition(d, path, text, icon, arc, x, y, r, p, vis) {
function click_partition(d, path, text, icon, arc, x, y, r, p, vis) {
//console.log(d.depth);
//console.log(d.depth);
if (debug) {
if (debug) {
console.log('Clicking a partition skill id: '+d.id);
console.log('Clicking a partition skill id: '+d.id);
@ -288,12 +295,12 @@ for (i= 0; i < color_loops; i++) {