1$( document ).ready(function() { 2 $('.main-nav').hcOffcanvasNav({ 3 disableAt: 1281, 4 width: 300, 5 customToggle: $('#button-menu-resp'), 6 navTitle: 'MENU', 7 levelTitles: true, 8 levelTitleAsBack: true, 9 ariaLabels: { 10 open: 'Ouvrir Menu', 11 close: 'Fermer Menu', 12 submenu: 'Sous-menu' 13 } 14 }); 15 $( "#button-menu-resp" ).click(function() { 16 $( ".nav-content" ).append( $( ".sidebar" ) ); 17 $( ".nav-content" ).append( $( "header .acces-espace" ) ); 18 }); 19 20 // LIGHTSLIDER 21 try { 22 $('.js-slider-fade').lightSlider({ 23 item:1, 24 slideMove:1, 25 slideMargin:0, 26 loop: true, 27 controls: false, 28 pager: false, 29 auto: true, 30 pause: 5000, 31 speed: 2000, 32 mode: 'fade', 33 }); 34 } catch(e) { 35 36 } 37 38 39 /* 40 //activé dans prestataires.js pour liste & directement dans detail.php pour detail 41 $('.js-prestataire').lightSlider({ 42 item:1, 43 slideMove:1, 44 slideMargin:0, 45 controls: true, 46 pager: false, 47 speed: 1000, 48 }); 49 */ 50 51 try { 52 53 $('.js-bulles').lightSlider({ 54 item:5, 55 slideMove:1, 56 slideMargin:0, 57 loop: false, 58 controls: true, 59 pager: false, 60 auto: false, 61 responsive : [ 62 { 63 breakpoint:1441, 64 settings: { 65 item:4 66 } 67 }, 68 { 69 breakpoint:1281, 70 settings: { 71 item:3, 72 } 73 }, 74 { 75 breakpoint:801, 76 settings: { 77 item:2, 78 } 79 }, 80 { 81 breakpoint:515, 82 settings: { 83 item:1, 84 } 85 } 86 ] 87 }); 88 89 90 } catch(e) { 91 } 92 93 $( ".main-nav__item" ) 94 .mouseenter(function() { 95 if ($(this).find('.main-nav-2nd__list').length) { 96 $("a.logo").addClass( "menu-is-open" ); 97 } 98 }) 99 .mouseleave(function() { 100 if ($(this).find('.main-nav-2nd__list').length) { 101 $("a.logo").removeClass( "menu-is-open" ); 102 } 103 }); 104 105 $( ".scroll-next" ).click(function() { 106 $("html").animate({ scrollTop: $("#main-header")[0].scrollHeight}, 800); 107 }); 108 109 accessibilitytoolbar_custom = { 110 /* 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.*/ 111 idLinkModeContainer : "main-header", 112 }; 113 114 $(window).scroll(function(){ 115 if ($(window).scrollTop() > 100){ 116 $('.sidebar').addClass('js-scrolled'); 117 } else if ($(window).scrollTop() < 100) { 118 $('.sidebar').removeClass('js-scrolled'); 119 } 120 }); 121 122 //zoom image issue de l'éditeur 123 $('.zoomImage').each(function() { 124 125 if($(this).data('src')!='' && $(this).data('src')!=null && $(this).data('src')!=undefined) { 126 var src = $(this).data('src'); 127 var alt = $(this).prop('alt'); 128 129 var html = "<div class=\"js-lightgallery\"><a href=\""+src+"\" class=\"\"><img src=\""+src+"\" alt=\""+alt+"\" style=\"max-width:100%\">"; 130 131 if($(this).data('copyright')!='' && $(this).data('copyright')!=null && $(this).data('copyright')!=undefined) { 132 html += "<span class=\"credits-photo\">© " + $(this).data('copyright') + "</span>"; 133 } 134 135 html += "</a></p>"; 136 $(this).replaceWith(html); 137 } 138 }); 139 140 try { 141 // LIGHTGALLERY 142 $('.js-lightgallery').lightGallery({ 143 hash:false, 144 share:false, 145 actualSize:false, 146 fullScreen:false 147 }); 148 } catch(e) { 149 150 } 151 152 //recherche 153 $('#btn_recherche, #btn_recherche_responsive, #recherche-close').on('click', function() { 154 $('#popin-recherche').toggle(); 155 }); 156 157 //alerte 158 $('#popin-alerte-close').on('click', function() { 159 $('#popin-alerte').toggle(); 160 }); 161 162 // Hide Header on on scroll down 163 var didScroll; 164 var lastScrollTop = 0; 165 var delta = 5; 166 var navbarHeight = $('.topbar').outerHeight(); 167 $(window).scroll(function(event){ 168 didScroll = true; 169 }); 170 setInterval(function() { 171 if (didScroll) { 172 hasScrolled(); 173 didScroll = false;
174 } 175 }, 250); 176 function hasScrolled() { 177 var st = $(this).scrollTop(); 178 // Make sure they scroll more than delta 179 if(Math.abs(lastScrollTop - st) <= delta) 180 return; 181 // If they scrolled down and are past the navbar, add class .nav-up. 182 // This is necessary so you never see what is "behind" the navbar. 183 if (st > lastScrollTop && st > navbarHeight){ 184 // Scroll Down 185 $('.topbar').removeClass('nav-down').addClass('nav-up'); 186 } else { 187 // Scroll Up 188 if(st + $(window).height() < $(document).height()) { 189 $('.topbar').removeClass('nav-up').addClass('nav-down'); 190 } 191 } 192 if(st == 0) { 193 $('.topbar').removeClass('nav-down'); 194 } 195 lastScrollTop = st; 196 } 197 198}); // FIN READY 199 200//chemin du site 201//test si la fonction est déjà déclarée 202if (typeof get_url_site !== "function") { 203 //recuperation de l'url du site 204 function get_url_site() { 205 var pathname = window.location.pathname; 206 var url = window.location.href; 207 var a = url.indexOf(pathname); 208 var location = url.substr(0, a); 209 return location; 210 } 211} 212 213// ORANGE CONFORT + 214function eventFire(el, etype){ 215 if (el.fireEvent) { 216 el.fireEvent('on' + etype); 217 } else { 218 var evObj = document.createEvent('Events'); 219 evObj.initEvent(etype, true, false); 220 el.dispatchEvent(evObj); 221 } 222} 223document.addEventListener('readystatechange', function() { 224 if (document.readyState === "complete") { 225 $( "#trigger-accessibility" ).click(function() { 226 $.getScript('https://rgpd.netconception.fr/confortPlus/js/toolbar.js', function() { 227 try { 228 eventFire(document.getElementById('uci_link'), 'click'); 229 } catch(e) { 230 } 231 }); 232 }); 233 /* 234 $(document).on('vclick', '#trigger-accessibility', function(){ 235 console.log("click"); 236 $("#uci_link").trigger('vclick'); 237 }); 238 */ 239 } 240}); 241 242// Toggle Carte Prestataires 243function toggleCarte(){ 244 $('.cartographie-wrapper').toggleClass('is-open'); 245} 246 247function openContactModal() { 248 $('body').addClass('modal-is-open'); 249 $('.popin-contact').fadeIn(); 250} 251 252function closeContactModal() { 253 $('.popin-contact').fadeOut(); 254 $('body').removeClass('modal-is-open'); 255}
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.