Skip to content

Commit

Permalink
Merge pull request #3 from brinobruno/navbar-close-on-option-click
Browse files Browse the repository at this point in the history
fix: Navbar should close when user clicks an option #2081 clappr/clap…
  • Loading branch information
leaofelipe authored Jan 18, 2023
2 parents 5c4adc7 + b689fcc commit defb474
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions clappr-custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$(document).ready(function () {
$(".clappr-ws__menu-link").on("click", function () {
$(".clappr-ws__menu-list").attr("style", ""),
setTimeout(function () {
$(".clappr-ws__side-menu").attr("style", ""),
$(".clappr-ws__menu").attr("style", "width: 0vw;"),
setTimeout(function () {
$(".clappr-ws__open-menu").addClass("none");
}, 500);
}, 100);
});
});
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ <h3 class="clappr-ws__card-title">Others plugins</h3>
<circle fill="#FFFFFF" cx="30" cy="30" r="30"/>
</svg>
</div>

<script type="text/javascript" src="clappr-custom.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
</body>
</html>

0 comments on commit defb474

Please sign in to comment.