fix class data

This commit is contained in:
HediMjid 2021-10-20 12:45:05 +02:00
parent ad34def515
commit 96a83927db
2 changed files with 6 additions and 5 deletions

View File

@ -54,10 +54,11 @@ class People {
<h3>Gender :</h3> <h3>Gender :</h3>
<p>${this.gender}</p> <p>${this.gender}</p>
</div> </div>
<div class="data">
<button class="films" value="${this.films}">Voir les films +</button> <button class="films" value="${this.films}">Voir les films +</button>
<div id="detailsFilms${this.index}"></div> <div id="detailsFilms${this.index}"></div>
</div> </div>
</div>
</section> </section>
`; `;
} }

View File

@ -34,7 +34,7 @@ async function getPlanets() {
<h3>Rotation :</h3> <h3>Rotation :</h3>
<p>${ROTATION_PERIOD}</p> <p>${ROTATION_PERIOD}</p>
</div> </div>
<div> <div class="data">
<h3>ORBITAL :</h3> <h3>ORBITAL :</h3>
<p>${ORBITAL_PERIOD}</p> <p>${ORBITAL_PERIOD}</p>
</div> </div>
@ -212,7 +212,7 @@ function searchPeople() {
<h3>Rotation :</h3> <h3>Rotation :</h3>
<p>${results[i].rotation}</p> <p>${results[i].rotation}</p>
</div> </div>
<div> <div class="data">
<h3>ORBITAL :</h3> <h3>ORBITAL :</h3>
<p>${results[i].orbital}</p> <p>${results[i].orbital}</p>
</div> </div>