Problem: burger menu does not work on mobile
Solution: add even handler to open/close hamburger menu
This commit is contained in:
parent
6c7b66f4ab
commit
f6566f6313
|
@ -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)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user