PageSourceSearch

https://www.edgeofamericains.com/wp-content/themes/zywave-twentytwo/js/turborater-iframe-parent.js

js edgeofamericains.com collected 2026-10-08 21:26:16 UTC 1,920 bytes, 56 lines download raw bytes

1//Setup namespaces.
2var Itc = Itc || {};
3Itc.ConsumerRater = Itc.ConsumerRater || {};
4
5
6// IE Compatibiliity Mode
7jQuery(document).ready(function () {
8  Itc.ConsumerRater.iFrameParentController.SetupOnChangeEvents();
9});
10
11// Modern browsers
12function postBackInit() {
13  Itc.ConsumerRater.iFrameParentController.SetupOnChangeEvents();
14}
15
16// create controller
17Itc.ConsumerRater.iFrameParentController = {
18  SetupOnChangeEvents: function() {
19    if (window.addEventListener) {
20      window.addEventListener("message", Itc.ConsumerRater.iFrameParentController.onDocLoadedFromiFrame, true);
21    } else if (window.attachEvent) {
22      window.attachEvent("onmessage", Itc.ConsumerRater.iFrameParentController.onDocLoadedFromiFrame, true);
23    }
24
25    jQuery.getScript("ajax/libs/mobile-detect/1.4.3/mobile-detect.min.js", function () {
26      var md = new MobileDetect(window.navigator.userAgent);
27      if (md.mobile()) {
28        jQuery.getScript("https://quotes.iwantinsurance.com/camera/ITC.pdf417barcode.camera.js",
29          function () {
30
31          });
32      }
33    });
34    jQuery.getScript("ajax/libs/iframe-resizer/4.1.1/iframeResizer.min.js",
35      function () {
36        iFrameResize({ autoResize: true, checkOrigin: false });
37      });
38  },
39
40  checkSession: function() {
41    jQuery("iframe").each(function() { ;
42      var iframe = document.getElementById(jQuery(this).attr("id"));
43      console.log('src = ' + iframe.src);
44      if (iframe.src.toLowerCase().indexOf("iwantinsurance.com") > 0) {
45        console.log('parent posting message');
46        var iframeWindow = (iframe.contentWindow || iframe.contentDocument);
47        iframeWindow.postMessage({ "cookieCheck": "checkCookies", url: iframe.src }, "*");
48      }
49    });
50  },
51  onDocLoadedFromiFrame: function(event) {
52    if (event.origin.toLowerCase().indexOf("iwantinsurance.com") > 0) {
53      Itc.ConsumerRater.iFrameParentController.checkSession();
54    }
55  }
56};

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.