PageSourceSearch

https://microbiota.news/wp-content/themes/microbiota/js/filters.js?v=150350

js microbiota.news collected 2026-10-01 14:04:36 UTC 777 bytes, 26 lines download raw bytes

1document.addEventListener('facetwp-loaded', function () {
2	// Get all .facetwp-facet elements
3	const facetElements = document.querySelectorAll('.facetwp-facet')
4
5	// Loop through each facet element
6	facetElements.forEach((facetElement) => {
7		// Check if the facet element is empty
8		if (facetElement.innerHTML.trim() === '') {
9			// Get the preceding .widget-title element
10			const widgetTitle = facetElement.previousElementSibling
11
12			// Hide the widget title if it exists
13			if (widgetTitle) {
14				widgetTitle.style.display = 'none'
15			}
16		} else {
17			// Get the preceding .widget-title element
18			const widgetTitle = facetElement.previousElementSibling
19
20			// Show the widget title if it exists
21			if (widgetTitle) {
22				widgetTitle.style.display = 'block'
23			}
24		}
25	})
26})

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.