mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-10 18:09:05 -06:00
added burger menu support, removed a couple imports
This commit is contained in:
23
app/static/script.js
Normal file
23
app/static/script.js
Normal file
@@ -0,0 +1,23 @@
|
||||
console.log('loaded')
|
||||
|
||||
// Close mobile & tablet menu on item click
|
||||
$('.navbar-item').each(function (e) {
|
||||
$(this).click(function () {
|
||||
if ($('#navbar-burger-id').hasClass('is-active')) {
|
||||
$('#navbar-burger-id').removeClass('is-active');
|
||||
$('#navbar-menu-id').removeClass('is-active');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Open or Close mobile & tablet menu
|
||||
$('#navbar-burger-id').click(function () {
|
||||
console.log("hit")
|
||||
if ($('#navbar-burger-id').hasClass('is-active')) {
|
||||
$('#navbar-burger-id').removeClass('is-active');
|
||||
$('#navbar-menu-id').removeClass('is-active');
|
||||
} else {
|
||||
$('#navbar-burger-id').addClass('is-active');
|
||||
$('#navbar-menu-id').addClass('is-active');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user