Skip to content

Commit

Permalink
`
Browse files Browse the repository at this point in the history
  • Loading branch information
elidakirigo committed Dec 7, 2023
1 parent 4793f8b commit 74755ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion responsive-portfolio-website-Alexa/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ img {
}

/*==================== TESTIMONIAL ====================*/
.testimonial{
.testimonial {
padding: 0 2rem;
}
.testimonial__data,
Expand Down
16 changes: 8 additions & 8 deletions responsive-portfolio-website-Alexa/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function scrollActive() {

sections.forEach((current) => {
const sectionHeight = current.offsetHeight
const sectionTop = current.offsetTop - 50
const sectionTop = current.offsetTop - 50,
sectionId = current.getAttribute('id')

if (scrollY > sectionTop && scrollY <= sectionTop + sectionHeight) {
Expand All @@ -154,13 +154,13 @@ function scrollHeader() {
window.addEventListener('scroll', scrollHeader)

/*==================== SHOW SCROLL UP ====================*/
// function scrollUp() {
// const scrollTop = document.getElementById('scroll-up')
// // When the scroll is higher than 560 viewport height, add the show-scroll class to the a tag with the scroll-top class
// if (this.scrollY >= 560) scrollUp.classList.add('show-scroll')
// else scrollUp.classList.remove('show-scroll')
// }
// window.addEventListener('scroll', scrollUp)
function scrollUp() {
const scrollTop = document.getElementById('scroll-up')
// When the scroll is higher than 560 viewport height, add the show-scroll class to the a tag with the scroll-top class
if (this.scrollY >= 560) scrollTop.classList.add('show-scroll')
else scrollUp.classList.remove('show-scroll')
}
window.addEventListener('scroll', scrollUp)

/*==================== DARK LIGHT THEME ====================*/

Expand Down

1 comment on commit 74755ba

@vercel
Copy link

@vercel vercel bot commented on 74755ba Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.