This commit is contained in:
ouidade 2024-03-07 10:21:09 +01:00
parent fff61b5dee
commit 265c7fbc03
1 changed files with 1 additions and 54 deletions

View File

@ -8,18 +8,13 @@
Drupal.behaviors.quartiers_de_demain = {
attach: function (context, settings) {
console.log('It works!');
}
};
} (Drupal));
jQuery(document).ready(function($){
$('.open-block').click(function(){
$(this).toggleClass('opened');
@ -29,7 +24,7 @@
if(mobile == true){
$("body").css("overflow","hidden");
}
});
// Hide the header_nav_container when a link inside it is clicked
@ -37,27 +32,6 @@
$('.header_nav_container').fadeOut();
});
// // /////////////////
// //// ancre dans texte au click parragraphe correspondant arrive en dessous du header
// (function($, window) {
// var adjustAnchor = function() {
// var $anchor = $('.sidebar_first_container'),
// fixedElementHeight = 350;
// if ($anchor.length > 0) {
// $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
// }
// };
// $(window).on('hashchange', function() {
// adjustAnchor();
// });
// })(jQuery, window);
//////////// agrandissement du shema
@ -69,30 +43,3 @@
});
// function $(id){
// return document.getElementById(id);
// }
// function agrandir(id){
// $('popup').style.display='block';
// $('imageAgrandie').src=$(id).src;
// }
// function reduire(){
// $('popup').style.display='none';
// $('imageAgrandie').src="";
// }
// zoom=2;
// document.body.onmousemouve=function(){
// loupe=document.getElementById("#paragraph-id--9");
// loupe.style.left=event.clientX+"px";
// loupe.style.right=event.clientY+"px";
// loupe.style.backgroundSize=(1500*zoom)+"px";
// loupe.style.backgroundPosition=(-loupe.offsetLeft+zoom-150)+"px"+(-loupe.offsetTop+zoom-150)+"px";
// }
function $zoom() {
}