Skip to content

Commit

Permalink
fixed issue of summary being fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Denoue committed Nov 30, 2024
1 parent d2efe5e commit c62c91f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions code.js
Original file line number Diff line number Diff line change
Expand Up @@ -1348,18 +1348,15 @@ keyBtn.onclick = () => {
}

function startObserving() {
//const target = document.getElementById('playercontainer')
const target = document.getElementById('dd')
const target = document.getElementById('playercontainer')
const marker = document.getElementById('marker')
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) {
target.classList.add('fixed')
//summary.style.display = 'none'
} else {
target.classList.remove('fixed')
//summary.style.display = 'unset'
}
});
},
Expand Down
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ footer {
position: fixed !important;
width: 30vw !important;
top: 16px;
left: 16px;
}

#selectLanguage {
Expand Down

0 comments on commit c62c91f

Please sign in to comment.