From 6154fd5659ef353da5c8e79bb59692a3e6332f48 Mon Sep 17 00:00:00 2001 From: nxn Date: Fri, 18 Feb 2022 04:38:26 +0300 Subject: [PATCH 1/8] home work_1 --- 01/1.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/01/1.html b/01/1.html index 58bedc6..8ffbac3 100644 --- a/01/1.html +++ b/01/1.html @@ -1,11 +1,13 @@ + Homework + - - + + \ No newline at end of file From 751a13ddf0ede3bcf4727382eefd322a85d13d52 Mon Sep 17 00:00:00 2001 From: nxn Date: Tue, 1 Mar 2022 03:24:23 +0300 Subject: [PATCH 2/8] home work 2 --- 01/1.html | 5 ++-- 01/2.html | 1 + 01/3.html | 1 + 02/1.html | 53 +++++++++++++++++++++++++++++++++++++ 02/2.html | 33 +++++++++++++++++++++++ 02/3.html | 38 +++++++++++++++++++++++++++ 02/4.html | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 02/5.html | 62 +++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 269 insertions(+), 2 deletions(-) create mode 100644 02/1.html create mode 100644 02/2.html create mode 100644 02/3.html create mode 100644 02/4.html create mode 100644 02/5.html diff --git a/01/1.html b/01/1.html index 8ffbac3..aa2a4f1 100644 --- a/01/1.html +++ b/01/1.html @@ -3,14 +3,14 @@ - Homework + Homework. + + \ No newline at end of file diff --git a/02/2.html b/02/2.html new file mode 100644 index 0000000..72eea7d --- /dev/null +++ b/02/2.html @@ -0,0 +1,33 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/02/3.html b/02/3.html new file mode 100644 index 0000000..63aa31f --- /dev/null +++ b/02/3.html @@ -0,0 +1,38 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/02/4.html b/02/4.html new file mode 100644 index 0000000..76efa40 --- /dev/null +++ b/02/4.html @@ -0,0 +1,78 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/02/5.html b/02/5.html new file mode 100644 index 0000000..598293e --- /dev/null +++ b/02/5.html @@ -0,0 +1,62 @@ + + + + + Homework + + + + + + \ No newline at end of file From 448fb6ccfb39b3e14692ff64ee3907ec0216caa0 Mon Sep 17 00:00:00 2001 From: nxn Date: Mon, 14 Mar 2022 00:42:21 +0300 Subject: [PATCH 3/8] home work 3 --- 03/1.html | 35 ++++++++++++++++++++++++++++++ 03/2.html | 49 ++++++++++++++++++++++++++++++++++++++++++ 03/3.html | 38 +++++++++++++++++++++++++++++++++ 03/4.html | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 03/5.html | 29 +++++++++++++++++++++++++ 03/6.html | 33 ++++++++++++++++++++++++++++ 6 files changed, 248 insertions(+) create mode 100644 03/1.html create mode 100644 03/2.html create mode 100644 03/3.html create mode 100644 03/4.html create mode 100644 03/5.html create mode 100644 03/6.html diff --git a/03/1.html b/03/1.html new file mode 100644 index 0000000..1ff71e2 --- /dev/null +++ b/03/1.html @@ -0,0 +1,35 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/03/2.html b/03/2.html new file mode 100644 index 0000000..280ac52 --- /dev/null +++ b/03/2.html @@ -0,0 +1,49 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/03/3.html b/03/3.html new file mode 100644 index 0000000..c8ece26 --- /dev/null +++ b/03/3.html @@ -0,0 +1,38 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/03/4.html b/03/4.html new file mode 100644 index 0000000..e90ad56 --- /dev/null +++ b/03/4.html @@ -0,0 +1,64 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/03/5.html b/03/5.html new file mode 100644 index 0000000..90cdfda --- /dev/null +++ b/03/5.html @@ -0,0 +1,29 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/03/6.html b/03/6.html new file mode 100644 index 0000000..203bf9c --- /dev/null +++ b/03/6.html @@ -0,0 +1,33 @@ + + + + + Homework + + + + + + \ No newline at end of file From 4ac46c4948ec1b58e70374569ce09f6b8c32159c Mon Sep 17 00:00:00 2001 From: nxn Date: Mon, 14 Mar 2022 00:47:46 +0300 Subject: [PATCH 4/8] home work 4 --- 04/1.html | 53 +++++++++++++++++++++++++ 04/2.html | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 04/3.html | 58 +++++++++++++++++++++++++++ 3 files changed, 226 insertions(+) create mode 100644 04/1.html create mode 100644 04/2.html create mode 100644 04/3.html diff --git a/04/1.html b/04/1.html new file mode 100644 index 0000000..9bca39e --- /dev/null +++ b/04/1.html @@ -0,0 +1,53 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/04/2.html b/04/2.html new file mode 100644 index 0000000..3fb2c44 --- /dev/null +++ b/04/2.html @@ -0,0 +1,115 @@ + + + + + Homework + + + + + + \ No newline at end of file diff --git a/04/3.html b/04/3.html new file mode 100644 index 0000000..66b7391 --- /dev/null +++ b/04/3.html @@ -0,0 +1,58 @@ + + + + + Homework + + + + + + \ No newline at end of file From 2b60c0ca4f13b6dd86c4f19d72974eacc7fda192 Mon Sep 17 00:00:00 2001 From: nxn Date: Mon, 21 Mar 2022 00:07:43 +0300 Subject: [PATCH 5/8] home_work_5 --- 05/1.html | 94 ++++++++++++++++++++++++++++++++++++++++++ 05/2.html | 89 ++++++++++++++++++++++++++++++++++++++++ 05/3.html | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 302 insertions(+) create mode 100644 05/1.html create mode 100644 05/2.html create mode 100644 05/3.html diff --git a/05/1.html b/05/1.html new file mode 100644 index 0000000..67e2668 --- /dev/null +++ b/05/1.html @@ -0,0 +1,94 @@ + + + + + Homework + + + + +Card link +Another link + +
+
+
Card title
+
Card subtitle
+

