Rakesh
Rakesh
Name:-B.Rakesh
Roll No:- 1602-733-034
Ans:-
Index.html
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8”>
</head>
<body>
<header>
</header>
<section class=”calendar-section”>
<h2>Event Calendar</h2>
<div id=”calendar”></div>
</section>
<!—Faculty Dashboard Section →
<section class=”faculty-dashboard”>
<h2>Faculty Dashboard</h2>
<div id=”student-progress”>
<h3>Student Progress</h3>
</div>
</section>
<script src=”script.js”></script>
</body>
</html>
Style.css
#app {
background-color: white;
border-radius: 10px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
padding: 40px;
max-width: 500px;
width: 100%;
text-align: center;
animation: fadeIn 1s ease;
}
input, button {
padding: 10px;
margin: 10px 0;
width: 100%;
border-radius: 5px;
border: none;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
input {
background: #f3f7ff;
}
button {
background-color: #4a90e2;
color: white;
font-weight: bold;
cursor: pointer;
}
button:hover {
background-color: #357ABD;
transform: scale(1.05);
}
button:active {
background-color: #2b6dad;
transform: scale(1);
}
#timer {
font-size: 24px;
color: #e74c3c;
margin-bottom: 20px;
font-weight: bold;
animation: pulse 1s infinite;
}
#exam-form {
margin-top: 20px;
}
h2 {
color: #4a90e2;
}
#results {
font-size: 18px;
padding: 10px;
background-color: #d4edda;
color: #155724;
border: 2px solid #c3e6cb;
border-radius: 5px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
script.js
let events = [
{ id: 1, title: "Math Assignment", status: "completed" },
{ id: 2, title: "Project Submission", status: "pending" },
{ id: 3, title: "Lab Test", status: "upcoming" },
{ id: 4, title: "Final Exam", status: "high-priority" }
];
events.forEach(event => {
const eventDiv = document.createElement('div');
eventDiv.className = event.status; // Assign class based on event status
eventDiv.innerHTML = <strong>${event.title}</strong>;
calendar.appendChild(eventDiv);
});
updateProgress();
}
function updateProgress() {
const completed = events.filter(event => event.status === 'completed').length;
const pending = events.filter(event => event.status === 'pending').length;
const offTrack = events.filter(event => event.status === 'high-priority').length;
document.getElementById('completedCount').innerText = completed;
document.getElementById('pendingCount').innerText = pending;
document.getElementById('offTrackCount').innerText = offTrack;
}
function editEvent() {
const eventId = parseInt(prompt("Enter event ID to edit:"));
const event = events.find(e => e.id === eventId);
if (event) {
const newTitle = prompt("Enter new title:", event.title);
const newStatus = prompt("Enter new status (completed, pending,
upcoming, high-priority):", event.status);
function deleteEvent() {
const eventId = parseInt(prompt("Enter event ID to delete:"));
const eventIndex = events.findIndex(e => e.id === eventId);
function shareSchedule() {
alert("Schedule shared with students!");
}
2.Biodata:-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>About Me</title>
<link rel="stylesheet" href="stlye.css">
</head>
<body>
<div class="about-container">
<div class="photo-section">
<img src= "000008IMG_00003_BURST1702199574705.jpg" alt="Your
Photo" class="profile-photo">
</div>
<div class="info-section">
<h1>B.Rakesh</h1>
<p class="title">Web Developer | Designer | Problem Solver</p>
<p class="bio">
Hi, I'm Rakesh , a passionate web developer with a love for creating
elegant and efficient solutions.
I specialize in front-end development, user experience, and responsive
design. I enjoy turning complex
problems into simple, beautiful, and intuitive interfaces. Let's create
something amazing together!
</p>
<ul class="details">
<li><strong>Location:</strong> Hyderabad, India</li>
<li><strong>Email:</strong> [email protected]</li>
<li><strong>Phone:</strong>7386176752</li>
</ul>
</div>
</div>
</body>
</html>