Skip to content

Commit

Permalink
fix bug in Responsive Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
satriairawan05 committed Aug 2, 2023
1 parent 88bcc40 commit 211720d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,17 @@ <h2>Informasi Acara</h2>
refresh: 1000, //default refresh every 1s
});
</script>
<script>
const offCanvas = document.querySelector(".offcanvas");
const stickyTop = document.querySelector(".sticky-top");

offCanvas.addEventListener("show.bs.offcanvas", function (e) {
stickyTop.style.overflow = "visible";
});

offCanvas.addEventListener("hidden.bs.offcanvas", function (e) {
stickyTop.style.overflow = "hidden";
});
</script>
</body>
</html>

0 comments on commit 211720d

Please sign in to comment.