Skip to content

Commit

Permalink
Merge branch 'main' into fix-responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 authored Aug 8, 2024
2 parents 6a311eb + 7fee8f6 commit 845b55f
Show file tree
Hide file tree
Showing 27 changed files with 1,494 additions and 360 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/auto-label-pr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,38 @@
name: Auto Label PRs
name: Auto Label and Issue Check

on:
pull_request:
types: [opened, edited]
types: [opened, edited, synchronize]

jobs:
label_pr:
auto-label-and-check:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml

- name: Add GSSOC label
- name: Add GSSoC Label and Check Issue
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['gssoc']
})
const { owner, repo } = context.repo;
const pr = context.payload.pull_request;
try {
await github.rest.issues.addLabels({
issue_number: pr.number,
owner: owner,
repo: repo,
labels: ['gssoc']
});
console.log('Added gssoc label');
} catch (error) {
console.error('Error adding gssoc label:', error);
}
const body = pr.body || '';
const issueMatch = body.match(/(?:close|closes|closed|fix|fixes|fixed|resolve|resolves|resolved)\s*:?\s*#(\d+)/i);
if (!issueMatch) {
core.setFailed('No related issue mentioned in the PR description. Please use the PR template and mention the related issue.');
} else {
console.log('Related issue found:', issueMatch[1]);
}
4 changes: 2 additions & 2 deletions Css-Files/testimonial.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@

@media screen and (max-width: 768px) {
.testimonals {
width: 90%;
width: 100%;
}

.testimonals-content {
width: 100%;
width: 90%;
font-size: 10px;
}

Expand Down
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
33 changes: 16 additions & 17 deletions Html-Files/appointment.html
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@
border: 1px solid #5a7f5a;
border-radius: 5px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
background-color: #005253;
color: #e0f7e4;
Expand Down Expand Up @@ -896,6 +895,19 @@
#preview-section button {
font-size: 14px;
}
}
@media screen and (max-width: 767px) {
small {
font-size: 12px;
padding: 8px 0;
}
}

@media screen and (max-width: 480px) {
small {
font-size: 10px;
padding: 6px 0;
}
}
</style>
<link rel="stylesheet" href="chatbox.css" />
Expand Down Expand Up @@ -938,7 +950,7 @@
};
</script>
<!-- ############# Header ############# -->
<header class="header_container nav-h">
<header class="header_container nav-h" style="padding-right: 160px;">
<div class="img">
<img
id="rd-logo"
Expand Down Expand Up @@ -977,15 +989,6 @@
<li>
<a href="rateus.html"><i class="bi bi-star"></i>Rate Us</a>
</li>

<li>
<a href="login.html"
><i class="bi bi-box-arrow-right"></i> Sign in/Sign up</a
>
</li>
<a href="./Html-Files/Doctor Experience.html"
><button>Find a Doctor</button></a
>
</ul>
<div class="hamburger">
<div class="line"></div>
Expand Down Expand Up @@ -1162,13 +1165,9 @@ <h4>RAPIDOC Newsletter</h4>
<a href="https://www.facebook.com/" target="_blank"
><div><i class="fa-brands fa-facebook-f"></i></div
></a>
<!-- <a href="https://www.twitter.com" target="_blank"><div><i class="fa-brands fa-twitter"></i></div></a> -->
<a href="https://www.twitter.com"
><div>
<img
src="twitter.png"
style="width: 16px; height: 15px"
/></div
><div><i class="fa-brands fa-twitter"></i>
</div
></a>
<a href="https://www.linkedin.com" target="_blank"
><div><i class="fa-brands fa-linkedin"></i></div
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
46 changes: 46 additions & 0 deletions Html-Files/privacy_policy_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,20 @@
z-index: 9999;
}
</style>
<style>

.Lastupdate {
margin-bottom: 14px;
font-size: 10px;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, serif;
font-weight: 500;
margin-top: 0px;
}
#last-updated-date {
font-size: 10px;
     }

</style>
</head>

<body>
Expand Down Expand Up @@ -846,6 +860,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 Expand Up @@ -880,6 +895,7 @@
<header class="header" id="privacy-policy-header">
<h1 class="title" id="privacy-policy-title" id="downloadSection">Privacy Policy</h1>
</header>
<div class="Lastupdate">Last updated: <span id="last-updated-date"></span></div>
<main class="main-content">
<section class="section">
<h2 class="section-title">Introduction</h2>
Expand Down Expand Up @@ -1124,5 +1140,35 @@ <h4>RAPIDOC Newsletter</h4>


</script>

<script>
document.addEventListener("DOMContentLoaded", () => {
function updateLastUpdatedDate() {
const dateElement = document.getElementById("last-updated-date");
if (dateElement) {
const now = new Date();
const day = now.getDate();
const monthNames = [
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
const month = monthNames[now.getMonth()];
const year = now.getFullYear();
// Use backticks for template literals
dateElement.textContent = `${month} ${day}, ${year}`;
}
}

// Initialize the date update
updateLastUpdatedDate();
});

window.onscroll = function () {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("progressBar").style.width = scrolled + "%";
};
</script>
</body>
</html>
46 changes: 46 additions & 0 deletions Html-Files/terms_and_conditions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,21 @@


</style>

<style>

.Lastupdate {
margin-bottom: 14px;
font-size: 10px;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, serif;
font-weight: 500;
margin-top: 0px;
}
#last-updated-date {
font-size: 10px;
     }

</style>
</head>

<body>
Expand Down Expand Up @@ -1104,6 +1119,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 Expand Up @@ -1146,6 +1162,7 @@
<header class="header" id="terms-conditions-header">
<h1 class="title" id="terms-conditions-title">Terms and Conditions</h1>
</header>
<div class="Lastupdate">Last updated: <span id="last-updated-date"></span></div>
<main class="main-content" id="terms-conditions-main">
<section class="section">
<h2 class="section-title">Introduction</h2>
Expand Down Expand Up @@ -1318,6 +1335,35 @@ <h4>RAPIDOC Newsletter</h4>
</div>
</div>
</footer>
<script>
document.addEventListener("DOMContentLoaded", () => {
function updateLastUpdatedDate() {
const dateElement = document.getElementById("last-updated-date");
if (dateElement) {
const now = new Date();
const day = now.getDate();
const monthNames = [
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
const month = monthNames[now.getMonth()];
const year = now.getFullYear();
// Use backticks for template literals
dateElement.textContent = `${month} ${day}, ${year}`;
}
}

// Initialize the date update
updateLastUpdatedDate();
});

window.onscroll = function () {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("progressBar").style.width = scrolled + "%";
};
</script>

</body>
</html>
2 changes: 1 addition & 1 deletion checkup.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ body {

@media (max-width: 768px) {
.header_container{
height: 50px;
height: 60px;
}
.nav_link {
display: none;
Expand Down
Loading

0 comments on commit 845b55f

Please sign in to comment.