PageSourceSearch

https://www.rthealth.com.au/static/hs-iframe.js

js rthealth.com.au collected 2026-10-07 02:58:49 UTC 1,407 bytes, 42 lines download raw bytes

1var hsOrigin = "https://www.healthshare.com.au";
2
3if (typeof window !== "undefined") {
4  var hsIframe = document.getElementById("hs-iframe");
5  var hsContainer = document.getElementById("hs-iframe-container");
6
7  if (hsIframe && hsContainer) {
8    function handleMessage(e) {
9      var data = e.data;
10      var isHSOrigin = false;
11      if (e.origin === hsOrigin) {
12        isHSOrigin = true;
13      }
14
15      // handle frameHeight data from HealthShare origin
16      if (data.hasOwnProperty("iframeHeight") && isHSOrigin) {
17        hsIframe.style.height = data.iframeHeight + "px";
18      }
19
20      // update fixed height of main container
21      if (data.hasOwnProperty("containerHeight") && isHSOrigin) {
22        hsContainer.style.height = data.containerHeight + "px";
23      }
24
25      // handle redirect from HealthShare origin to prevent pop up blocking
26      if (data.hasOwnProperty("redirectURL") && isHSOrigin) {
27        window.open(data.redirectURL, "_blank");
28      }
29    }
30    window.addEventListener("message", handleMessage);
31
32    // send window event messages to HealthShare iframe
33    function sendMessage(e) {
34      hsIframe.contentWindow.postMessage(e.type, "*");
35    }
36
37    window.addEventListener("resize", sendMessage);
38    window.addEventListener("orientationchange", sendMessage);
39    window.addEventListener("mousedown", sendMessage);
40    window.addEventListener("click", sendMessage);
41  }
42}

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.