From c8a0c55f0154f194b1c5389fb8a05cf053177b71 Mon Sep 17 00:00:00 2001 From: Michal Wasiak Date: Fri, 4 Jul 2025 16:59:20 +1000 Subject: [PATCH 1/6] Task 01 done --- 01/app.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/01/app.js b/01/app.js index 1c9992ed..c9b77869 100644 --- a/01/app.js +++ b/01/app.js @@ -1 +1,11 @@ -console.log('DOM'); \ No newline at end of file +console.log('DOM'); +let sum = 0; +const commentsItems = document.querySelector('.comments__item.comments__item--newest'); +if (commentsItems) { + console.log(commentsItems); + const dataInfoElements = commentsItems.querySelectorAll('[data-info]'); + if (dataInfoElements) { + console.log('data-info wystepuje ' + dataInfoElements.length + ' razy'); + } + } + From 0ff36facbf0dfc038977634074aed7d9968eb3ce Mon Sep 17 00:00:00 2001 From: Michal Wasiak Date: Wed, 9 Jul 2025 21:08:43 +1000 Subject: [PATCH 2/6] Task 04 done --- 04/app.js | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 67 insertions(+), 4 deletions(-) diff --git a/04/app.js b/04/app.js index e6411e4e..1e2b8570 100644 --- a/04/app.js +++ b/04/app.js @@ -1,8 +1,71 @@ console.log('DOM'); +// Utwórz poniższą strukturę menu za pomocą JS: + +// +// Całość wstaw do elementu