+ Some quick example text to build on the card title and make up the bulk of the card's + content. +

+ Card link + Another link +
+
+ + + + \ No newline at end of file diff --git a/05/2.html b/05/2.html new file mode 100644 index 0000000..10031b0 --- /dev/null +++ b/05/2.html @@ -0,0 +1,89 @@ + + + + + Homework + + + + + + + + + + \ No newline at end of file diff --git a/05/3.html b/05/3.html new file mode 100644 index 0000000..2e53487 --- /dev/null +++ b/05/3.html @@ -0,0 +1,119 @@ + + + + + Homework + + + + +

Привет

+ + + + + + + + + +
+ + + + + +
+ + + +
+ +
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+ + + + \ No newline at end of file From b5c6df7abf8dd7f222f83194109796b5a378b226 Mon Sep 17 00:00:00 2001 From: nxn Date: Mon, 11 Apr 2022 04:35:22 +0300 Subject: [PATCH 6/8] home work 6 --- 06/1.html | 106 +++++++++++++++++++++++++++++++++++++++++ 06/2.html | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 06/3.html | 88 ++++++++++++++++++++++++++++++++++ 3 files changed, 334 insertions(+) create mode 100644 06/1.html create mode 100644 06/2.html create mode 100644 06/3.html diff --git a/06/1.html b/06/1.html new file mode 100644 index 0000000..9301550 --- /dev/null +++ b/06/1.html @@ -0,0 +1,106 @@ + + + + + Homework + + + + +
+
Товар 1
+ + +
+
+
Товар 2
+ + +
+
+
Товар 3
+ + +
+ + + + \ No newline at end of file diff --git a/06/2.html b/06/2.html new file mode 100644 index 0000000..fb65d4c --- /dev/null +++ b/06/2.html @@ -0,0 +1,140 @@ + + + + + Homework + + + + + + + +В инпуте написано: + +
+ + +
+ Привет :) +
+ +
+ +
+ +
+
+ +
+
+ +

