PageSourceSearch

https://www.escobarinsurance.com/scripts/utils.js

js escobarinsurance.com collected 2026-10-08 21:26:14 UTC 2,380 bytes, 74 lines download raw bytes

1function wsp_printCoupon(elemId) {
2  var iframeId = "iframe_" + elemId;
3  
4  function closeIFrame() {
5    var coupon = document.getElementById(iframeId);
6    if (coupon) {
7      coupon.parentNode.removeChild(coupon);
8    }
9  }
10  
11  function setupContent(id, coupon) {
12    var inst, doc, win;
13    if (navigator.appName == "Microsoft Internet Explorer") {
14      inst = window.frames[id];
15      doc = inst.window.document;
16      win = inst.window;
17    }
18    else {
19      inst = document.getElementById(id);
20      doc = inst.contentDocument;
21      win = inst.contentWindow;
22    }
23    
24    var head = doc.getElementsByTagName('head').item(0);
25    // Wait for it to load
26    if (!head || !doc.body || doc.title != "coupon_html") {
27      doc.open("text/html");
28      doc.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>');
29      doc.writeln("<head xmlns=\"http://www.w3.org/1999/xhtml\">");
30      doc.writeln("<title>coupon_html</title>");
31      doc.writeln('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">');
32      doc.writeln("<style>");
33      doc.writeln("@media print { #table_border { border: 1px #000000 dashed; } }");
34      doc.writeln("</style>");
35      doc.writeln("</head>");
36      doc.writeln("<body>");
37      doc.writeln(coupon.innerHTML);
38      doc.writeln("</body>");
39      doc.writeln("</html>");
40      doc.close();
41  
42      window.setTimeout(function(){setupContent(id);}, 100);
43      return;
44    }
45    win.focus();
46
47    if (win.attachEvent) {
48      if (!win.attachEvent("onafterprint", closeIFrame)) {
49        setTimeout(closeIFrame, 5000);
50      }
51      window.print();
52    }
53    else {
54      win.print();
55      setTimeout(closeIFrame, 5000);
56    }
57  }
58  
59  var coupon = document.getElementById(elemId);
60  var iframe = document.createElement("iframe");
61  iframe.setAttribute("id", iframeId);
62  iframe.setAttribute("border", "0");
63  iframe.setAttribute("frameBorder", "0");
64  iframe.setAttribute("marginWidth", "0");
65  iframe.setAttribute("marginHeight", "0");
66  iframe.setAttribute("leftMargin", "0");
67  iframe.setAttribute("topMargin", "0");
68  iframe.setAttribute("scrolling", "no");
69  iframe.setAttribute("width", 100);
70  iframe.setAttribute("height", 100);
71  document.body.appendChild(iframe);
72  iframe.setAttribute("src", wsp_htmlref_blank);
73  setupContent(iframeId, coupon);
74}

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.