1if (window.document.documentMode) { 2 // Do IE stuff 3} else { 4 // GESTION DU MENU RESPONSIVE 5 document.addEventListener( 6 "DOMContentLoaded", function(event) { 7 const menu = new MmenuLight( 8 document.querySelector( "#menu" ),"(max-width: 1025px)" 9 ); 10 const navigator = menu.navigation(); 11 const drawer = menu.offcanvas(); 12 document.querySelector( 'a[href=".main-nav"]' ) 13 .addEventListener( 'click', function(event) { 14 event.preventDefault(); 15 drawer.open(); 16 }); 17 } 18 ); 19} 20$( document ).ready(function() { 21 accessibilitytoolbar_custom = { 22 /* MANDATORY : ID of the target container which will include the link. If not null, activate the display in link mode. The link will be added as the last element of the target container.*/ 23 idLinkModeContainer : "topbar", 24 }; 25 26 27 //recherche 28 $('#btn-search-header, #search-cancel').on('click', function() { 29 $('#popin-recherche').toggle(); 30 }); 31 32 //galerie photos ACF (champ "galerie"), géré par template-parts/galerie-photos.php 33 $('.acf-gallery').lightSlider({ 34 item:1, 35 slideMove:1, 36 slideMargin:0, 37 loop: true, 38 controls: true, 39 pager: true, 40 auto: false, 41 pause: 5000, 42 speed: 2000, 43 mode: 'slide', 44 }); 45 46 //galerie photos via les médias 47 /* 48 RÉGLAGE IDEAL DE LA GALERIE DANS LA PAGE 49 Lier à : Page du fichier joint 50 Colonnes : 1 51 Taille : Grande 52 */ 53 $('.gallery').lightSlider({ 54 item:1, 55 slideMove:1, 56 slideMargin:0, 57 loop: true, 58 controls: true, 59 pager: true, 60 auto: false, 61 pause: 5000, 62 speed: 2000, 63 mode: 'slide', 64 }); 65 66 67}); // FIN READY 68 69// ORANGE CONFORT + 70function eventFire(el, etype){ 71 if (el.fireEvent) { 72 el.fireEvent('on' + etype); 73 } else { 74 var evObj = document.createEvent('Events'); 75 evObj.initEvent(etype, true, false); 76 el.dispatchEvent(evObj); 77 } 78} 79document.addEventListener('readystatechange', function() { 80 if (document.readyState === "complete") { 81 $( "#btn-accessibilite" ).click(function() { 82 eventFire(document.getElementById('uci_link'), 'click'); 83 }); 84 $(document).on('vclick', '#btn-accessibilite', function(){ 85 console.log("click"); 86 $("#uci_link").trigger('vclick'); 87 }); 88 } 89}); 90
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.