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
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|