PageSourceSearch

https://franke-akademie.de/wp-content/plugins/woocommerce-currency…/js/real-active-filters.js?ver=1.5.4

js franke-akademie.de collected 2026-09-25 02:57:57 UTC 1,783 bytes, 45 lines download raw bytes

1let woocs_interval_active_filter;
2let woocs_interval_active_filter_count = 0;	 
3woocs_interval_active_filter = setInterval(woocs_search_active_filter, 333);
4
5function woocs_search_active_filter () {
6
7    let active_filters = jQuery('.wc-blocks-filter-wrapper .wc-block-active-filters__list-item-name');
8
9    
10    if (woocs_current_currency.name == woocs_default_currency.name || woocs_interval_active_filter_count > 15) {
11	clearInterval(woocs_interval_active_filter );
12	woocs_interval_active_filter  = null;	
13	return;
14    } 
15    
16    const params = new Proxy(new URLSearchParams(window.location.search), {
17      get: (searchParams, prop) => searchParams.get(prop),
18    });       
19    
20    if (jQuery(active_filters).length && (params.min_price || params.max_price )) {
21
22	const unit = window.wc.priceFormat.getCurrency();
23
24	jQuery( active_filters ).each(function( index ) {
25	  if (params.min_price) {
26	     const converted_min = window.wc.priceFormat.formatPrice(woocs_convert_price_filter(params.min_price)* Math.pow(10,unit.minorUnit));
27	    jQuery(this).html(function(index, html){
28		   return html.replaceAll(window.wc.priceFormat.formatPrice(params.min_price*Math.pow(10,unit.minorUnit)), converted_min);
29	    });	      
30	  }
31	  if (params.max_price) {
32	     const converted_max = window.wc.priceFormat.formatPrice(woocs_convert_price_filter(params.max_price)* Math.pow(10,unit.minorUnit));
33	    jQuery(this).html(function(index, html){
34		   return html.replaceAll(window.wc.priceFormat.formatPrice(params.max_price*Math.pow(10,unit.minorUnit)), converted_max);
35	    });	      
36	  }
37	  
38	});
39	
40	clearInterval(woocs_interval_active_filter );
41	woocs_interval_active_filter  = null;
42    }   
43    woocs_interval_active_filter_count++;
44}
45

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.