PageSourceSearch

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

js findmylandlord.netlify.app collected 2026-10-03 10:44:21 UTC 656 bytes, 25 lines download raw bytes

1window.addEventListener("resize", function () {
2	if (selectedBounds) {	
3		fitBounds();
4	} else if (marker) {
5		centerMap([marker.getLngLat().lng, marker.getLngLat().lat]);
6	};
7});
8
9function fitBounds() {
10	// Get height of top container
11	var topPadding = document.getElementById("top-container").offsetHeight+40;
12	var rightPadding = document.getElementById("legend").clientWidth+40;
13	// Fit map to bounds
14	map.fitBounds(selectedBounds, {
15		padding: {
16			top: topPadding, 
17			right: rightPadding,
18			bottom: 40, 
19			left: 40
20		},
21		// ! disabled because fitBounds/getBearing doesn't work with getbearing
22		// bearing: map.getBearing(),
23		maxZoom: 16
24	});
25};

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.