From 40841b46fdb7337ab9ed6e30d615eaefbf773256 Mon Sep 17 00:00:00 2001 From: Yash Kumar Saini <115717039+yashksaini-coder@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:09:09 +0530 Subject: [PATCH 01/88] Add Empty Task list for Day-10 Actvities list will be released at 7:00 AM (GMT+5.30Hrs) --- Day10/Task.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Day10/Task.md diff --git a/Day10/Task.md b/Day10/Task.md new file mode 100644 index 0000000..e69de29 From 066966f81ab3204dbb26954784c2f3ef2639bb22 Mon Sep 17 00:00:00 2001 From: Yash Kumar Saini <115717039+yashksaini-coder@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:17:48 +0530 Subject: [PATCH 02/88] Add Updated Activities Task list for Day-10 --- Day10/Task.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Day10/Task.md b/Day10/Task.md index e69de29..f6db2fc 100644 --- a/Day10/Task.md +++ b/Day10/Task.md @@ -0,0 +1,50 @@ +# Day 10: Event Handling 🎉 + +Welcome to Day 10 of our JavaScript workshop! Today, we will dive into event handling, an essential skill for making web pages interactive and responsive to user actions. 🖱️💻 + +## Learning Objectives 📚 + +By the end of these activities, you will: +- Add and handle basic events like click, double-click, mouseover, mouseout, keydown, and keyup. +- Understand and handle form events. +- Implement event delegation to manage events on dynamically added elements. +- Make web pages interactive by responding to various user actions. + +## Activities 🛠️ + +This workshop is divided into several activities: + +### Activity 1: Basic Event Handling 🖱️ + +- [ ] **Task 1:** Add a click event listener to a button that changes the text content of a paragraph. +- [ ] **Task 2:** Add a double-click event listener to an image that toggles its visibility. + +### Activity 2: Mouse Events 🐭 + +- [ ] **Task 3:** Add a mouseover event listener to an element that changes its background color. +- [ ] **Task 4:** Add a mouseout event listener to an element that resets its background color. + +### Activity 3: Keyboard Events 🎹 + +- [ ] **Task 5:** Add a keydown event listener to an input field that logs the key pressed to the console. +- [ ] **Task 6:** Add a keyup event listener to an input field that displays the current value in a paragraph. + +### Activity 4: Form Events 📝 + +- [ ] **Task 7:** Add a submit event listener to a form that prevents the default submission and logs the form data to the console. +- [ ] **Task 8:** Add a change event listener to a select dropdown that displays the selected value in a paragraph. + +### Activity 5: Event Delegation 📋 + +- [ ] **Task 9:** Add a click event listener to a list that logs the text content of the clicked list item using event delegation. +- [ ] **Task 10:** Add an event listener to a parent element that listens for events from dynamically added child elements. + +## Feature Requests (Optional) 🌟 + +1. **Click Event Script:** Write a script that adds a click event listener to a button to change the text content of a paragraph. +2. **Mouse Events Script:** Create a script that handles mouseover and mouseout events to change the background color of an element. +3. **Keyboard Events Script:** Write a script that logs key presses and displays input field values using keydown and keyup event listeners. +4. **Form Events Script:** Create a script that handles form submission and change events on a select dropdown. +5. **Event Delegation Script:** Write a script that demonstrates event delegation by handling events on dynamically added child elements. + +Happy coding! 💻✨ \ No newline at end of file From 9737561892164e8af478f8162d5dae4cd4ae6de6 Mon Sep 17 00:00:00 2001 From: Yash Kumar Saini <115717039+yashksaini-coder@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:20:09 +0530 Subject: [PATCH 03/88] Activity-1 completed for Day-10 --- Day10/Activity-1.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Day10/Activity-1.html diff --git a/Day10/Activity-1.html b/Day10/Activity-1.html new file mode 100644 index 0000000..0c84a65 --- /dev/null +++ b/Day10/Activity-1.html @@ -0,0 +1,17 @@ + + +
+ + +The Button is not clicked
+ + + + \ No newline at end of file From 9b793bd6f2813c049640477371029feb83bcb245 Mon Sep 17 00:00:00 2001 From: Yash Kumar Saini <115717039+yashksaini-coder@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:23:46 +0530 Subject: [PATCH 04/88] Activity-1 completed for Day-10 --- Day10/Activity-1.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Day10/Activity-1.html diff --git a/Day10/Activity-1.html b/Day10/Activity-1.html new file mode 100644 index 0000000..dfa9fa6 --- /dev/null +++ b/Day10/Activity-1.html @@ -0,0 +1,22 @@ + + + + + +The Button is not clicked
+ +Hover over me!
+Hover over me!
+The value is:
+ + + + \ No newline at end of file From fe08828d365cf7eac6e73a9583a7f1081dd4d68c Mon Sep 17 00:00:00 2001 From: Yash Kumar Saini <115717039+yashksaini-coder@users.noreply.github.com> Date: Mon, 22 Jul 2024 23:57:03 +0530 Subject: [PATCH 08/88] Activity-5 completed for Day-10 --- Day10/Activity-5.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Day10/Activity-5.html diff --git a/Day10/Activity-5.html b/Day10/Activity-5.html new file mode 100644 index 0000000..7a01191 --- /dev/null +++ b/Day10/Activity-5.html @@ -0,0 +1,36 @@ + + + + + +