Skip to content

Commit

Permalink
Update: Refactor text in index.html and loadTeachers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed May 20, 2024
1 parent 74058ef commit 2f4b087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ <h1 class="main-header-title-text2">cl</h1>
</div>
</div>
<div class="score">
<p class="score-title">Qualité d'enseignement</p>
<p class="score-title">Qualité des cours</p>
<div class="score-value">
<input id="ratingTeachingQuality" class="value" type="range" min="1" max="10" value="5" />
<p id="ratingText3">5</p>
Expand Down
6 changes: 2 additions & 4 deletions scripts/loadTeachers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ function addTeachers(teachers) {
<div class="standard-card-stars">
${getStarsHtml(
Math.round(
(teacher.teaching_quality +
teacher.kindness +
teacher.humor) /
(teacher.teaching_quality + teacher.kindness + teacher.humor) /
3
)
)}
Expand All @@ -73,7 +71,7 @@ function addTeachers(teachers) {
<p class="standart-card-stars-text">Humour</p>
<div class="standard-card-stars">${getStarsHtml(teacher.humor)}</div>
<p class="standart-card-stars-text">Qualité d'enseignement</p>
<p class="standart-card-stars-text">Qualité des cours</p>
<div class="standard-card-stars">
${getStarsHtml(teacher.teaching_quality)}
</div>
Expand Down

0 comments on commit 2f4b087

Please sign in to comment.