Skip to content

Commit

Permalink
Added "Scroll Down Progress Bar" To The website (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejashri-Taral authored Jul 10, 2024
1 parent bca670d commit 3c0cb6e
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 2 deletions.
19 changes: 19 additions & 0 deletions Html-Files/appointment.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,27 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Book an Appointment</title>
<link rel="stylesheet" href="./Css-Files/appointStyle.css">
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>
</head>
<body>
<div id="progressBar"></div>
<script>
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>
<header>
<div class="logo">Doctor's Clinic</div>
</header>
Expand Down
18 changes: 18 additions & 0 deletions Html-Files/customer_agreement.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,29 @@
color: black;
}
</style>
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>

</head>

<body>
<div id="progressBar"></div>
<script>
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>

<div class="container" id="customer-agreement-container">
<header id="customer-agreement-header">
Expand Down
21 changes: 20 additions & 1 deletion Html-Files/derma.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,30 @@
background-color: #02969bd5;
}
</style>
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>
</head>

<body>


<div id="progressBar"></div>
<script>
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>


<button class="button home-button" onclick="window.location.href='../index.html#patient-portal'">Rapidoc</button>

Expand Down
11 changes: 11 additions & 0 deletions Html-Files/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,20 @@
<link rel="stylesheet" href="./Css-Files/aboutus.css" />
<link rel="stylesheet" href="./Css-Files/testimonial.css" />
<script src="chatboxx.js" defer></script>
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>
</head>

<body>

<div id="progressBar"></div>
<script>
window.onscroll = function () {
Expand Down
19 changes: 19 additions & 0 deletions Html-Files/privacy_policy_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -712,9 +712,28 @@
<link rel="stylesheet" href="./Css-Files/aboutus.css" />
<link rel="stylesheet" href="./Css-Files/testimonial.css" />
<script src="chatboxx.js" defer></script>
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>
</head>

<body>
<div id="progressBar"></div>
<script>
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>
<!-- ############# Header ############# -->
<header class="header_container nav-h">
<div class="img">
Expand Down
21 changes: 21 additions & 0 deletions Html-Files/terms_and_conditions.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,30 @@
color: black;
}
</style>
<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>

</head>

<body>
<div id="progressBar"></div>
<script>
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>

<div class="container" id="terms-conditions-container">
<header class="header" id="terms-conditions-header">
<h1 class="title" id="terms-conditions-title">Terms and Conditions</h1>
Expand Down
20 changes: 19 additions & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,27 @@
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />


<style>#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #3fbcc0;
z-index: 9999;

}</style>
</head>
<body>
<div id="progressBar"></div>
<script>
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>
<header class="header_container">
<div class="img">
<img id="rd-logo" style="width: 90px; height: auto;" src="/images/rd.png">
Expand Down

0 comments on commit 3c0cb6e

Please sign in to comment.