From b02501470d5b58f1cc7381a7fc41faee2f042787 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:24:50 +0530 Subject: [PATCH 01/34] Create index.html --- .../LEVEL 01/AnirudhSinghTomar/index.html | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..c878f67 --- /dev/null +++ b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html @@ -0,0 +1,36 @@ + + + + + Task 1 + + + +

Task 1

+

Paragraph 1

+

+

+

+

Paragraph 2

+

I am centered!
+ +

+ + + From 83e9767a7c265059fe15711deef82105097a0510 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:25:18 +0530 Subject: [PATCH 02/34] Create resourceLEVEL1.txt --- .../LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt diff --git a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt new file mode 100644 index 0000000..f08a99a --- /dev/null +++ b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt @@ -0,0 +1 @@ +https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener From 8cce8be45b87819d1106e8b3af06b13fc654e154 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:27:06 +0530 Subject: [PATCH 03/34] Create index.html --- .../LEVEL 02/AnirudhSinghTomar/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..84d7e5a --- /dev/null +++ b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html @@ -0,0 +1,15 @@ + + + + + Task 2 + + + + + + + + From c65ffa4294882e3f28ee2acce1eb4a944b083f06 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:27:47 +0530 Subject: [PATCH 04/34] Create script.js --- .../LEVEL 02/AnirudhSinghTomar/script.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js new file mode 100644 index 0000000..4f8a031 --- /dev/null +++ b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js @@ -0,0 +1,18 @@ +addnumber = () => { + let num1 = parseInt(document.getElementById("number1").value); + let num2 = parseInt(document.getElementById("number2").value); + if (window.Worker) { + let worker1 = new Worker("worker.js"); + let message = { + toadd: { + number1: num1, + number2: num2, + }, + }; + worker1.postMessage(message); + + worker1.onmessage = function (e) { + console.log(e.data.result); + }; + } +}; From f277712b76dd54907947a0804da8a1a6cc0359fc Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:28:11 +0530 Subject: [PATCH 05/34] Create worker.js --- 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js new file mode 100644 index 0000000..35717a8 --- /dev/null +++ b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js @@ -0,0 +1,7 @@ +this.onmessage = function(e) { + if (e.data.toadd !== undefined) { + this.postMessage({ + result: e.data.toadd.number1 + e.data.toadd.number2 + }); + } +}; From 08890725e677559dc7e5c56748491d83f589d5a0 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:28:33 +0530 Subject: [PATCH 06/34] Create resourceLEVEL2.txt --- .../LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt new file mode 100644 index 0000000..ea0ef95 --- /dev/null +++ b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt @@ -0,0 +1,3 @@ +https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers + +https://www.html5rocks.com/en/tutorials/workers/basics/ From 30056a21f72c393afaf63e6346f704cba5017da8 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:29:06 +0530 Subject: [PATCH 07/34] Create index.html --- 06-dom_manipulation/LEVEL 03/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 03/index.html diff --git a/06-dom_manipulation/LEVEL 03/index.html b/06-dom_manipulation/LEVEL 03/index.html new file mode 100644 index 0000000..6d5911c --- /dev/null +++ b/06-dom_manipulation/LEVEL 03/index.html @@ -0,0 +1,13 @@ + + + + + Task 2 + + + + + + + + From 0a586c6671ae383e6a5a70a5a3ded0ee6d9235b3 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:29:40 +0530 Subject: [PATCH 08/34] Update index.html --- 06-dom_manipulation/LEVEL 03/index.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/06-dom_manipulation/LEVEL 03/index.html b/06-dom_manipulation/LEVEL 03/index.html index 6d5911c..fc18251 100644 --- a/06-dom_manipulation/LEVEL 03/index.html +++ b/06-dom_manipulation/LEVEL 03/index.html @@ -1,13 +1,12 @@ - - Task 2 - + + + Task 3 - - - - + + + From 83456e5b77ca0c2cbd3cebcc70421476c978ee55 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:30:15 +0530 Subject: [PATCH 09/34] Delete index.html --- 06-dom_manipulation/LEVEL 03/index.html | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 06-dom_manipulation/LEVEL 03/index.html diff --git a/06-dom_manipulation/LEVEL 03/index.html b/06-dom_manipulation/LEVEL 03/index.html deleted file mode 100644 index fc18251..0000000 --- a/06-dom_manipulation/LEVEL 03/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - Task 3 - - - - - - From 346b65dbc517f84ab10cda718615fa21e5056497 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:30:53 +0530 Subject: [PATCH 10/34] Create index.html --- .../LEVEL 03/AnirudhSInghTomar/index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html new file mode 100644 index 0000000..fc18251 --- /dev/null +++ b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html @@ -0,0 +1,12 @@ + + + + + + Task 3 + + + + + + From a6328c5550c4356e526e46a6ee93584037df7d93 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:31:38 +0530 Subject: [PATCH 11/34] Create script.js --- .../LEVEL 03/AnirudhSInghTomar/script.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js new file mode 100644 index 0000000..a2c53a2 --- /dev/null +++ b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js @@ -0,0 +1,26 @@ +const arr = ["p", "button", "li"]; +const text = ["Hey this is Anirudh Singh Tomar", "Click to Know me", "By"]; +function addtagss() { + let observer; + observer = new MutationObserver(mutated); + let config = { + childList: true, + }; + observer.observe(document.body, config); + + for (let i = 0; i < arr.length; i++) { + var node = document.createElement(arr[i]); + var textnode = document.createTextNode(text[i]); + node.appendChild(textnode); + var element = document.getElementById("body"); + element.appendChild(node); + } +} +function mutated(mutationList) { + Array.prototype.forEach.call(mutationList, function (data) { + let newnodes = data.addedNodes; + Array.prototype.forEach.call(newnodes, function (newN) { + console.log("Added a new node", newN.tagName); + }); + }); +} From 48a9a350a33a01776910ea8f942a36da991bd47f Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:31:58 +0530 Subject: [PATCH 12/34] Create resourceLEVEL3.txt --- .../LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt new file mode 100644 index 0000000..872326b --- /dev/null +++ b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt @@ -0,0 +1 @@ +https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement From 43d1144b93dc3a51687398382ab515084992666b Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:40:13 +0530 Subject: [PATCH 13/34] Create index.html --- .../LEVEL_01/AnirudhSinghTomar/index.html | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..c878f67 --- /dev/null +++ b/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/index.html @@ -0,0 +1,36 @@ + + + + + Task 1 + + + +

