diff --git a/index.html b/index.html index 54a2820..95a0723 100755 --- a/index.html +++ b/index.html @@ -5,10 +5,12 @@ Prog Web Legend + +
diff --git a/js/technologie.js b/js/technologie.js index 6c58b0b..32e22ad 100644 --- a/js/technologie.js +++ b/js/technologie.js @@ -7,7 +7,7 @@ class Technologie{ fetch("../bdd/arbre.json").then((data)=>{ data.json().then((data)=>{ console.log(data) - this.props = data[this.nom] + this.props = data["technologies"][this.nom] this.cout = this.props.cout this.boost = this.props.boost }) @@ -15,4 +15,9 @@ class Technologie{ }) } + appliquer_amelioration_style(){ + document.getElementById("link-css").setAttribute("href","css/"+this.props.css_id) + } + + } \ No newline at end of file