Fall 2024 - CS202 - 2
Fall 2024 - CS202 - 2
02 Total Marks: 20
Semester: Fall 2024 Lectures: 12 to 29 (Topics:
CS202: Fundamentals of Front-End 47 to 126)
Development Due Date: December 30,
2024
Instructions:
Please read the following instructions carefully before submitting assignment. It should be clear that your
assignment will not get any credit if:
Objectives:
The objectives of this assignment are:
To learn and practice the HTML and CSS tags.
Use of JavaScript and jQuery.
Use HTML for the structure, CSS for styling, JavaScript for functionality, and jQuery for
interactive features
Note:
Guidelines:
Code should be properly indented.
You can use the following tools/software:
o Notepad or Adobe Dreamweaver
You will not use any other software to make .html file.
You have been hired by company XYZ, where the boss has requested you to develop a task management app to
help add tasks for employees. Your task is to create a simple task management app that have the following
functionalities:
Display the Current Date and Time in Real-Time: The app will update and show the current date and time
dynamically, allowing the boss to track time as tasks are managed.
Show/Hide Description: The app will provide a brief description of its purpose (e.g., "This app helps you
manage tasks for your employees.") that can be shown or hidden based on user interaction. This feature allows
for a clean, user-friendly interface.
Add Tasks Dynamically: Users will be able to add tasks to a list with ease. Each task will be added by typing
into a text box and clicking an "Add Task" button. This feature is useful for quickly managing tasks for multiple
employees.
Hover Effect on Tasks: The background color of each task will change when hovered over. This adds an
interactive element to the app, making it visually engaging and easy to distinguish tasks.
Breakdown of Tasks:
HTML Structure
1. Add a heading at the top of the page with the text "Task Management App".
2. Include a paragraph describing the purpose of the page (e.g., "This app helps you manage your tasks
effectively").
3. Add a <div> to display the current date and time, updating every second.
4. Add a button with the text "Show/Hide Paragraph".
JavaScript Features
1. Write JavaScript to display the current date and time in the <div>. The time must update every second.
2. Add functionality to the "Show/Hide paragraph" button: When clicked, it should toggle the visibility of
the paragraph describing the purpose of the page.
jQuery Features
1. Create an unordered list (<ul>) with at least 5 initial tasks (e.g., "Task 1", "Task 2", etc.).
2. Add a textbox and a button with the text "Add Task".
3. Write a jQuery function that adds a new task to the list when the "Add Task" button is clicked. Clear the
textbox after adding the task. The new task should be added only if the textbox isn't empty.
4. Add a hover effect to all list items using jQuery: Change the background color when hovered, and restore it
when the mouse leaves.
Solution Instructions:
Use basic HTML and CSS, which you have learnt till Lecture 29 to design your web page as
sample page.
Solution Output:
BEST OF LUCK!