Task 1

+

Paragraph 1

+

+

+

+

Paragraph 2

+

I am centered!
+ +

+ + + From efa3d696e7e58ed33e955ea74bc4d292f6eb45da Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:40:50 +0530 Subject: [PATCH 14/34] Create resourceLEVEL1.txt --- .../LEVEL_01/AnirudhSinghTomar/resourceLEVEL1.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/resourceLEVEL1.txt diff --git a/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/resourceLEVEL1.txt b/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/resourceLEVEL1.txt new file mode 100644 index 0000000..f08a99a --- /dev/null +++ b/06-dom_manipulation/LEVEL_01/AnirudhSinghTomar/resourceLEVEL1.txt @@ -0,0 +1 @@ +https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener From db38011b0db404ce554c362391d211de6ca36eff Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:41:51 +0530 Subject: [PATCH 15/34] Create index.html --- .../LEVEL_2/AnirudhSinghTomar/index.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..84d7e5a --- /dev/null +++ b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html @@ -0,0 +1,15 @@ + + + + + Task 2 + + + + + + + + From 9b250a0d48f6e1d2bbf36c3c12a24882db2b895e Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:42:22 +0530 Subject: [PATCH 16/34] Create script.js --- .../LEVEL_2/AnirudhSinghTomar/script.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js new file mode 100644 index 0000000..4f8a031 --- /dev/null +++ b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js @@ -0,0 +1,18 @@ +addnumber = () => { + let num1 = parseInt(document.getElementById("number1").value); + let num2 = parseInt(document.getElementById("number2").value); + if (window.Worker) { + let worker1 = new Worker("worker.js"); + let message = { + toadd: { + number1: num1, + number2: num2, + }, + }; + worker1.postMessage(message); + + worker1.onmessage = function (e) { + console.log(e.data.result); + }; + } +}; From 8b106e9851c3fc854cbdb9a64935210950a960aa Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:42:53 +0530 Subject: [PATCH 17/34] Create worker.js --- 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js new file mode 100644 index 0000000..35717a8 --- /dev/null +++ b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js @@ -0,0 +1,7 @@ +this.onmessage = function(e) { + if (e.data.toadd !== undefined) { + this.postMessage({ + result: e.data.toadd.number1 + e.data.toadd.number2 + }); + } +}; From b108c2a996aa95eae0f50d52d0881e6f0a8e08d5 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:43:19 +0530 Subject: [PATCH 18/34] Create resourceLEVEL2.txt --- .../LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt new file mode 100644 index 0000000..ea0ef95 --- /dev/null +++ b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt @@ -0,0 +1,3 @@ +https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers + +https://www.html5rocks.com/en/tutorials/workers/basics/ From 460abad5b6e1318669a4b21416fde24f5319a261 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:44:17 +0530 Subject: [PATCH 19/34] Create index.html --- .../LEVEL_03/AnirudhSinghTomar/index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..fc18251 --- /dev/null +++ b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/index.html @@ -0,0 +1,12 @@ + + + + + + Task 3 + + + + + + From d435e107dcdaf2982a77d539b817b25b13f465a0 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:45:21 +0530 Subject: [PATCH 20/34] Create script.js --- .../LEVEL_03/AnirudhSinghTomar/script.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/script.js diff --git a/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/script.js new file mode 100644 index 0000000..a2c53a2 --- /dev/null +++ b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/script.js @@ -0,0 +1,26 @@ +const arr = ["p", "button", "li"]; +const text = ["Hey this is Anirudh Singh Tomar", "Click to Know me", "By"]; +function addtagss() { + let observer; + observer = new MutationObserver(mutated); + let config = { + childList: true, + }; + observer.observe(document.body, config); + + for (let i = 0; i < arr.length; i++) { + var node = document.createElement(arr[i]); + var textnode = document.createTextNode(text[i]); + node.appendChild(textnode); + var element = document.getElementById("body"); + element.appendChild(node); + } +} +function mutated(mutationList) { + Array.prototype.forEach.call(mutationList, function (data) { + let newnodes = data.addedNodes; + Array.prototype.forEach.call(newnodes, function (newN) { + console.log("Added a new node", newN.tagName); + }); + }); +} From 542ae67daca19ac7ff6f17effd005c2e4a6978f5 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:46:08 +0530 Subject: [PATCH 21/34] Create resourceLEVEL3.txt --- .../LEVEL_03/AnirudhSinghTomar/resourceLEVEL3.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/resourceLEVEL3.txt diff --git a/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/resourceLEVEL3.txt b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/resourceLEVEL3.txt new file mode 100644 index 0000000..872326b --- /dev/null +++ b/06-dom_manipulation/LEVEL_03/AnirudhSinghTomar/resourceLEVEL3.txt @@ -0,0 +1 @@ +https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement From 4c19f618734ea7a89c91fe36a2d28fa1b5b22f2b Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:46:28 +0530 Subject: [PATCH 22/34] Delete 06-dom_manipulation/LEVEL 01/AnirudhSinghTomar directory --- .../LEVEL 01/AnirudhSinghTomar/index.html | 36 ------------------- .../AnirudhSinghTomar/resourceLEVEL1.txt | 1 - 2 files changed, 37 deletions(-) delete mode 100644 06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html delete mode 100644 06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt diff --git a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html deleted file mode 100644 index c878f67..0000000 --- a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/index.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - Task 1 - - - -

