Skip to content

Commit

Permalink
fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
thevijayshankersharma committed Jun 21, 2024
1 parent 51d6399 commit 845d24f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
18 changes: 18 additions & 0 deletions new-website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,24 @@ <h2 class="footer-title">ResourceHub</h2>
checkButtonVisibility();
});

// Hide the loading spinner once the page has fully loaded
window.addEventListener('load', function() {
document.getElementById('loading-spinner').style.display = 'none';
});

document.querySelectorAll('.faq-question').forEach(item => {
item.addEventListener('click', (event) => {
event.preventDefault();
item.classList.toggle('open');
const answer = item.nextElementSibling;
if (answer.style.display === 'block') {
answer.style.display = 'none';
} else {
answer.style.display = 'block';
}
});
});

</script>
<script>
// Hide the loading spinner once the page has fully loaded
Expand Down
27 changes: 27 additions & 0 deletions new-website/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1435,4 +1435,31 @@ body{

.hov:hover{
color: rgba(58, 113, 224, 0.755);
}

#back-to-top-container {
position: fixed;
bottom: 30px;
right: 30px;
cursor: pointer;
z-index: 1000;
}

.circle1 {
background-color: #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s;
}

#back-to-top {
width: 40px;
height: 40px;
fill: currentColor;
transition: fill 0.3s;
}
#back-to-top:hover{
fill: rgba(58, 55, 55);
}

0 comments on commit 845d24f

Please sign in to comment.