Skip to content

Commit

Permalink
lab6
Browse files Browse the repository at this point in the history
  • Loading branch information
Lofranlof committed Dec 4, 2023
1 parent 1dbf766 commit 07742d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions JS/records.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ document.addEventListener('DOMContentLoaded', async function () {
const userCardTemplate = document.getElementById('user_card_template');
users.forEach(user => {
const userCard = document.importNode(userCardTemplate.content, true);
userCard.querySelector('.user_info.nickname').textContent = 'Nickname: ${user.nickname}';
userCard.querySelector('.user_info.date').textContent = 'Date of the record: ${user.date}';
userCard.querySelector('.user_info.wellbeing').textContent = 'Wellbeing: ${user.wellbeing}';
userCard.querySelector('.user_info.benchpress').textContent = 'Bench Press: ${user.benchpress} kg';
userCard.querySelector('.user_info.squat').textContent = 'Squat: ${user.squat} kg';
userCard.querySelector('.user_info.deadlift').textContent = 'Deadlift: ${user.deadlift} kg';
userCard.querySelector('.user_info.nickname').textContent = `Nickname: ${user.nickname}`;
userCard.querySelector('.user_info.date').textContent = `Date of the record: ${user.date}`;
userCard.querySelector('.user_info.wellbeing').textContent = `Wellbeing: ${user.wellBeing}`;
userCard.querySelector('.user_info.benchpress').textContent = `Bench Press: ${user.benchPress} kg`;
userCard.querySelector('.user_info.squat').textContent = `Squat: ${user.squat} kg`;
userCard.querySelector('.user_info.deadlift').textContent = `Deadlift: ${user.deadlift} kg`;
userCardsContainer.appendChild(userCard);
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="UTF-8">
<link href="/CSS/style.css" rel="stylesheet">
<link href="CSS/style.css" rel="stylesheet">
<script src="JS/timeToLoad.js"></script>
<title>YeahBuddy!</title>
</head>
Expand Down

0 comments on commit 07742d3

Please sign in to comment.