1$(document).ready(function() { 2 3 /*fonction redimension bloc (redimensionner('.selecteur');)*/ 4 function redimensionner(e){var h=0;jQuery(e).each(function(){jQuery(this).height()>h&&(h=jQuery(this).height())}),jQuery(e).each(function(){jQuery(this).height(h)})} 5 6 /******************* NAVIGATION ************************ 7 **************************************************/ 8 9 10 11 var bodySize = $( window ).width(); 12 if (bodySize > 992) { 13 $(".navbar-default .navbar-nav> li").hover(function() { 14 var color_menu = $(this).data('color'); 15 $(this).children("a").css('background-color', color_menu); 16 }, function(e) { 17 var color_menu = $(this).data('color'); 18 if($(this).hasClass('open')){ 19 $(this).children("a").css('background-color', color_menu); 20 }else{ 21 $(this).children("a").css('background-color', 'transparent'); 22 } 23 }); 24 }; 25 26 27 $(".navbar-default .navbar-nav> li").click(function(event) { 28 $(this).siblings('li').children("a").css('background-color', 'transparent'); 29 }); 30 31$('#navigation_principale').on('hide.bs.collapse', function () { 32 $('body').removeClass('MLopacity'); 33 $('.navbar-default').removeClass('open'); 34 $('.navbar-toggle').removeClass('open'); 35 36 }); 37$('#navigation_principale').on('show.bs.collapse', function () { 38 $('body').addClass('MLopacity'); 39 $('.navbar-default').addClass('open'); 40 $('.navbar-toggle').addClass('open'); 41 }); 42 43$('#navigation_principale li.page_courante').prev().addClass('prev_pc'); 44 45$(document).on('click',function(){ 46 $('.collapse').collapse('hide'); 47}); 48 49 50 51 52 /******************* FLASH INFOS ************************ 53 **************************************************/ 54 $('#bg_flash-info .close_modal').click(function() { 55 $( "#bg_flash-info" ).parent('.wrapp').slideUp(); 56 }); 57 if ($('#carousel_texte').length){ 58 $('#carousel_texte').carousel('pause'); 59 } 60 61 /******************* ACTU ************************ 62 **************************************************/ 63redimensionner($('#actu_section .card_wrapper')); 64 65$(function () { 66 $('[data-toggle="tooltip"]').tooltip() 67}) 68 69 70redimensionner('.h_auto'); 71 72 /******************* KIOSQUE ********************** 73 **************************************************/ 74var z3_h = $('#zone-visuels').height(); 75$('#newsletter_section').height(z3_h); 76 77/******************* Lien INX ************************ 78 **************************************************/ 79let inx = $('.menu-util_footer a[href="https://www.inexine.com"]').attr('title','Site façonné par inexine'); 80 81 82 83 84 85///////////SCROLL////////////// 86$(window).scroll(function(){ 87 posScroll = $(document).scrollTop(); 88 if(posScroll >=550) 89 $('.scrollToTop').fadeIn(600); 90 else 91 $('.scrollToTop').fadeOut(600); 92}); 93 94 /*Traduction des placeholders par Gtranslate*/ 95 // Find all placeholders
96 function isTranslated(){var e=$($("#placeholders > div")[0]).text();return!(originalPH==e)}function updatePlaceholders(){$("#placeholders > div").each(function(e,l){placeholders[e].placeholder=$(l).text()})}var placeholders=document.querySelectorAll("input[placeholder]");if(placeholders.length){placeholders=Array.prototype.slice.call(placeholders);var div=$('<div id="placeholders" style="color: transparent;"></div>');placeholders.forEach(function(e){var l=e.placeholder;div.append("<div>"+l+"</div>")}),$("body").append(div);var originalPH=placeholders[0].placeholder;setInterval(function(){isTranslated()&&(updatePlaceholders(),originalPH=placeholders[0].placeholder)},500)} 97 98 99 function modeRs(){ 100 101 /* Réduction du menu contextuel */ 102 $('#menucontextuel_ .encart_fond').attr({ 103 'class': 'encart_fond collapse', 104 id: 'collapseContextuel' 105 }); 106 $('#menucontextuel_ .haut_sommaire a').attr({ 107 'data-toggle': 'collapse', 108 href: '#collapseContextuel', 109 'aria-expanded': 'false', 110 'aria-controls': 'collapseContextuel', 111 'class': 'collapsed' 112 }); 113 $('#menucontextuel_ .haut_sommaire h1').addClass('menuC'); 114 } 115 116 function modeNormal(){} 117 function deplacerBloc(){} 118 function retablirBloc(){} 119 120 var bodySize = $("body").width(); 121 122 if(bodySize < 1290){ 123 modeRs(); 124 if(bodySize < 769){ 125 modeRs(); 126 deplacerBloc(); 127 } 128 }else{ 129 modeNormal(); 130 retablirBloc(); 131 } 132 133 var waitForFinalEvent = (function() { 134 var timers = {}; 135 return function(callback, ms, uniqueId) { 136 if (!uniqueId) { 137 uniqueId = "uniqueId"; 138 } 139 if (timers[uniqueId]) { 140 clearTimeout(timers[uniqueId]); 141 } 142 timers[uniqueId] = setTimeout(callback, ms); 143 }; 144 })(); 145 146 147 $(window).resize( function() { 148 waitForFinalEvent(function() { 149 150 if ($(this).width() < 1290){ 151 modeNormal(); 152 retablirBloc(); 153 if ($(this).width() <769){ 154 modeRs(); 155 deplacerBloc(); 156 }else{ 157 retablirBloc(); 158 } 159 }else if ($(this).width() > 1290){ 160 modeNormal(); 161 retablirBloc(); 162 } 163 }, 500); 164 } ); 165 166 167 168 169 170 $(window).on("orientationchange",function(){ 171 location.reload(); 172 }); 173 174}); 175
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.