1$(document).ready(function () { 2 function fct_exist(fct) { 3 return typeof(fct) === "function"; 4 } 5 6 $('.scrollbar-inner').scrollbar(); 7 8 // Internal page - Contact form 9 // Add an `active` class when user click on input field in a form 10 // With this class, the underline effect is launch 11 // $(".intern-page .form-control").focus(function () { 12 // $(".form-group").removeClass("active"); 13 // $(this).parent().addClass("active"); 14 // }); 15 16 // Internal page - Rapid access (a fixed bottom section) 17 // Not used for now 18 // $(".rapid-access-btn").click(function () { 19 // $(this).closest(".rapid-access").toggleClass("show"); 20 // }); 21 22 23 // Modifier btn des contents builder 24 var formBtn = $(".formComponent").find(".titleButtonForm"); 25 $(formBtn).wrap("<div class='mb-4'><div class='btn-container position-relative'></div></div>") 26 27 28 $('.pictureGallery').on('init', function(event, slick){ 29 var $items = slick.$dots.find('button'); 30 $items.addClass('btn c_btn bg_btn'); 31 }); 32 33 $('.pictureGallery').each(function (element) { 34 let elm = $(this); 35 let carouselType = elm.data('type'); 36 37 switch (carouselType) { 38 case 'simple': 39 elm.slick({ 40 dots: true, 41 arrows: false 42 }); 43 break; 44 case 'multiple': 45 elm.slick({ 46 infinite: true, 47 slidesToShow: 3, 48 slidesToScroll: 3, 49 arrows: false, 50 dots: true, 51 responsive: [ 52 { 53 breakpoint: 1024, 54 settings: { 55 slidesToShow: 3, 56 slidesToScroll: 3, 57 infinite: true 58 } 59 }, 60 { 61 breakpoint: 768, 62 settings: { 63 slidesToShow: 2, 64 slidesToScroll: 2 65 } 66 }, 67 { 68 breakpoint: 480, 69 settings: { 70 slidesToShow: 1, 71 slidesToScroll: 1 72 } 73 } 74 ] 75 }); 76 break; 77 case 'responsive': 78 elm.slick({ 79 infinite: false, 80 speed: 300, 81 slidesToShow: 4, 82 slidesToScroll: 4, 83 arrows: false, 84 dots: true, 85 responsive: [ 86 { 87 breakpoint: 1024, 88 settings: { 89 slidesToShow: 3, 90 slidesToScroll: 3, 91 infinite: true 92 } 93 }, 94 { 95 breakpoint: 768, 96 settings: { 97 slidesToShow: 2, 98 slidesToScroll: 2 99 } 100 }, 101 { 102 breakpoint: 480, 103 settings: { 104 slidesToShow: 1, 105 slidesToScroll: 1 106 } 107 } 108 ] 109 }); 110 break; 111 case 'center': 112 elm.slick({ 113 centerMode: true, 114 centerPadding: '60px', 115 slidesToShow: 3, 116 arrows: false, 117 dots: true, 118 responsive: [ 119 { 120 breakpoint: 768, 121 settings: { 122 centerMode: true, 123 centerPadding: '40px', 124 slidesToShow: 3 125 } 126 }, 127 { 128 breakpoint: 480, 129 settings: { 130 centerMode: true, 131 centerPadding: '40px', 132 slidesToShow: 1 133 } 134 } 135 ] 136 }); 137 break; 138 case 'fade': 139 elm.slick({
140 arrows: false, 141 dots: true, 142 infinite: true, 143 speed: 500, 144 fade: true, 145 cssEase: 'linear' 146 }); 147 break; 148 } 149 }); 150 151 $('.carousel-3').owlCarousel({ 152 loop: true, 153 margin: 20, 154 dots: true, 155 nav: false, 156 responsive: { 157 0:{ 158 items:1 159 }, 160 1000:{ 161 items:2 162 }, 163 1250:{ 164 items:3 165 } 166 } 167 }) 168 169 $('.carousel-news').owlCarousel({ 170 loop: true, 171 margin: 20, 172 dots: false, 173 nav: true, 174 navText: ['<i class="material-icons">chevron_left</i>','<i class="material-icons">chevron_right</i>'], 175 responsive: { 176 0:{ 177 items:1 178 }, 179 1000:{ 180 items:2 181 }, 182 1250:{ 183 items:3 184 } 185 } 186 }) 187 188 $('.carousel-1').owlCarousel({ 189 loop: true, 190 margin: 20, 191 dots: false, 192 nav: true, 193 navText: ['<i class="material-icons">chevron_left</i>','<i class="material-icons">chevron_right</i>'], 194 responsive: { 195 0:{ 196 items:1 197 }, 198 600:{ 199 items:1 200 }, 201 1000:{ 202 items:1 203 } 204 } 205 }) 206 207 // Carousel 208 $('.carousel-5').owlCarousel({ 209 loop: false, 210 margin: 20, 211 nav: true, 212 navText: ['<i class="material-icons">chevron_left</i>','<i class="material-icons">chevron_right</i>'], 213 dots: false, 214 responsive: { 215 0:{ 216 items:2 217 }, 218 600:{ 219 items:5 220 }, 221 1000:{ 222 items:5 223 } 224 } 225 }); 226}); 227 228 229$(window).scroll(function (){ 230 231// Social media 232if ($(this).scrollTop() > 150){ 233 $('.research-container').addClass('sticky'); 234 $('.intern-page header').addClass('sticky'); 235}else{ 236 $('.research-container').removeClass('sticky'); 237 $('.intern-page header').removeClass('sticky'); 238} 239 240}); 241 242 243$(function () { 244 $('[data-toggle="tooltip"]').tooltip({ 245 container: 'body' 246 }); 247 248 $('[data-toggle="popover"]').popover({ 249 container: 'body', 250 template: '<div class="popover tooltip" role="tooltip"><div class="arrow"></div><div class="popover-body tooltip-inner"></div></div>' 251 }); 252 $('*[data-type="PDF"] a, a[data-type="PDF"]').on('click', function(e) { 253 if ($('#pdfModal').length > 0) { 254 e.preventDefault(); 255 $('#pdfModal').find('embed').attr('src', $(this).attr('data-href') || $(this).attr('href')); 256 $('#pdfModal').modal('show'); 257 } 258 }); 259}) 260 261window.addEventListener('load', function () { 262 setTimeout(function() { 263 let input_for_label = document.getElementsByName("g-recaptcha-response"); 264 let label = document.createElement("label"); 265 if (input_for_label.length) { 266 label.setAttribute('aria-label', 'CAPTCHA Label'); 267 label.setAttribute('for', input_for_label[0].getAttribute('id')); 268 input_for_label[0].insertAdjacentElement("beforebegin", label); 269 } 270 271 input_for_label = document.getElementsByName("h-captcha-response"); 272 if (input_for_label.length) { 273 label = document.createElement("label"); 274 label.setAttribute('aria-label', 'CAPTCHA Label'); 275 label.setAttribute('for', input_for_label[0].getAttribute('id')); 276 input_for_label[0].insertAdjacentElement("beforebegin", label); 277 } 278 }, 1000) 279})
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.