PageSourceSearch

https://www.regiondentsdumidi.ch/app/plugins/bmg-search/js/predictive-search.min.js?ver=1.0.0

js regiondentsdumidi.ch collected 2026-10-02 04:13:30 UTC 1,829 bytes, 1 lines download raw bytes

1!function(e){"use strict";const t=300,c=2,r=6;let i;const s=e("#search-field"),a=e(".search-wrapper"),l=e(".predictive-search-results");function n(t){t.length<c?l.hide().empty():(l.html('<div class="predictive-search-loading">'+bmgPredictiveSearch.loading_text+"</div>").show(),e.ajax({url:bmgPredictiveSearch.ajax_url,type:"POST",data:{action:"predictive_search",search_term:t,nonce:bmgPredictiveSearch.nonce},success:function(e){e.success&&e.data.results&&e.data.results.length>0?function(e,t,c,i){let s='<ul class="predictive-search-list">';e.forEach((function(e){s+='<li class="predictive-search-item">',s+='<a href="'+e.url+'" class="predictive-search-link">',s+='<div class="predictive-search-content">',s+='<h4 class="predictive-search-title">'+e.title+"</h4>",s+='<p class="predictive-search-excerpt">'+e.excerpt+"</p>",s+='<span class="predictive-search-meta">'+e.post_type_label+"</span>",s+="</div>",s+="</a>",s+="</li>"})),s+="</ul>",c&&t>r&&(s+='<div class="predictive-search-footer">',s+='<a href="#" class="predictive-search-view-all" data-search-term="'+encodeURIComponent(i)+'">',s+=bmgPredictiveSearch.view_all_text+" ("+t+")",s+="</a>",s+="</div>");l.html(s).show()}(e.data.results,e.data.total_count,e.data.has_more,t):l.html('<div class="predictive-search-no-results">'+bmgPredictiveSearch.no_results_text+"</div>").show()},error:function(){l.html('<div class="predictive-search-error">Erreur lors de la recherche</div>').show()}}))}0!==s.length&&0!==a.length&&0!==l.length&&(s.on("input",(function(){const c=e(this).val().trim();clearTimeout(i),i=setTimeout((function(){n(c)}),t)})),e(".search-form").on("submit",(function(){l.hide()})),e(document).on("click",".predictive-search-view-all",(function(t){t.preventDefault();const c=e(this).data("search-term");s.val(c),e(".search-form").submit()})))}(jQuery);

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.