forked from ScoDoc/ScoDoc
Merge branch 'master' of https://scodoc.org/git/viennet/ScoDoc into edt
This commit is contained in:
commit
97ec0524c4
@ -66,10 +66,7 @@ class ref_competences extends HTMLElement {
|
||||
let divCompetence = document.createElement("div");
|
||||
divCompetence.innerText = `${competence} ${niveauCle.niveau}`;
|
||||
divCompetence.style.gridRowStart = annee;
|
||||
divCompetence.style.gridColumnStart = competence.replaceAll(
|
||||
" ",
|
||||
"_"
|
||||
);
|
||||
divCompetence.style.gridColumnStart = competence.replaceAll(" ","_").replaceAll("'", "_");
|
||||
divCompetence.className = "comp" + numComp;
|
||||
divCompetence.dataset.competence = `${competence} ${niveauCle.niveau}`;
|
||||
divCompetence.addEventListener("click", (event) => {
|
||||
@ -88,9 +85,9 @@ class ref_competences extends HTMLElement {
|
||||
let gridTemplate = "";
|
||||
Object.keys(this.data.competences).forEach((competence) => {
|
||||
if (competencesBucket.indexOf(competence) == -1) {
|
||||
gridTemplate += `[${competence.replaceAll(" ", "_")}] 0`;
|
||||
gridTemplate += `[${competence.replaceAll(" ", "_").replaceAll("'", "_")}] 0`;
|
||||
} else {
|
||||
gridTemplate += `[${competence.replaceAll(" ", "_")}] 1fr`;
|
||||
gridTemplate += `[${competence.replaceAll(" ", "_").replaceAll("'", "_")}] 1fr`;
|
||||
}
|
||||
});
|
||||
this.shadow.querySelector(".competences").style.gridTemplateColumns =
|
||||
|
Loading…
Reference in New Issue
Block a user