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
|
|
|
|
|
|
|
$('.open-block').click(function(){
|
2024-02-28 10:39:17 +01:00
|
|
|
$(this).toggleClass('opened');
|
2024-02-28 11:08:13 +01:00
|
|
|
|
|
|
|
$('.header_nav_container').toggleClass('display-nav-opened');
|
|
|
|
|
2024-02-27 11:15:47 +01:00
|
|
|
if(mobile == true){
|
|
|
|
$("body").css("overflow","hidden");
|
|
|
|
}
|
2024-03-07 10:21:09 +01:00
|
|
|
|
2024-02-27 11:15:47 +01:00
|
|
|
});
|
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-28 11:08:13 +01:00
|
|
|
|
2024-03-04 11:23:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
//////////// agrandissement du shema
|
|
|
|
|
|
|
|
$('#paragraph-id--9 img').click(function() {
|
|
|
|
$(this).toggleClass('zoom_in');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|