+ +

+
+ +
+ + + + \ No newline at end of file diff --git a/06/3.html b/06/3.html new file mode 100644 index 0000000..e00b1aa --- /dev/null +++ b/06/3.html @@ -0,0 +1,88 @@ + + + + + + Document + + + + + + +
+ +
+ + + + \ No newline at end of file From a94d68b164da06e04a4d48eaaf30091a1080835d Mon Sep 17 00:00:00 2001 From: nxn Date: Wed, 27 Apr 2022 00:05:42 +0300 Subject: [PATCH 7/8] home_work_7 --- 07/1.html | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 07/2.html | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 07/1.html create mode 100644 07/2.html diff --git a/07/1.html b/07/1.html new file mode 100644 index 0000000..8535b89 --- /dev/null +++ b/07/1.html @@ -0,0 +1,91 @@ + + + + + Homework + + + + + +
+ + +
Уверен, ты справишься с этим заданием!
+ + +
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quaerat, expedita. +
+
+ + + + \ No newline at end of file diff --git a/07/2.html b/07/2.html new file mode 100644 index 0000000..abdabe9 --- /dev/null +++ b/07/2.html @@ -0,0 +1,91 @@ + + + + + + Document + + + +
+ + + +
+ +
+ + + + \ No newline at end of file From 9de57f996bf1208fdb76ce9d77b0a5a745ccdc1a Mon Sep 17 00:00:00 2001 From: nxn Date: Wed, 27 Apr 2022 15:49:54 +0300 Subject: [PATCH 8/8] home work 7 add 2 lesson --- 07/1.html | 14 +++++++------- 07/2.html | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/07/1.html b/07/1.html index 8535b89..d6783c4 100644 --- a/07/1.html +++ b/07/1.html @@ -54,14 +54,13 @@ прописан в объекте panelText (вам необходимо определить самостоятельно, что общего между данной в html версткой и объектом ниже). */ + const textDiv = document.querySelector('.text') document.querySelector('.nav').addEventListener('click', (event) => { - if (event.target.classList.contains('nav-link')) { event.currentTarget.querySelector('.active').classList.remove('active'); event.target.classList.add('active'); - document.querySelector('#inputDiv').textContent = panelText[event.target.parentNode.dataset.text]; + textDiv.textContent = panelText[event.target.parentNode.dataset.text]; } - }); const panelText = { @@ -77,12 +76,13 @@ шрифт у текста, никакого резкого увеличения шрифта не должно быть при перетаскивании ползунка. */ - - document.querySelector('input').addEventListener('input', (event)=>{ - const resDiv = document.querySelector('#inputDiv'); + const resDiv = document.querySelector('#inputDiv'); + const input = document.querySelector('input'); + resDiv.style.fontSize = input.value + 'px'; + input.addEventListener('input', (event) =>{ resDiv.style.WebkitTransition = 'font-size .25s'; resDiv.style.MozTransition = 'font-size .25s'; - resDiv.style.fontSize = event.target.value+'px'; + resDiv.style.fontSize = event.target.value + 'px'; }); diff --git a/07/2.html b/07/2.html index abdabe9..4a93926 100644 --- a/07/2.html +++ b/07/2.html @@ -50,10 +50,10 @@ getProductMarkup() { return `
-
${name}
- -
Цена: ${price} р.
- Подробнее +
${this.name}
+ +
Цена: ${this.price} р.
+ Подробнее
`; } @@ -77,13 +77,13 @@ ], }; - const productsEl = document.querySelector('products'); + const productsEl = document.querySelector('.products'); document.querySelector('header').addEventListener('click', event => { - if (!event.currentTarget.classList.contains('.menuButton')) { - return; - } - productsEl.innerHTML = products[event.currentTarget.dataset.type] - .map(product => product.getProductMarkup()); + if (!event.target.classList.contains('.menuButton')) { + const res = products[event.target.dataset.type] + .map(product => product.getProductMarkup()); + productsEl.innerHTML = res.join(''); + } });