Skip to content
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
2 changes: 2 additions & 0 deletions site/layouts/partials/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,5 @@
<script type="text/javascript" src="{{ "js/onScrollMenu.js" | absURL }}"></script>
<!-- PayPal donation Script -->
<script type="text/javascript" src="{{ "js/donate.js" | absURL }}"></script>
<!--Hiding/Displaying the move to top chevron on scroll-->
<script type="text/javascript" src="{{ "js/hideChevronOnScroll.js" | absURL }}"></script>
2 changes: 1 addition & 1 deletion site/layouts/partials/legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="hidden">Legal Information</h2>
</section>

<a class="page-scroll hiddenlink" href="#page-top" title="Scroll to top">
<div id="scroll-to-top">
<div id="scroll-to-top" style="display: none;">
<i class="fa fa-chevron-up" aria-hidden="true"></i>
</div>
</a>
8 changes: 8 additions & 0 deletions site/static/js/hideChevronOnScroll.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//script to hide/show the "move to top" chevron on scroll
$(window).scroll(function() {
if ($(this).scrollTop() > 700) {
$("#scroll-to-top").fadeIn();
} else {
$("#scroll-to-top").fadeOut();
}
});