PageSourceSearch

https://about.homeasap.com/wp-content/plugins/my-idx-home-search/public/js/homeasap-search-public.js?ver=2.1.2

js homeasap.com collected 2026-10-02 02:20:06 UTC 2,182 bytes, 54 lines download raw bytes

1(function ($) {
2	'use strict';
3
4	$(function () {
5		$(".homeasap-search-input").autocomplete({
6			source: function (request, response) {
7				$.ajax({
8					url: 'https://api.homeasap.com/NPlay.Services.NPlayApi/api/listings/search/suggestions/' + encodeURIComponent(request.term) + '/10',
9					dataType: "json",
10					type: "GET",
11					success: function (data) {
12						response($.map(data, function (item) {
13							return {
14								label: item.value,
15								value: item.value,
16								suggest: item,
17							}
18						}));
19					}
20				});
21			},
22			minLength: 2,
23			select: function (event, ui) {
24				console.log("Selected: ", ui.item.suggest);
25				this.value = '';
26				var searchUrl = homeasapAutosuggestLink($(this).attr('data-agentid'), ui.item.suggest)
27				if ($(this).attr('data-mode') === 'modal') {
28					openIFrameModal(searchUrl);
29				} else {
30					window.open(searchUrl, '_blank');
31				}
32				return false;
33			}
34		});
35
36		function homeasapAutosuggestLink(agentId, suggestion) {
37			var locationStr = suggestion.location.lat + ',' + suggestion.location.lon + ',6200';
38
39			var route = 'https://homeasap.com/' + (agentId ? agentId + '/' : '') + 'search/map/' + locationStr +
40				(
41					(suggestion.location.locType === 'A') ?
42						(agentId ? '/' + suggestion.location.locId : '/listing/' + suggestion.location.locId)
43						: ''
44				) + '?ob=1';
45			return route;
46		}
47
48		function openIFrameModal(url) {
49			var iframeHTML = '<div class="homeasap-fullscreen-iframe-container" onclick="window.jQuery(\'.homeasap-fullscreen-iframe-container\').remove()"><div width="800" class="homeasap-fullscreen-iframe-popup-container"><img src="data:image/gif;base64,R0lGODlhEQARAIAAAODn7P///yH5BAEHAAEALAAAAAARABEAAAIqBIKpab3v3EMyVHWtWZluf0za0XFNKDJfCq5i5JpomdUxqKLQVmInqyoAADs=" class="homeasap-fullscreen-iframe-popup-close" onclick="window.jQuery(\'.homeasap-fullscreen-iframe-container\').remove()"><iframe src="' + url + '&target=self' + '" frameborder="0" height="100%" width="100%" style="border: 0px; -webkit-mask-image: -webkit-radial-gradient(center, circle cover, white, black); transform: translateZ(0px);"></iframe></div></div>';
50			$(iframeHTML).appendTo($('body'));
51		}
52	});
53
54})(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.