From 73c75a99f4340a3b70a267b0465ad58cc485491f Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Thu, 12 Dec 2024 17:09:54 +0200 Subject: [PATCH 01/20] init: init project --- .idea/.gitignore | 8 ++++++++ .idea/vcs.xml | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000..13566b81b0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000..d843f340d2 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file From 99131e013222e81248bbe93905cc0a5d0327a0f5 Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:06:30 +0200 Subject: [PATCH 02/20] fix(basic-2.2): add Html5 DOCTYPE tag --- .idea/clean-code-s1e1.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 4 +++- index.html | 1 + 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .idea/clean-code-s1e1.iml create mode 100644 .idea/modules.xml diff --git a/.idea/clean-code-s1e1.iml b/.idea/clean-code-s1e1.iml new file mode 100644 index 0000000000..24643cc374 --- /dev/null +++ b/.idea/clean-code-s1e1.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000..84337bf755 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index d843f340d2..35eb1ddfbb 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,4 +1,6 @@ - + + + \ No newline at end of file diff --git a/index.html b/index.html index ef4aa1f60c..72fb82e737 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,4 @@ + Todo App From 8436c5b75dae06882de13332558447058bc70fe6 Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:11:24 +0200 Subject: [PATCH 03/20] refactor(basic-2.4): delete type attribute for scripts and styles --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 72fb82e737..73acba7ddb 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,8 @@ Todo App - - + +
Want more details?
@@ -15,6 +15,6 @@ - + \ No newline at end of file From 58d69efbfc8063c141c80af64a71499701373fa4 Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:15:09 +0200 Subject: [PATCH 04/20] refactor(basic-1.2): convert uppercase letters to lowercase --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 73acba7ddb..4097cd3707 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,9 @@ -Todo App +Todo App - - + +
Want more details?

@@ -15,6 +15,6 @@
- + \ No newline at end of file From ec3028223236eb995953248482c42c73b6dbb94f Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:22:49 +0200 Subject: [PATCH 05/20] refactor(basic-1.3): replace single quotes with double quotes --- app.js | 6 +++--- index.html | 12 ++++++------ style.css | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app.js b/app.js index ab737a6002..efe00ad7f4 100644 --- a/app.js +++ b/app.js @@ -33,7 +33,7 @@ var createNewTaskElement=function(taskString){ var deleteButtonImg=document.createElement("img");//delete button image label.innerText=taskString; - label.className='task'; + label.className="task"; //Each elements, needs appending checkBox.type="checkbox"; @@ -44,7 +44,7 @@ var createNewTaskElement=function(taskString){ editButton.className="edit"; deleteButton.className="delete"; - deleteButtonImg.src='./remove.svg'; + deleteButtonImg.src="./remove.svg"; deleteButton.appendChild(deleteButtonImg); @@ -82,7 +82,7 @@ var editTask=function(){ var listItem=this.parentNode; - var editInput=listItem.querySelector('input[type=text]'); + var editInput=listItem.querySelector("input[type=text]"); var label=listItem.querySelector("label"); var editBtn=listItem.querySelector(".edit"); var containsClass=listItem.classList.contains("editMode"); diff --git a/index.html b/index.html index 4097cd3707..ab041370b7 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,16 @@ Todo App - + -
Want more details?
-

+
Want more details?
+

Todo

-

Completed

-
+
\ No newline at end of file From 225afb3f4522e1b21f898ad5d1d326cc95217023 Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:57:07 +0200 Subject: [PATCH 09/20] fix(html-2.5): break long HTML lines into multiple lines for readability --- index.html | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 96ad92e6b7..b15c79c5d9 100644 --- a/index.html +++ b/index.html @@ -2,18 +2,36 @@ Todo App - - + +
- Want more details? + + + Want more details? +

- +

@@ -33,7 +51,9 @@

Todo

- +

Completed

@@ -42,7 +62,9 @@

Completed

- +
From 3766022daeed2630db663d3af0b4c5db4dabace5 Mon Sep 17 00:00:00 2001 From: Volodia34 <120255295+Volodia34@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:18:15 +0200 Subject: [PATCH 10/20] refactor(basic-3.5): make hierarchy in media block --- index.html | 3 ++- style.css | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b15c79c5d9..3e410b221c 100644 --- a/index.html +++ b/index.html @@ -58,7 +58,8 @@

Todo

Completed