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));
|
2024-02-28 10:26:28 +01:00
|
|
|
|
2024-02-26 14:44:32 +01:00
|
|
|
|
|
|
|
jQuery(document).ready(function($){
|
|
|
|
|
2024-02-27 11:15:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-28 10:26:28 +01:00
|
|
|
// $('.close-block').click(function(){
|
|
|
|
// $(this).parent().fadeOut();
|
|
|
|
// if(mobile == true){
|
|
|
|
// $("body").css("overflow","auto");
|
|
|
|
// }
|
|
|
|
// });
|
2024-02-27 11:15:47 +01:00
|
|
|
$('.open-block').click(function(){
|
|
|
|
$(this).prev().css("display","grid");
|
|
|
|
if(mobile == true){
|
|
|
|
$("body").css("overflow","hidden");
|
|
|
|
}
|
|
|
|
});
|
2024-02-26 14:44:32 +01:00
|
|
|
|
2024-02-28 10:26:28 +01:00
|
|
|
// Hide the header_nav_container when a link inside it is clicked
|
|
|
|
$('.header_nav_container li').click(function() {
|
|
|
|
$('.header_nav_container').fadeOut();
|
|
|
|
});
|
|
|
|
});
|
2024-02-26 14:44:32 +01:00
|
|
|
|
|
|
|
|