PageSourceSearch

https://www.produitenbretagne.bzh/wp-content/cache/min/1/wp-conten…/ajax/ajax-actualites.js?ver=1790915634

js produitenbretagne.bzh collected 2026-10-02 07:13:39 UTC 2,988 bytes, 17 lines download raw bytes

1jQuery(document).ready(function($){var id_trs='';function trs(id,enabled,target){if(typeof id!=="undefined"){if(typeof target==="undefined"){target=$('body')}
2if(id_trs==''){id_trs=id}
3if(id==id_trs){if(typeof enabled==="undefined"||enabled){target.removeClass('notrs');id_trs=''}else{target.addClass('notrs');id_trs=id}}}}
4function alignHeights(options){if("undefined"===typeof options.wrapper){doAlignHeights(options.el)}else{if(options.wrapper.length>0){options.wrapper.each(function(){var this_wrapper=$(this);doAlignHeights(this_wrapper.find(options.el))})}}
5function doAlignHeights(el){if(el.length>0){trs('alignHeights',!1);if("undefined"===typeof options.limite){var limite=480}else{limite=options.limite}
6if("undefined"===typeof options.clear){var clear=!1}else{clear=options.clear}
7if("undefined"===typeof options.smallest){var smallest=!1}else{smallest=options.smallest}
8if(clear){el.height('').addClass('heights_cleared')}else{el.height('auto').addClass('heights_resetted')}
9if(smallest){el.css({'min-height':0,})}
10if(window.matchMedia("(min-width:"+limite+"px)").matches){var max=0;var new_h=0;if(typeof options.step!=="undefined"){var i_count=1;var i_step=0;el.each(function(i){if(i_count<=options.step){$(this).attr('h_step','h_step_'+i_step)}
11if(i_count==options.step){i_count=1;if(i<(el.length-1)){i_step++}}else{i_count++}});for(var i_loop=0;i_loop<=i_step;i_loop++){get_max(el.filter('[h_step="h_step_'+i_loop+'"]'));set_max(el.filter('[h_step="h_step_'+i_loop+'"]'));max=0}}else{get_max(el);set_max(el)}
12function get_max(el){el.each(function(){new_h=$(this).outerHeight();if(max<=new_h){max=new_h}})}
13function set_max(el){el.each(function(){if(typeof $(this).data('adjust_h')==="undefined"){if(smallest){if($(this).outerHeight()<max){if($(this).hasClass('wrap_stickable')){$(this).outerHeight(max)}else{$(this).css({'min-height':max,})}
14$(this).addClass('QxZw1uBq3W js_aligned')}}else{$(this).outerHeight(max).addClass('Bq3WQxZw1u js_aligned')}}else{$(this).outerHeight(parseInt(max)+parseInt($(this).data('adjust_h'))).addClass('9SgOs7kjBa js_aligned')}})}}
15trs('alignHeights')}}}
16$(document).on('click','.section-actualites_main .loadmore',function(){var button=$(this),data={'action':'actualites_loadmore','query':actualites_loadmore_params.posts,'page':actualites_loadmore_params.current_page,};$.ajax({url:actualites_loadmore_params.ajaxurl,data:data,type:'POST',beforeSend:function(xhr){button.find('.loadmore_content').hide();button.find('#loading_loadmore').show()},success:function(data){resp=JSON.parse(data);if(resp.html){button.find('.loadmore_content').show();button.find('#loading_loadmore').hide();$('.wrapper_actus').imagesLoaded(function(){$('.wrapper_actus').append(resp.html);
16alignHeights({el:$('.wrapper_actus .same_height > a'),wrapper:$('.wrapper_actus'),clear:!0,limite:768})});actualites_loadmore_params.current_page++;if(actualites_loadmore_params.current_page==actualites_loadmore_params.max_page)
17button.remove()}else{button.remove()}}})})})

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.