Skip to content

Commit

Permalink
Added "Scroll Down Progress Bar" To The website (#666)
Browse files Browse the repository at this point in the history
* Added Progress bar
  • Loading branch information
MastanSayyad authored Jul 5, 2024
1 parent 4592b3b commit 0e70c48
Show file tree
Hide file tree
Showing 5 changed files with 1,322 additions and 1,144 deletions.
19 changes: 19 additions & 0 deletions Html-Files/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,16 @@
}
}

#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 6px;
background-color: #3fbcc0;
z-index: 9999;
}

</style>
<link rel="stylesheet" href="chatbox.css">
<!-- Google Fonts Link For Icons chatboxx -->
Expand All @@ -411,6 +421,15 @@
</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="pre">
<div class="loader"></div>
</div>
Expand Down
20 changes: 20 additions & 0 deletions dex.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,28 @@
<link rel="stylesheet" href="assets/css/styles.css">

<title>RAPIDOC|Delivery</title>
<style>
#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 6px;
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" id="header">
<nav class="nav container">
Expand Down
21 changes: 21 additions & 0 deletions faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,29 @@
text-align: center;
font-size: xx-large;
}
#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 6px;
background-color: #3fbcc0;
z-index: 9999;
}

</style>
<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">
Expand Down
Loading

0 comments on commit 0e70c48

Please sign in to comment.