PageSourceSearch

https://www.billoreilly.com/cdn-non-cached-init-js?saveDestination…=https%3A%2F%2Fwww.billoreilly.com%2Fapps

js billoreilly.com collected 2026-09-24 09:03:32 UTC 4,621 bytes, 165 lines download raw bytes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20//console.log("eventURL: https://www.billoreilly.com/apps");
21
22//console.log("facebook consent: " + hasConsent('facebook-pixel'));
23if (hasConsent('facebook-pixel')) {
24  //console.log("loading facebook event id: 3e2f33a4-f323-4db7-a583-22d86ae4abb6");
25  window.__fbPageViewEventId = '3e2f33a4-f323-4db7-a583-22d86ae4abb6';
26
27  //console.log("initializing facebook pixel");
28  !function(f,b,e,v,n,t,s)
29  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
30  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
31  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
32  n.queue=[];t=b.createElement(e);t.async=!0;
33  t.src=v;s=b.getElementsByTagName(e)[0];
34  s.parentNode.insertBefore(t,s)}(window,document,'script',
35  'https://connect.facebook.net/en_US/fbevents.js');
36  fbq('dataProcessingOptions', []);
37
38  fbq('init', '1500661974642379'); 
39  fbq('track', 'PageView', {eventID: '3e2f33a4-f323-4db7-a583-22d86ae4abb6'});
40
41  
42  
43}
44
45
46function trackAddToCart(elmt, opts) {
47  var parentForm = jQuery(elmt).parents('form'),
48  sku = parentForm.find('[data-fb-sku]').val(),
49  name = parentForm.find('[data-fb-name]').html(),
50  category = parentForm.data('fbCategoryMain'),
51  price = parentForm.find('[data-fb-price]').html(),
52  pid = parentForm.find('[name="pid"]').val();
53  if(parentForm.find('.storeColorLinksSelected').length) {
54    category = parentForm.find('.storeColorLinksSelected').data('fbCategory');
55  }
56
57  var options = jQuery.extend(true,
58      {
59        sku: sku,
60        category: category,
61        name: name,
62        price: price,
63        pid: pid
64      },
65      opts
66  );
67
68  options.sku = '[\'' + options.sku + '\']';
69  options.name = encodeURIComponent(options.name);
70  options.category = encodeURIComponent(options.category);
71  options.price = options.price.trim().substring(1);
72
73   nox.ajax.request({
74    url:'/global/ajax_responders/fb_server_side_event.jsp', 
75    data: {
76      eventName: 'AddToCart',
77      eventURL: 'https://www.billoreilly.com/apps',
78      productID: options.pid
79    },
80    complete: function(jqXHR) {
81      var trimmedResponse = jQuery.trim(jqXHR.responseText);
82      fbq('track', 'AddToCart', {
83        content_type: 'product',
84        content_ids: options.sku,
85        content_name: options.name,
86        content_category: options.category,
87        value: options.price,
88        currency: 'USD'
89      },
90      {
91        eventID: trimmedResponse
92      });
93    }
94  });
95}
96
97function gatherMemberData() {
98    jQuery.getJSON('/json/member/member.jsp', function(data, textStatus, jqXHR) {
99        if (data && data.resultArray && data.resultArray.length > 0) {
100            jQuery(document).trigger({
101                type: 'member_dataFetched',
102                memberData: data.resultArray[0]
103            });
104        }
105    });
106}   
107function ajaxReload(opts) {
108    var options = jQuery.extend(true, {
109        target: null,
110        url: '',
111        data: {},
112        method: "GET",
113        complete: jQuery.noop
114    },
115    opts);
116    if (options.target && options.target instanceof jQuery == false) {
117        options.target = jQuery(options.target);
118    }
119    var $ajaxData = options.target.data('ajax');
120    if ($ajaxData) {
121        options = jQuery.extend(true,
122            {},
123            options,
124            $ajaxData
125        );
126    }
127    if (options.url && options.target) {
128        jQuery.ajax({
129            method: options.method,
130            url: options.url,
131            data: options.data,
132            complete: function(jqXHR, textStatus) {
133                options.target.trigger({
134                    type: 'ajaxLoadComplete',
135                    ajaxOptions: options
136                });
137                options.target.html(jqXHR.responseText);
138                options.complete(jqXHR, textStatus);
139                options.target.trigger({
140                    type: 'ajax_sectionAutoLoaded',
141                    reloadContainer: options.target
142                });
143            }
144        });
145    }
146    
147};
148
149jQuery(document).on('DOMReady', function(evnt) {
150    gatherMemberData();
151});
152
153jQuery(document).ready(function() {
154    jQuery('[data-reload-on-event]').each(function(index, elmnt) {
155        var $elmnt = jQuery(elmnt),
156        reloadEvent = $elmnt.data('reloadOnEvent');
157        jQuery(document).on(reloadEvent + '.ajaxLoadOnEvent', function() {
158            ajaxReload({
159                target: $elmnt
160            });
161        });
162        
163    });
164    jQuery(document).trigger('DOMReady');
165});

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.