css kalyani
css kalyani
Mumbai. (M.S.B.T.E)
MICRO PROJECT ON
“Analog Clock”
Submitted by
Snehal Palkar
Kalyani Mule
G.S. Mandal’s
Department of Computer Engineering
Marathwada Institute of Technology,
Polytechnic, Chh.Sambhajinagar.
CERTIFICATE
This is to certify that : -
Date:
Principal
Marathwada Institute of Technology,
Polytechnic, Chh.Sambhajinagar
INDEX
Annexure-IV Micro Project Teacher Evaluation Sheet
Annexure-I “Format for Micro-Project Proposal”
1.0 Aim/Benefits of Micro Project
1.0 Rationale
1. CO (a): Select, collect and use required information/knowledge to solve the problem/complete
the task.
(A) Process and product assessment (cover above total marks out of six marks)
collection
project proposal
representation
5 Quality of prototype/model
6 Report preparation
7 Presentation
8 Viva
Signature of Teacher:
3.0.7 Test with Various Input Scenarios: Test the application by adding, editing,
deleting, and filtering tasks under different conditions to ensure smooth functionality and
proper handling of edge cases.
3.0.8 Finalize Documentation and Code: Document all JavaScript functions, the
overall structure of the project, and user interaction steps, and store the final version of
the project for future reference.
1.0 Rationale
Analog clock shows time passing by moving hands continuously. The history and
the origin of the clock is an interesting one, as it is hard to point which civilization
invented it first. People would originally determine the time of the day by
observing the length of their shadow. When the shadow was longest it meant that
it was noon. Over centuries there have been sand dials, water clocks, and other
such clocks to tell the time. Once you can read the time, you can read a random
analog clock and not cross-check to see a digital clock.
2.0 Aim/Benefits of Micro Project:
Analog makes it easy to visualize time differences and appraise large and
small differences of hours or minutes. Analog clocks can also help you realize a
cost savings beyond the initial purchase price. They are more energy efficient than
digital displays, which is not only good for your bottom line, but can also help you
reach your energy reduction goals Many of them are powered with AA battery
packs, that extend maintenance free operation for several years without replacement.
With many facilities placing an emphasis on “going green” these days, maybe you'll
want to go analog, as well.
While Analog Clock are effective, there are certain challenges and
considerations:
• Modular Code: Write reusable code for adding, deleting, and editing
tasks to improve maintainability.
• User Experience: Ensure that the interface is intuitive, with easy task
addition and deletion.
• Data Persistence: Use local storage or server-side databases to save tasks
for future sessions.
• Task Categorization: Group tasks by priority, deadlines, or project to
improve task management.
4.4 References
3. https://www.youtube.com/analogclock
This structure explains the Analog Clock, how to build it using JavaScript, the
advantages, challenges, and best practices, along with references to tutorials and videos.
• The primary goal is to develop a system that allows users to organize tasks,
add new ones, delete them, and manage their progress efficiently. Begin by
researching the purpose of to-do lists and how they benefit users in managing
time and productivity.
• Create a list of essential features the Analog Clock should have, including:
o Adding new tasks.
o Editing existing tasks.
o Deleting completed or irrelevant tasks.
o Marking tasks as complete.
o Reminders for tasks
o Option to save or print the task list.
• Select the programming languages and tools needed for the project. For a
simple Analog Clock:
o HTML for structuring the task list
o CSS for styling the layout.
o JavaScript for adding functionality like task creation, deletion, and
marking tasks as done.
5.5 Design the User Interface (UI)
• Draft the UI on paper or using a design tool. Plan for input fields where users
can type tasks, buttons for adding and deleting tasks, and a checkbox for
marking tasks as completed. Ensure the layout is simple and intuitive.
• Start by writing the HTML code that defines the layout of the Analog Clock
Use a form input field for task entry, a button for adding tasks, and an
unordered HTML structure
• Apply CSS to make the Analog Clock visually appealing. Use colours, fonts,
and spacing to make it user-friendly. Ensure that completed tasks are styled
differently (e.g., strikethrough text) for clear differentiation.
• Once the Analog Clock is functioning as desired, print or save the final
code, along with the report, and prepare it for submission. Include
screenshots of the working application.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial- scale=1.0">
<title>Analog Clock</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="clock">
<div class="clock-face">
<div class="number number1">1</div>
<div class="number number2">2</div>
<div class="number number3">3</div>
<div class="number number4">4</div>
<div class="number number5">5</div>
<div class="number number6">6</div>
<div class="number number7">7</div>
<div class="number number8">8</div>
<div class="number number9">9</div>
<div class="number number10">10</div>
<div class="number number11">11</div>
<div class="number number12">12</div>
<div class="hand hour-hand"></div>
<div class="hand minute-hand"></div>
<div class="hand second-hand"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
Javascript code:
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
margin: 0;
}
.clock {
width: 300px;
height: 300px;
border: 20px solid black;
border-radius: 50%;
position: relative;
padding: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
background: white;
}
.clock-face {
position: relative;
width: 100%;
height: 100%;
transform: translateY(-3px); /* Fix for the hands positioning */
}
.hand {
width: 50%;
background: black;
position: absolute;
top: 50%;
transform-origin: 100%;
transform: rotate(90deg);
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}
.hour-hand {
height: 6px;
[12:00 PM, 10/24/2024] Snehal: }
.minute-hand {
height: 4px;
}
.second-hand {
height: 2px;
background: red;
}
.number {
position: absolute;
font-size: 24px;
transform: translate(-50%, -50%);
}
function setDate() {
const now = new Date();
setInterval(setDate, 1000);
setDate();
7.0.1 Output:
8.0 Skill Developed/Learning outcome of this micro project
• The Analog Clock application developed in this project can be used as a personal task
manager to organize daily tasks, set priorities, and track progress. Users can add, edit, delete,
and mark tasks as completed, making it a practical tool for enhancing productivity.
• The Analog Clock application can be implemented as part of an educational platform for
students to manage their assignments, homework, or study plans. Teachers could use it to
assign tasks to students, while students can track their learning progress.
• Professionals in various fields can use this Analog Clock application to manage their work
schedules, deadlines, and daily to-dos. With some customization, it can be integrated with
calendar tools, providing a comprehensive time and task management solution.