Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scroll down progress bar added #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Pages/3D-Visualizations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@
/>
<body>
<!-- nav bar -->
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<nav>
<div class="container main-navi flex">
<a href="../../index.html" class="company-logo">
Expand Down
18 changes: 18 additions & 0 deletions Pages/About-Us/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@

<body class="text-primary_text_color overflow-x-hidden font-poppins">
<!-- nav bar -->
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<nav>
<div
class="container main-navi max-w-[1180px] overflow-hidden m-auto px-[20px] lg:px-[10px] justify-between mt-5 flex items-center">
Expand Down
18 changes: 18 additions & 0 deletions Pages/Doubt Engine/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@
<link rel="icon" type="image/x-icon" href="../../assets/logo.png">
</head>
<body class="text-primary_text_color overflow-x-hidden font-poppins">
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<!-- nav bar -->
<nav>
<div class="container main-navi max-w-[1180px] overflow-hidden m-auto px-[20px] lg:px-[10px] justify-between mt-5 flex items-center">
Expand Down
18 changes: 18 additions & 0 deletions Pages/Quizes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
</head>
<body>
<!-- nav bar -->
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<nav>
<div class="container main-navi flex">
<a href="../../index.html" class="company-logo">
Expand Down
18 changes: 18 additions & 0 deletions Pages/Simulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
</head>
<body>
<!-- nav bar -->
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<nav>
<div class="container main-navi flex">
<a href="../../index.html" class="company-logo">
Expand Down
18 changes: 18 additions & 0 deletions Pages/Videos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
</head>
<body>
<!-- nav bar -->
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid rgb(71, 71, 132);
background-color:rgb(81, 81, 153);
}
</style>
<nav>
<div class="container main-navi flex">
<a href="../../index.html" class="company-logo">
Expand Down
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,24 @@
<feDropShadow dx="2" dy="2" stdDeviation="3" flood-opacity="0.5"/>
</filter>
</svg>
<div class="nav-wrapper">
<div class="progress-bar"></div>
</div>

<style>
.nav-wrapper{
position: sticky;
top: 0;
background-color: white;
z-index: 12;
}
.progress-bar{
height: 5px;
width: 0;
border: 4px solid blue;
background-color:blue;
}
</style>

<!-- nav bar -->
<nav id = "main_navbar">
Expand Down
7 changes: 7 additions & 0 deletions scroll-reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,10 @@ ScrollReveal().reveal(".footer-content", {
delay: 200,
origin: "bottom",
});
let progressBar = document.querySelector(".progress-bar");
let documentHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;

window.onscroll = function(){
let progress = (scrollY / documentHeight) * 100;
progressBar.style.width = progress + "%";
}
5 changes: 3 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ html.sr .load-hidden {
box-sizing: border-box;
font-family: "Poppins", sans-serif;
scroll-behavior: smooth;
z-index: 0;
}

:root {
Expand Down Expand Up @@ -141,7 +142,7 @@ body {
position: fixed;
top: 0px;
width: 100%;
z-index: 1000;
z-index: 10;
}


Expand Down Expand Up @@ -301,7 +302,7 @@ ul {
.main-nav {
/* margin-top: 20px; */
justify-content: space-between;
overflow: hidden;
/*overflow: hidden;*/
}

.company-logo img {
Expand Down
Loading