PageSourceSearch

https://keto-mojo.com/wp-content/themes/ketomojo/assets/js/pardot-form-resize.js?ver=1790603169

js keto-mojo.com collected 2026-10-01 11:52:28 UTC 1,222 bytes, 44 lines download raw bytes

1(function () {
2  "use strict";
3
4  var MIN_HEIGHT = 200;
5  var MAX_HEIGHT = 10000;
6
7  function isAllowedOrigin(origin) {
8    if (!origin) return false;
9    try {
10      var u = new URL(origin);
11      if (u.protocol !== "https:") return false;
12      var host = u.hostname.toLowerCase();
13      return (
14        host === "pardot.com" ||
15        host.endsWith(".pardot.com") ||
16        host === "go.keto-mojo.com"
17      );
18    } catch (e) {
19      return false;
20    }
21  }
22
23  function findIframeByWindow(win) {
24    var iframes = document.getElementsByTagName("iframe");
25    for (var i = 0; i < iframes.length; i++) {
26      if (iframes[i].contentWindow === win) return iframes[i];
27    }
28    return null;
29  }
30
31  window.addEventListener("message", function (event) {
32    if (!isAllowedOrigin(event.origin)) return;
33    var data = event.data;
34    if (!data || !Number.isFinite(data.ketomojoFormHeight)) return;
35    var iframe = findIframeByWindow(event.source);
36    if (!iframe) return;
37    var height = Math.max(
38      MIN_HEIGHT,
39      Math.min(data.ketomojoFormHeight, MAX_HEIGHT),
40    );
41    iframe.style.setProperty("height", height + "px", "important");
42    iframe.style.setProperty("min-height", "0", "important");
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.