js header

This commit is contained in:
2024-02-28 10:26:28 +01:00
parent 7c1efed323
commit 12903709d1
3 changed files with 37 additions and 13 deletions

View File

@@ -16,18 +16,19 @@
} (Drupal));
jQuery(document).ready(function($){
$('.close-block').click(function(){
$(this).parent().fadeOut();
if(mobile == true){
$("body").css("overflow","auto");
}
});
// $('.close-block').click(function(){
// $(this).parent().fadeOut();
// if(mobile == true){
// $("body").css("overflow","auto");
// }
// });
$('.open-block').click(function(){
$(this).prev().css("display","grid");
if(mobile == true){
@@ -35,7 +36,10 @@
}
});
});
// Hide the header_nav_container when a link inside it is clicked
$('.header_nav_container li').click(function() {
$('.header_nav_container').fadeOut();
});
});