Skip to content

Commit

Permalink
Merge branch 'Anishkagupta04:main' into hover
Browse files Browse the repository at this point in the history
  • Loading branch information
sailaja-adapa authored Aug 3, 2024
2 parents ca25a3b + f535f37 commit 7f43d52
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 13 deletions.
40 changes: 27 additions & 13 deletions Html-Files/Doctor Experience.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@

<li><a href="../dex.html"><i class="bi bi-gear"></i>Service</a></li>
<li><a href="../index.html#patient-portal"><i class="bi bi-person"></i>Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="../index.html#doctors"><i class="bi bi-person-circle"></i>Doctor</a></li>
<li><a href="../index.html#contact"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="../login.html"><i class="bi bi-box-arrow-right"></i>Sign in/Sign up</a></li>
Expand Down Expand Up @@ -516,19 +517,32 @@ <h4>RAPIDOC Newsletter</h4><br>
const doctorListElement = document.getElementById("doctor-list");
doctorListElement.innerHTML = "";

doctors.forEach(doctor => {
const doctorItem = document.createElement("li");
doctorItem.innerHTML = `
<div class="content">
<h4>${doctor.name}</h4>
<p>Specialization: ${doctor.specialization}</p>
<p>Experience: ${doctor.experience} years</p>
<p>Fee: $${doctor.fee}</p>
</div>
${doctor.image ? `<img src="${doctor.image}" alt="${doctor.name}" style="width: 80px; height: auto; border-radius: 50%;">` : ""}
`;
doctorListElement.appendChild(doctorItem);
});
// Assuming 'doctors' is an array of doctor objects and 'doctorListElement' is the parent UL element

doctors.forEach(doctor => {
// Create a new li element
const doctorItem = document.createElement("li");

// Set the inner HTML of the li element
doctorItem.innerHTML = `
<div class="content">
<h4>${doctor.name}</h4>
<p>Specialization: ${doctor.specialization}</p>
<p>Experience: ${doctor.experience} years</p>
<p>Fee: $${doctor.fee}</p>
</div>
${doctor.image ? `<img src="${doctor.image}" alt="${doctor.name}" style="width: 80px; height: auto; border-radius: 50%;">` : ""}
`;

// Added a click event listener to the li element to redirect to appointment page
doctorItem.addEventListener('click', () => {
window.location.href = 'appointment.html';
});

// Append the li element to the parent UL element
doctorListElement.appendChild(doctorItem);
});

}

function filterDoctors() {
Expand Down
1 change: 1 addition & 0 deletions Html-Files/blood.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<li><a href="./news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="../dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="../index.html#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="../index.html#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="./contact.html"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="../rateus.html"><i class="bi bi-star"></i>Rate Us</a></li>
Expand Down
1 change: 1 addition & 0 deletions Html-Files/bloodtest.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<li><a href="../news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="../dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="../index.html"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="../Html-Files/Doctor Experience.html"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="../index.html"><i class="bi bi-telephone"></i>Contact us</a></li>

Expand Down
1 change: 1 addition & 0 deletions Html-Files/cardio.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="../dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="../index.html#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="../index.html#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="../index.html#contact"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="../index.html#feedback"><i class="bi bi-star"></i>Rate Us</a></li>
Expand Down
1 change: 1 addition & 0 deletions Html-Files/customer_agreement.html
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@
><i class="bi bi-person"></i> Patient Portal</a
>
</li>
<li><a href="appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li>
<a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions Html-Files/ent.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="../dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="../index.html#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="../index.html#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="../index.html#contact"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="../index.html#feedback"><i class="bi bi-star"></i>Rate Us</a></li>
Expand Down
1 change: 1 addition & 0 deletions Html-Files/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<li><a href="/Html-Files/news.html"><i class="bi bi-newspaper"></i>News</a></li>
<a href="/dex.html"><i class="bi bi-gear"></i>Service</a>
<li><a href="/index.html#patient-portal"><i class="bi bi-person"></i>Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="/index.html#doctors"><i class="bi bi-person-circle"></i>Doctor</a></li>
<li><a href="/Html-Files/contact.html"><i class="bi bi-telephone"></i>Contact us</a></li>

Expand Down
1 change: 1 addition & 0 deletions Html-Files/privacy_policy_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@
><i class="bi bi-person"></i> Patient Portal</a
>
</li>
<li><a href="appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li>
<a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions Html-Files/terms_and_conditions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@
<li>
<a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a>
</li>
<li><a href="appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li>
<a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions checkup.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<div class="con" style="display: flex; gap: 10px;"><li><a href="#contact"><i class="bi bi-telephone"></i> Contact us</a></li></div>
<li><a href="#feedback"><i class="bi bi-star"></i> Rate Us</a></li>
Expand Down
1 change: 1 addition & 0 deletions dex.html
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="index.html#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="index.html#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="index.html#contact"><i class="bi bi-telephone"></i>Contact us</a></li>

Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="#contact"><i class="bi bi-telephone"></i> Contact us</a></li>
<li><a href="#feedback"><i class="bi bi-star"></i> Rate Us</a></li>
Expand Down
1 change: 1 addition & 0 deletions medicine.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="index.html#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="index.html#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="index.html#contact"><i class="bi bi-telephone"></i>Contact us</a></li>

Expand Down
1 change: 1 addition & 0 deletions news.html
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@
<li><a href="news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="Html-Files/appointment.html"><i class="bi bi-person"></i> Appointment</a></li>
<li><a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="#contact"><i class="bi bi-telephone"></i> Contact us</a></li>
<li><a href="#feedback"><i class="bi bi-star"></i> Rate Us</a></li>
Expand Down

0 comments on commit 7f43d52

Please sign in to comment.