“).prependTo(“#block-domain-conf-domain-main-links”); //Rendre des lignes de vue entières cliquables, utile pour jQuery mobile(‘.fullpage-ribbon-banner’).click(function() { var href = jQuery(this).find(“a”).attr(“href”); if(href) { window.location = href; } }); (function(){ // jQuery(this).parent() var el = jQuery(this); var parent = el.parent().parent().parent().parent().parent().parent( .parent(); el.insertAfter(parent); console.log(parent }); // FAQ bascule if (jQuery(‘.question’)) { jQuery(‘.question’).click(function ( ) { console.log(‘j’ai cliqué’); jQuery(this).siblings(‘div’).slideToggle(); jQuery(this).toggleClass(‘expanded’ }); vers le haut jQuery(“.fullpage-banner-image”).insertAfter(“.not-front.page-node #page-title”); //déplacer la section sous le rotateur //jQuery(“.tile-container”). insertBefore(“.view-display-id-homepage_d h2.views-field-title”); function openNav() { document.getElementById(“block-domain-conf-domain-main-links”).style.width = ” 100%” ; document.getElementById(“zone-preface-wrapper”).style.opacity = “.3”; document.getElementById(“zone-content-wrapper”).style.opacity = “.3”; document.getElementById(“zone-postscript-wrapper”).style.opacity = “.3”; } function closeNav() { document.getElementById(“block-domain-conf-domain-main-links”).style.width = “0”; document.getElementById(“zone-preface-wrapper”).style.opacity = “1”; document.getElementById(“zone-content-wrapper”).style.opacity = “1”; document.getElementById(“zone-postscript-wrapper”).style.opacity = “1”; } jQuery(“#menu-btn”).click(openNav); jQuery(“#search-btn”).click(openNav); jQuery(“#close-btn”).click(closeNav); //supprime les styles d’image Drupal par défaut if(jQuery(‘.view-agency-responsive-featured-news-home .views-field-field-image img’).length > 0){ let viewLeadImgs = document.querySelectorAll( ” .views-field-field-image img” ); viewLeadImgs.forEach((img) => { let newUrl = img.attributes.src.value.replace( “/sites/default/files/styles/large/public/dc/sites/”, “/sites/default/files /dc/sites/” ); img.setAttribute(“src”, newUrl); }); } if(jQuery(‘.field-name-field-image img’).length > 0){ let leadImgs = document.querySelectorAll(“.field-name-field-image img”); leadImgs.forEach((img) => { let newUrl = img.attributes.src.value.replace( “/sites/default/files/styles/large/public/dc/sites/”, “/sites/default/files /dc/sites/” ); img.setAttribute(“src”, newUrl); }); } }) //Fin de jQuery
Calendrier public du maire Bowser du mercredi 13 novembre 2024
61