PageSourceSearch

https://findmylandlord.netlify.app/assets/js/reset.js

js findmylandlord.netlify.app collected 2026-10-03 10:44:23 UTC 998 bytes, 40 lines download raw bytes

1function resetSearchResults() {
2	// Hide counter
3	searchResultsCounter.style.display = "none";
4	// Hide list
5	searchResultsList.style.display = "none";
6	// Hide selected property
7	selectedContainer.style.display = "none";
8
9	// Clear counter and list HTML
10	searchResultsCounter.innerHTML = "";
11	searchResultsList.innerHTML = "";
12
13	var noResults = document.getElementById("no-results-container");
14
15	if (noResults) {
16		// Remove no results message
17		noResults.parentNode.removeChild(noResults);
18	};
19};
20
21function resetMap() {		
22	// Restore default layer
23	map.setFilter("allProperties", ['all',
24		...getViewFilters()
25	]);
26	map.setPaintProperty("allProperties", "circle-opacity", defaultOpacity);
27
28	// Remove related layer
29	if (map.getLayer("relatedProperties")) {
30		map.removeLayer("relatedProperties");
31		map.removeSource("relatedProperties");
32	};
33
34	// Remove marker
35	if (markerContainer) {
36		// Remove marker
37		markerContainer.parentNode.removeChild(markerContainer);
38		markerContainer = null;
39	};
40};

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.