From 07742d32722d7de4e93e8c670f3deac49b906b18 Mon Sep 17 00:00:00 2001 From: Ruslan Date: Mon, 4 Dec 2023 19:46:40 +0300 Subject: [PATCH] lab6 --- JS/records.js | 12 ++++++------ index.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/JS/records.js b/JS/records.js index d001db3..639b481 100644 --- a/JS/records.js +++ b/JS/records.js @@ -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 { diff --git a/index.html b/index.html index e960762..0bf845c 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + YeahBuddy!