Task 1

-

Paragraph 1

-

-

-

-

Paragraph 2

-

I am centered!
- -

- - - diff --git a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt b/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt deleted file mode 100644 index f08a99a..0000000 --- a/06-dom_manipulation/LEVEL 01/AnirudhSinghTomar/resourceLEVEL1.txt +++ /dev/null @@ -1 +0,0 @@ -https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener From 4b719d90160b15822ba7d5d949b13c2a97ff9e49 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:46:40 +0530 Subject: [PATCH 23/34] Delete 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar directory --- .../LEVEL 02/AnirudhSinghTomar/index.html | 15 --------------- .../AnirudhSinghTomar/resourceLEVEL2.txt | 3 --- .../LEVEL 02/AnirudhSinghTomar/script.js | 18 ------------------ .../LEVEL 02/AnirudhSinghTomar/worker.js | 7 ------- 4 files changed, 43 deletions(-) delete mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html delete mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt delete mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js delete mode 100644 06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html deleted file mode 100644 index 84d7e5a..0000000 --- a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Task 2 - - - - - - - - diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt deleted file mode 100644 index ea0ef95..0000000 --- a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/resourceLEVEL2.txt +++ /dev/null @@ -1,3 +0,0 @@ -https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers - -https://www.html5rocks.com/en/tutorials/workers/basics/ diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js deleted file mode 100644 index 4f8a031..0000000 --- a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/script.js +++ /dev/null @@ -1,18 +0,0 @@ -addnumber = () => { - let num1 = parseInt(document.getElementById("number1").value); - let num2 = parseInt(document.getElementById("number2").value); - if (window.Worker) { - let worker1 = new Worker("worker.js"); - let message = { - toadd: { - number1: num1, - number2: num2, - }, - }; - worker1.postMessage(message); - - worker1.onmessage = function (e) { - console.log(e.data.result); - }; - } -}; diff --git a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js b/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js deleted file mode 100644 index 35717a8..0000000 --- a/06-dom_manipulation/LEVEL 02/AnirudhSinghTomar/worker.js +++ /dev/null @@ -1,7 +0,0 @@ -this.onmessage = function(e) { - if (e.data.toadd !== undefined) { - this.postMessage({ - result: e.data.toadd.number1 + e.data.toadd.number2 - }); - } -}; From 12a74c1fed91550ff16aaa2cf1bde34c5434f69a Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:46:53 +0530 Subject: [PATCH 24/34] Delete 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar directory --- .../LEVEL 03/AnirudhSInghTomar/index.html | 12 --------- .../AnirudhSInghTomar/resourceLEVEL3.txt | 1 - .../LEVEL 03/AnirudhSInghTomar/script.js | 26 ------------------- 3 files changed, 39 deletions(-) delete mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html delete mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt delete mode 100644 06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html deleted file mode 100644 index fc18251..0000000 --- a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - Task 3 - - - - - - diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt deleted file mode 100644 index 872326b..0000000 --- a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/resourceLEVEL3.txt +++ /dev/null @@ -1 +0,0 @@ -https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement diff --git a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js b/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js deleted file mode 100644 index a2c53a2..0000000 --- a/06-dom_manipulation/LEVEL 03/AnirudhSInghTomar/script.js +++ /dev/null @@ -1,26 +0,0 @@ -const arr = ["p", "button", "li"]; -const text = ["Hey this is Anirudh Singh Tomar", "Click to Know me", "By"]; -function addtagss() { - let observer; - observer = new MutationObserver(mutated); - let config = { - childList: true, - }; - observer.observe(document.body, config); - - for (let i = 0; i < arr.length; i++) { - var node = document.createElement(arr[i]); - var textnode = document.createTextNode(text[i]); - node.appendChild(textnode); - var element = document.getElementById("body"); - element.appendChild(node); - } -} -function mutated(mutationList) { - Array.prototype.forEach.call(mutationList, function (data) { - let newnodes = data.addedNodes; - Array.prototype.forEach.call(newnodes, function (newN) { - console.log("Added a new node", newN.tagName); - }); - }); -} From 1a8a6e791bc4d5b33429754be349364cdff3ffdb Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:47:46 +0530 Subject: [PATCH 25/34] Create index.html --- .../LEVEL_02/AnirudhSinghTomar/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/index.html diff --git a/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/index.html new file mode 100644 index 0000000..6d5911c --- /dev/null +++ b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/index.html @@ -0,0 +1,13 @@ + + + + + Task 2 + + + + + + + + From bfc03691b1c1523d658ccd479624a8846b378723 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:48:21 +0530 Subject: [PATCH 26/34] Create script.js --- .../LEVEL_02/AnirudhSinghTomar/script.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/script.js diff --git a/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/script.js new file mode 100644 index 0000000..15968b0 --- /dev/null +++ b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/script.js @@ -0,0 +1,18 @@ +addnumber = () => { + let num1 = parseInt(document.getElementById("number1").value); + let num2 = parseInt(document.getElementById("number2").value); + if (window.Worker) { + let worker1 = new Worker("worker.js"); + let message = { + toadd: { + number1: num1, + number2: num2 + } + }; + worker1.postMessage(message) + + worker1.onmessage = function(e) { + console.log(e.data.result); + }; + } +} From 13dad79e62738a661a54e177f0542446d630888c Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:48:45 +0530 Subject: [PATCH 27/34] Create worker.js --- 06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/worker.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/worker.js diff --git a/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/worker.js b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/worker.js new file mode 100644 index 0000000..35717a8 --- /dev/null +++ b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/worker.js @@ -0,0 +1,7 @@ +this.onmessage = function(e) { + if (e.data.toadd !== undefined) { + this.postMessage({ + result: e.data.toadd.number1 + e.data.toadd.number2 + }); + } +}; From bdbd8efd1c4edf9b01cf4da27b6fa8018e5e839c Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:49:09 +0530 Subject: [PATCH 28/34] Create resourceLEVEL2.txt --- .../LEVEL_02/AnirudhSinghTomar/resourceLEVEL2.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/resourceLEVEL2.txt diff --git a/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/resourceLEVEL2.txt b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/resourceLEVEL2.txt new file mode 100644 index 0000000..ea0ef95 --- /dev/null +++ b/06-dom_manipulation/LEVEL_02/AnirudhSinghTomar/resourceLEVEL2.txt @@ -0,0 +1,3 @@ +https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers + +https://www.html5rocks.com/en/tutorials/workers/basics/ From bd073f9d761a6c421758fe8c704817bb42556308 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Thu, 8 Jul 2021 11:49:23 +0530 Subject: [PATCH 29/34] Delete 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar directory --- .../LEVEL_2/AnirudhSinghTomar/index.html | 15 --------------- .../AnirudhSinghTomar/resourceLEVEL2.txt | 3 --- .../LEVEL_2/AnirudhSinghTomar/script.js | 18 ------------------ .../LEVEL_2/AnirudhSinghTomar/worker.js | 7 ------- 4 files changed, 43 deletions(-) delete mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html delete mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt delete mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js delete mode 100644 06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html deleted file mode 100644 index 84d7e5a..0000000 --- a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Task 2 - - - - - - - - diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt deleted file mode 100644 index ea0ef95..0000000 --- a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/resourceLEVEL2.txt +++ /dev/null @@ -1,3 +0,0 @@ -https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers - -https://www.html5rocks.com/en/tutorials/workers/basics/ diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js deleted file mode 100644 index 4f8a031..0000000 --- a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/script.js +++ /dev/null @@ -1,18 +0,0 @@ -addnumber = () => { - let num1 = parseInt(document.getElementById("number1").value); - let num2 = parseInt(document.getElementById("number2").value); - if (window.Worker) { - let worker1 = new Worker("worker.js"); - let message = { - toadd: { - number1: num1, - number2: num2, - }, - }; - worker1.postMessage(message); - - worker1.onmessage = function (e) { - console.log(e.data.result); - }; - } -}; diff --git a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js b/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js deleted file mode 100644 index 35717a8..0000000 --- a/06-dom_manipulation/LEVEL_2/AnirudhSinghTomar/worker.js +++ /dev/null @@ -1,7 +0,0 @@ -this.onmessage = function(e) { - if (e.data.toadd !== undefined) { - this.postMessage({ - result: e.data.toadd.number1 + e.data.toadd.number2 - }); - } -}; From 6da13c444da033cbe70ea5cd8b3efcf59766f03c Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Mon, 19 Jul 2021 08:32:52 +0530 Subject: [PATCH 30/34] Update README.md --- 02-react/04-redux-saga/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/02-react/04-redux-saga/README.md b/02-react/04-redux-saga/README.md index 0cf535f..b93639f 100644 --- a/02-react/04-redux-saga/README.md +++ b/02-react/04-redux-saga/README.md @@ -22,3 +22,4 @@ - Navya: https://codesandbox.io/s/infallible-dhawan-1emux?file=/src/App.js - Sumanth: https://codesandbox.io/s/optimistic-proskuriakova-jxqq5?file=/src/App.js - Pooja: https://codesandbox.io/s/gracious-snyder-hls4f?file=/src/App.js +- Anirudh: https://codesandbox.io/s/blue-glitter-h4xfc?file=/src/components/UserList.js From e5a72bb577187d793a1d4c7ff7a4061ce6983c26 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Mon, 19 Jul 2021 09:48:16 +0530 Subject: [PATCH 31/34] Update README.md --- 02-react/04-redux-saga/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-react/04-redux-saga/README.md b/02-react/04-redux-saga/README.md index b93639f..295ea36 100644 --- a/02-react/04-redux-saga/README.md +++ b/02-react/04-redux-saga/README.md @@ -22,4 +22,4 @@ - Navya: https://codesandbox.io/s/infallible-dhawan-1emux?file=/src/App.js - Sumanth: https://codesandbox.io/s/optimistic-proskuriakova-jxqq5?file=/src/App.js - Pooja: https://codesandbox.io/s/gracious-snyder-hls4f?file=/src/App.js -- Anirudh: https://codesandbox.io/s/blue-glitter-h4xfc?file=/src/components/UserList.js +- Anirudh: https://codesandbox.io/s/h4xfc?file=/src/App.js From 3227608dfdc6f4908ffc1b72d6841257b1cbddbd Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Mon, 19 Jul 2021 11:41:54 +0530 Subject: [PATCH 32/34] Update README.md --- 02-react/04-redux-saga/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-react/04-redux-saga/README.md b/02-react/04-redux-saga/README.md index 295ea36..7dcacfe 100644 --- a/02-react/04-redux-saga/README.md +++ b/02-react/04-redux-saga/README.md @@ -22,4 +22,4 @@ - Navya: https://codesandbox.io/s/infallible-dhawan-1emux?file=/src/App.js - Sumanth: https://codesandbox.io/s/optimistic-proskuriakova-jxqq5?file=/src/App.js - Pooja: https://codesandbox.io/s/gracious-snyder-hls4f?file=/src/App.js -- Anirudh: https://codesandbox.io/s/h4xfc?file=/src/App.js +- Anirudh: https://codesandbox.io/s/blue-glitter-h4xfc From c54b6989bd6f77c5f9dcd86d23cd5f07cb0709c0 Mon Sep 17 00:00:00 2001 From: AnirudhSinghTomar <65367836+AnirudhSinghTomar@users.noreply.github.com> Date: Mon, 19 Jul 2021 13:04:31 +0530 Subject: [PATCH 33/34] Update README.md --- 02-react/04-redux-saga/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-react/04-redux-saga/README.md b/02-react/04-redux-saga/README.md index 7dcacfe..582ee6c 100644 --- a/02-react/04-redux-saga/README.md +++ b/02-react/04-redux-saga/README.md @@ -22,4 +22,4 @@ - Navya: https://codesandbox.io/s/infallible-dhawan-1emux?file=/src/App.js - Sumanth: https://codesandbox.io/s/optimistic-proskuriakova-jxqq5?file=/src/App.js - Pooja: https://codesandbox.io/s/gracious-snyder-hls4f?file=/src/App.js -- Anirudh: https://codesandbox.io/s/blue-glitter-h4xfc +- Anirudh: https://codesandbox.io/s/headless-sound-8sv92?file=/src/App.js From b84456149956fdb6a58a59619d8d32ed6b365a5e Mon Sep 17 00:00:00 2001 From: Anirudhapty <87751628+Anirudhapty@users.noreply.github.com> Date: Wed, 28 Jul 2021 13:05:17 +0530 Subject: [PATCH 34/34] Update README.md --- 02-react/04-redux-saga/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02-react/04-redux-saga/README.md b/02-react/04-redux-saga/README.md index 582ee6c..5d146d8 100644 --- a/02-react/04-redux-saga/README.md +++ b/02-react/04-redux-saga/README.md @@ -22,4 +22,4 @@ - Navya: https://codesandbox.io/s/infallible-dhawan-1emux?file=/src/App.js - Sumanth: https://codesandbox.io/s/optimistic-proskuriakova-jxqq5?file=/src/App.js - Pooja: https://codesandbox.io/s/gracious-snyder-hls4f?file=/src/App.js -- Anirudh: https://codesandbox.io/s/headless-sound-8sv92?file=/src/App.js +- Anirudh: https://codesandbox.io/s/holy-bird-0zwxy?file=/src/App.js