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

Added scroll indicator under navbar #1

Closed
wants to merge 1 commit into from
Closed
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 board.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@
</head>
<body>
<header class="header-area">
<div class="proheader">

<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
<div class="classy-nav-container breakpoint-off">
<div class="container">
<nav class="classy-navbar justify-content-between" id="conferNav">
Expand Down Expand Up @@ -1261,12 +1267,24 @@ <h5>Anil Varma</h5>
</section>

<div id="footer"></div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/confer.bundle.js"></script>
<script src="js/default-assets/active.js"></script>


</body>

</html>
16 changes: 16 additions & 0 deletions chitram.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@
</nav>
</div>
</div>
<div class="proheader">
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
</header>

<section class="breadcrumb-area bg-img bg-gradient-overlay jarallax" style="background-image: url();">
Expand Down Expand Up @@ -150,6 +155,17 @@ <h5>
</section>

<div id="footer"></div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<script src="js/events/chitram.js"></script>
<!-- <script src="js/jquery.min.js"></script> -->
<script src="js/popper.min.js"></script>
Expand Down
20 changes: 19 additions & 1 deletion contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@
</nav>
</div>
</div>
</header>
<div class="proheader">

<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
</header>

<section class="breadcrumb-area bg-img bg-gradient-overlay jarallax" style="background-image: url();">
<div class="container h-100">
<div class="row h-100 align-items-center">
Expand Down Expand Up @@ -215,6 +222,17 @@ <h5>www.sahititla.com</h5>
</div>

<div id="footer"></div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<script src="js/events/validation.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
15 changes: 15 additions & 0 deletions events.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@
</nav>
</div>
</div>
<div class="proheader">
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
</header>

<section class="breadcrumb-area bg-img bg-gradient-overlay jarallax" style="background-image: url();">
Expand Down Expand Up @@ -240,7 +245,17 @@ <h6>Freshers Event</h6>
</div>

<div id="footer"></div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<!-- <script src="js/jquery.min.js"></script> -->
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
Expand Down
15 changes: 15 additions & 0 deletions hasyam.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
</nav>
</div>
</div>
<div class="proheader">
<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
</header>

<section class="breadcrumb-area bg-img bg-gradient-overlay jarallax" style="background-image: url();">
Expand Down Expand Up @@ -160,7 +165,17 @@ <h5>
</section>

<div id="footer"></div>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

function myFunction() {
var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
var scrolled = (winScroll / height) * 100;
document.getElementById("myBar").style.width = scrolled + "%";
}
</script>
<script src="js/events/hasyam.js"></script>
<!-- <script src="js/jquery.min.js"></script> -->
<script src="js/popper.min.js"></script>
Expand Down
25 changes: 21 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@
<div class="loadbar">
<div id="fill"></div>
</div>
</div>
</div>

<header class="header-area">

<div class="classy-nav-container breakpoint-off">
<div class="container">
<nav class="classy-navbar justify-content-between" id="conferNav">
Expand All @@ -104,7 +105,7 @@
<div class="classynav">
<ul id="nav">
<li class="active"><a href="#">Home</a></li>
<li ><a href="board.html">Board</a></li>
<li><a href="board.html">Board</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
Expand All @@ -114,6 +115,12 @@
</nav>
</div>
</div>
<div class="proheader">

<div class="progress-container">
<div class="progress-bar" id="myBar"></div>
</div>
</div>
</header>

<section class="welcome-area">
Expand Down Expand Up @@ -620,14 +627,24 @@ <h6>Sahititla.vit@gmail.com</h6>
$(".loadmain").hide();}

</script>

<script src="js/events/validation.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/confer.bundle.js"></script>
<script src="js/default-assets/active.js"></script>
<script src="js/jquery.countTo.js"></script>
<script src="js/main.js"></script>

<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

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