drupal-quartiersdedemain/web/themes/custom/quartiers_de_demain/js/quartiers_de_demain.js

41 lines
653 B
JavaScript
Raw Normal View History

2024-02-26 14:44:32 +01:00
/**
* @file
* quartiers_de_demain behaviors.
*/
(function (Drupal) {
'use strict';
Drupal.behaviors.quartiers_de_demain = {
attach: function (context, settings) {
console.log('It works!');
}
};
} (Drupal));
jQuery(document).ready(function($){
2024-02-27 11:15:47 +01:00
$('.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){
$("body").css("overflow","hidden");
}
});
2024-02-26 14:44:32 +01:00
});