1 $(document).ready(function () { 2 3 /*fonction redimension bloc*/ 4 function redimensionner(selecteur){ 5 var hauteur=0; 6 jQuery(selecteur).each(function(){ 7 if(jQuery(this).height()>hauteur) hauteur = jQuery(this).height(); 8 }); 9 jQuery(selecteur).each(function(){ jQuery(this).height(hauteur); }); 10 } 11 12 13/*************** NAVIGATION (menu deroulant) **********************/ 14 15$(".navbar-default .navbar-nav> li").hover(function() { 16 17 var color_menu = $(this).data('color'); 18 $(this).children("a").css('background-color', color_menu); 19 20}, function(e) { 21 var color_menu = $(this).data('color'); 22 if($(this).hasClass('open')){ 23 $(this).children("a").css('background-color', color_menu); 24 }else{ 25 $(this).children("a").css('background-color', 'transparent'); 26 } 27}); 28$(".navbar-default .navbar-nav> li").click(function(event) { 29 $(this).siblings('li').children("a").css('background-color', 'transparent'); 30}); 31 32 33 34 $('.navbar-nav>li').last().addClass('last'); 35 36 37 38 39 40 41 42 43 44 $("#conteneur_interne #A1 img").addClass('img-responsive'); 45 $("img.vign").addClass('img-responsive'); 46 47 48 49 50/************************************ ACTU ************************************/ 51 52$('#conteneur_index #encart_fond_index_A1 .redac').each(function(index) { 53 $('.titre',this).insertAfter($('.vign',this)); 54 $('.vign',this).wrap('<div class="vign-wrapper" style="height:155px; overflow:hidden"></div>'); 55}); 56 57 58 59/************************************ AGENDA ************************************/ 60$('#agenda_content .redac').each(function(index) { 61 $('h2.titre',this).insertBefore($('.resume',this)); 62 $('.crit1',this).insertAfter($('h2.titre',this)); 63 $('.dateagenda',this).insertAfter($('.link img',this)); 64 65}); 66 setTimeout(function(){ 67var bg5_h = $('#bg5 ').height(); 68$('#agenda_kiosque .wrapper').height(bg5_h); 69$('#actu').height(bg5_h); 70 }, 100); 71 72 /************************************ EN IMAGES ************************************/ 73$("#photo .encart_fond_index .second").wrapAll('<div class="photo-wrapper col-md-5 col-sm-6 no_padd_left"><div class="wrapp-second height-auto"></div></div>'); 74$("#photo .encart_fond_index .resume img").addClass('img-responsive'); 75 76 setTimeout(function(){ 77 redimensionner('#photo .height-auto'); 78 var h_photo = $('#photo .height-auto').height(); 79 $('#video .bloc_video .illus_video').height(h_photo); 80 81 }, 800); 82 83$('<hr>').insertAfter('.page-carrieres-sur-seineenimages #contenu_dyn .resume'); 84 85
86////////////////////////KIOSQUE////////////////////////////// 87$('#kiosque .redac').each(function(index) { 88 $('img',this).addClass('img-responsive pic'); 89 var href = $('.resume a',this).attr('href'); 90 $('.btn.lire_en_ligne',this).attr('href', href); 91 92}); 93 94 95 96 97/****************** deplacement en savoir plus ****************************************/ 98/*$('.redac .resume_container').find('.ensavoirplus').appendTo('#conteneur_interne .redac.TContenu');*/ 99/*$('.ensavoirplus').removeClass('col-md-3 col-sm-12');*/ 100 101/**********************CAROUSSEL INTERNE **********************/ 102$('#caroussel .redac .detail img').insertAfter($('#caroussel .redac .titre')); 103$('#caroussel .redac .img1').addClass('col-md-5'); 104/************************ Deplacement des blocs *********************************/ 105 106 107 function modeRs(){ 108 109 $('.encart_fond').attr({ 110 'class': 'encart_fond collapse', 111 id: 'collapseContextuel' 112 }); 113 $('#menucontextuel_ .haut_sommaire a').attr({ 114 'data-toggle': 'collapse', 115 href: '#collapseContextuel', 116 'aria-expanded': 'false', 117 'aria-controls': 'collapseContextuel', 118 'class': 'collapsed accesNiv1' 119 }); 120 $('#menucontextuel_ .haut_sommaire h1').addClass('menuC'); 121 $('.navbar-nav').removeClass('fs'); 122 123 124 125 } 126 function modeNormal(){ 127 $('.encart_fond').removeClass('collapse'); 128 $('#menucontextuel_ .haut_sommaire h1').removeClass('menuC'); 129 $('.navbar-nav').addClass('fs'); 130 131 var agenda_height = $('#conteneur_index #agenda').outerHeight(); 132 $('#conteneur_index #A1').css('minHeight', agenda_height); 133 } 134 135 function deplacerBloc(){ 136 $('#menu_interne').insertBefore($('#contenu_dynamique')); 137 138 } 139 function retablirBloc(){ 140 $("#bloc_acces_rapide").insertAfter($('#carou_content')); 141 142 } 143 var bodySize = $("body").width(); 144 145 if(bodySize < 992){ 146 147 modeRs(); 148 deplacerBloc(); 149 150 }else{ 151 modeNormal(); 152 retablirBloc(); 153 154 } 155 156 var waitForFinalEvent = (function() { 157 var timers = {}; 158 return function(callback, ms, uniqueId) { 159 if (!uniqueId) { 160 uniqueId = "uniqueId"; 161 } 162 if (timers[uniqueId]) { 163 clearTimeout(timers[uniqueId]); 164 } 165 timers[uniqueId] = setTimeout(callback, ms); 166 }; 167 })(); 168 169 170 $(window).resize( function() { 171 waitForFinalEvent(function() { 172 if(document.body.clientWidth < 992){ 173 modeNormal(); 174 retablirBloc(); 175 if(document.body.clientWidth < 769){ 176 modeRs(); 177 deplacerBloc(); 178 }else{ 179 retablirBloc(); 180 } 181 }else if (document.body.clientWidth > 992){ 182 modeNormal(); 183 retablirBloc(); 184 } 185 }, 500); 186 } ); 187 188 189 190});
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.