Skip to content

Commit

Permalink
menu and scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
desafinadude committed May 14, 2024
1 parent f9398d4 commit 048f1e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pmg/static/resources/css/pr6.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

.pr6-page-container {
background-color: #fff;
border-radius: 42px 42px 0 0;
padding: 2em 2em;
border-radius: 22px 22px 0 0;
padding: 4em 2em 1em 2em;
position: relative;
top: -250px;
}
Expand Down
12 changes: 12 additions & 0 deletions pmg/templates/pr6/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,18 @@ <h3>Special thanks to</h3>

</div>

<script>
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();

document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>




Expand Down

0 comments on commit 048f1e4

Please sign in to comment.