Problem: burger menu does not work on mobile

Solution: add even handler to open/close hamburger menu
This commit is contained in:
Peter Stuifzand 2022-01-17 00:15:52 +01:00
parent 6c7b66f4ab
commit f6566f6313

View File

@ -111,4 +111,10 @@ $(document).on('click', '.tab', function () {
$(function () { $(function () {
activateTab($('.tab-bar .tab-active')[0]); activateTab($('.tab-bar .tab-active')[0]);
$('.navbar-burger').on('click', function () {
let open = $(this).hasClass('is-active')
$('#' + $(this).data('target')).toggleClass('is-active', !open)
$(this).toggleClass('is-active', !open)
});
}); });