From 265c7fbc0374348ab70af4853efa6bcb0bde936f Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 7 Mar 2024 10:21:09 +0100 Subject: [PATCH] clean js --- .../js/quartiers_de_demain.js | 55 +------------------ 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/web/themes/custom/quartiers_de_demain/js/quartiers_de_demain.js b/web/themes/custom/quartiers_de_demain/js/quartiers_de_demain.js index 4c9378c..fc9e0c7 100644 --- a/web/themes/custom/quartiers_de_demain/js/quartiers_de_demain.js +++ b/web/themes/custom/quartiers_de_demain/js/quartiers_de_demain.js @@ -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() { - -} \ No newline at end of file