This commit is contained in:
Roman Pyrih
2026-05-15 13:50:54 +02:00
parent 643c48edf8
commit d4a13b81c9
4 changed files with 53 additions and 29 deletions

View File

@@ -270,7 +270,7 @@
<li class="parent">
<?= nav_item(41, $lang_id, true); ?>
<ul class="lvl-3">
<ul class="lvl-3 lvl-3-big">
<!-- item 1-2-1 -->
<li>
<?= nav_item(['cURL' => '/drzwi-wejsciowe/#aluminiowe', 'cTitle' => 'Aluminiowe']); ?>
@@ -535,9 +535,9 @@
</header>
<script class="footer" type="text/javascript">
$(window).resize(function() {
windowsize = $(window).width();
});
$(window).resize(function() {
windowsize = $(window).width();
});
$( 'body' ).on( click_event, '#header-mine-menu-btn', function()
{
@@ -567,18 +567,47 @@
}
if ( windowsize > 991 ) {
$(function () {
$('body').on(
click_event,
'#header-nav #header-mine-menu .lvl-1 >li.parent >a',
function (e) {
e.preventDefault()
// if ( windowsize > 991 ) {
// $(function () {
// $('body').on(
// click_event,
// '#header-nav #header-mine-menu .lvl-1 >li.parent >a',
// function (e) {
// e.preventDefault()
$(this).parent().toggleClass('active');
}
)
})
}
// $(this).parent().toggleClass('active');
// }
// )
// })
// }
if (windowsize > 991) {
$(function () {
// lvl-1
$('body').on(
click_event,
'#header-nav #header-mine-menu .lvl-1 > li.parent > a',
function (e) {
e.preventDefault();
var $li = $(this).parent();
$li.siblings('.active').removeClass('active');
$li.toggleClass('active');
}
);
// lvl-2
$('body').on(
click_event,
'#header-nav #header-mine-menu .lvl-2 > li.parent > a',
function (e) {
e.preventDefault();
var $li = $(this).parent();
$li.siblings('.active').removeClass('active');
$li.toggleClass('active');
}
);
});
}
</script>