PageSourceSearch

https://www.touchblackpool.com/js/yext.js

js touchblackpool.com collected 2026-09-27 07:39:22 UTC 998 bytes, 44 lines download raw bytes

1var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
2var ARGUMENT_NAMES = /([^\s,]+)/g;
3function getParamNames(func) {
4  var fnStr = func.toString().replace(STRIP_COMMENTS, '')
5  var result = fnStr.slice(fnStr.indexOf('(')+1, fnStr.indexOf(')')).match(ARGUMENT_NAMES)
6  if(result === null)
7     result = []
8  return result
9}
10
11var renderYextPixel = function(pid, ids, source, action, query, querylocation, rank, target, property) {
12
13  var q = [];
14
15  var params = getParamNames(renderYextPixel);
16
17  for (var p in params) {
18
19    var param = params[p];
20    
21    if(action == "impression") {
22  		
23  		target = null;
24  		
25  	}
26
27    if (arguments[p] && arguments[p] != null) {
28      q.push(param+"="+arguments[p]);
29    }
30
31  }
32
33  q = "?"+q.join("&");
34
35  // formatted domain
36  var domain = document.location;
37  domain = domain.hostname.replace(/\./g, "_");
38
39  var img = document.createElement('img');
40  img.src = "https://pl.yext.com/plpixel"+q+"&property="+domain;
41
42  document.body.appendChild(img);
43
44}

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.