This commit is contained in:
HarmandI 2021-10-20 14:14:35 +02:00
parent 0f71011bc1
commit 3f924cd45c
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const PERSONNAGES = document.getElementById("resultats");
class People { class People {
constructor(birth_year, eye_colo, gender, hair_color, height, mass, skin_color) { constructor(birth_year, eye_color, gender, hair_color, height, mass, skin_color) {
this.birth_year = birth_year; this.birth_year = birth_year;
this.eye_colo = eye_colo; this.eye_colo = eye_colo;
this.gender = gender; this.gender = gender;
@ -54,7 +54,7 @@ function remplissage(json) {
for (let i = 0; i < PERPAGE; i++) { for (let i = 0; i < PERPAGE; i++) {
const urlbirth_year = json.results[i].birth_year; const urlbirth_year = json.results[i].birth_year;
const urleye_colo = json.results[i].eye_colo; const urleye_color = json.results[i].eye_color;
const urlgender = json.results[i].gender; const urlgender = json.results[i].gender;
const urlhair_color = json.results[i].hair_color; const urlhair_color = json.results[i].hair_color;
const urlheight = json.results[i].height; const urlheight = json.results[i].height;
@ -75,7 +75,7 @@ function remplissage(json) {
<div class="accordeon_item_body"> <div class="accordeon_item_body">
<div class="column1"> <div class="column1">
<div id=annéeNaissance>Année de Naissance : ${urlbirth_year} </div> <div id=annéeNaissance>Année de Naissance : ${urlbirth_year} </div>
<div id=couleurYeux> Couleur des Yeux : ${urleye_colo}</div> <div id=couleurYeux> Couleur des Yeux : ${urleye_color}</div>
<div id=genre>Genre : ${urlgender}</div> <div id=genre>Genre : ${urlgender}</div>
<div id=couleurCheveux> Couleur des Cheveux : ${urlhair_color} </div> <div id=couleurCheveux> Couleur des Cheveux : ${urlhair_color} </div>
<div id= poids> Poids du personnage : ${urlmass} kg</div> <div id= poids> Poids du personnage : ${urlmass} kg</div>