1jQuery(function($) { 2 3 $('#map-accordion .elementor-tab-title').on('click', function() { 4 5 var number=parseInt($(this).find('.number').html()); 6 console.log("click on "+number); 7 8 $('.elementor-widget-heading.bullet-number.active').removeClass('active'); 9 $('.elementor-widget-heading.bullet-number:eq('+(number-1)+')').addClass('active'); 10 11 }); 12 13 $('#map-container .bullet-number').click(function(){ 14 var number=parseInt($(this).find('.number').html()); 15 console.log("click on "+number); 16 $('#map-accordion .elementor-tab-title:eq('+(number-1)+')').click(); 17 }); 18 19 20 setTimeout(function(){ 21 $.ajax({ 22 type: 'POST', 23 url: ajaxurl, // La variable ajaxurl est automatiquement définie par WordPress. 24 data: { 25 action: 'mdl_opening_hours', // Action que nous avons enregistrée dans l'étape 1. 26 }, 27 success: function(response) { 28 //console.log(response); 29 // Manipulez la réponse JSON ici. Par exemple, mettez à jour le contenu de #mdl-opening-hour. 30 $('#mdl-opening-hour-container').html(response); 31 } 32 }); 33 },10); 34 35 36 $('.toggle-bloc-xs').click(function(){ 37 var titleId=$(this).attr('id'); 38 console.log("click on "+titleId); 39 var currentHeight=$('.content-'+titleId).css('max-height'); 40 console.log(currentHeight); 41 if(currentHeight == '0px') 42 { 43 $('.content-'+titleId).css('max-height','999px'); 44 } 45 else { 46 $('.content-'+titleId).css('max-height','0'); 47 } 48 }); 49 50 51 if($('#mdl-storytimeline').length > 0) 52 { 53 // remove empty slides on mobile 54 if ($(window).width() <= 768) { 55 $('#mdl-storytimeline .swiper-slide').each(function(){ 56 if($(this).find('.twae-label-big').length == 0) { 57 $(this).remove(); 58 } 59 }); 60 } 61 62 63 setTimeout(function(){ 64 displayTimelineSlide(); 65 },1500); 66 } 67 68 $('.mdl-timeline').on('click','.swiper-slide',function(){ 69 $('.mdl-timeline').find('.swiper-slide-active').removeClass('swiper-slide-active'); 70 $(this).addClass('swiper-slide-active'); 71 displayTimelineSlide(); 72 }); 73 74 75 $('.mdl-header').each(function(){ 76 $(this).addClass('animated'); 77 }); 78 79 80 81 $('#mdl-timeline-prev').click(function(){ 82 $('#mdl-storytimeline .twae-button-prev').click(); 83 displayTimelineSlide(); 84 }); 85 86 $('#mdl-timeline-next').click(function(){ 87 $('#mdl-storytimeline .twae-button-next').click(); 88 displayTimelineSlide(); 89 }); 90 91 var $legend = $('.mdl-calendar-legend'); 92 if($legend.length) 93 { 94 $(window).on('scroll', function() { 95 if ($(this).scrollTop() >= 600 && $(this).scrollTop() < 600 + parseInt($('.mdl-calendar').css('height'))) { 96 $legend.addClass('sticky'); 97 } else { 98 $legend.removeClass('sticky'); 99 } 100 }); 101 102 } 103 104 $('.elementor-field-group-originedetails').hide(); 105 $('.elementor-field-group-originedetails input').attr('required',null); 106 107 $('#form-field-origine').change(function(){ 108 if($(this).val() == 'Autre') { 109 $('.elementor-field-group-originedetails').show(); 110 $('.elementor-field-group-originedetails input').attr('required','required'); 111 } else { 112 $('.elementor-field-group-originedetails').hide(); 113 $('.elementor-field-group-originedetails input').attr('required',null); 114 } 115 }); 116 117 118}); 119 120 121function displayTimelineSlide(){ 122 console.log("displayTimelineSlide"); 123 //jQuery('#timeline-img').hide(); 124 jQuery('#timeline-title').hide(); 125 jQuery('#timeline-content').hide(); 126 127 128 // fill the content 129 // var imgUrl=jQuery('#mdl-storytimeline .swiper-slide-active .twae-media img').attr('src'); 130 //console.log("slide active = "+jQuery('#mdl-storytimeline .swiper-slide-active').attr('id')); 131 var content=jQuery('#mdl-storytimeline .swiper-slide-active .twae-description').html(); 132 var title=jQuery('#mdl-storytimeline .swiper-slide-active .twae-title').html(); 133 134/* 135 if(imgUrl) 136 { 137 jQuery('#timeline-img img').attr('src',imgUrl); 138 jQuery('#timeline-img').css('opacity','1'); 139 } else { 140 jQuery('#timeline-img').css('opacity','0'); 141 } 142*/ 143 144 145 if(title) 146 { 147 jQuery('#timeline-title .elementor-heading-title').html(title); 148 jQuery('#timeline-title .elementor-heading-title').css('opacity','1'); 149 } else { 150 jQuery('#timeline-title .elementor-heading-title').css('opacity','0'); 151 } 152 153 if(content) 154 { 155 jQuery('#timeline-content .elementor-heading-title').html(content); 156 jQuery('#timeline-content .elementor-heading-title').css('opacity','1'); 157 } else { 158 jQuery('#timeline-content .elementor-heading-title').css('opacity','0'); 159 } 160 161 162 163 //jQuery('#timeline-img').slideDown(); 164 jQuery('#timeline-title').show(); 165 jQuery('#timeline-content').show(); 166 167 168 // adjust arrows 169 170 var selectedIndex=jQuery('#mdl-storytimeline .swiper-slide-active').index();
171 jQuery("#mdl-timeline-prev,#mdl-timeline-next").css('opacity',1); 172 jQuery("#mdl-timeline-prev,#mdl-timeline-next").css('pointer-events','auto'); 173 console.log(selectedIndex+'/'+jQuery('#mdl-storytimeline .swiper-slide .twae-label-big').length); 174 if(selectedIndex == 0) 175 { 176 jQuery("#mdl-timeline-prev").css('opacity',0.15); 177 jQuery("#mdl-timeline-prev").css('pointer-events','none'); 178 } 179 if(selectedIndex == jQuery('#mdl-storytimeline .swiper-slide .twae-label-big').length -1) 180 { 181 jQuery("#mdl-timeline-next").css('opacity',0.15); 182 jQuery("#mdl-timeline-next").css('pointer-events','none'); 183 } 184 185 // hide icons on empty slides 186 jQuery('#mdl-storytimeline .swiper-slide').each(function(){ 187 var titleLength=jQuery(this).find('.twae-label-big').length; 188 console.log(titleLength); 189 if(titleLength == 0) 190 { 191 jQuery(this).find('.twae-icon').hide(); 192 193 } 194 }); 195 196 197} 198
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.