PageSourceSearch

https://activeprospect.com/wp-content/themes/activeprospect/assets/js/ap-header-demo-buttons.js?ver=5.2.45

js activeprospect.com collected 2026-10-09 23:07:51 UTC 15,816 bytes, 402 lines download raw bytes

1jQuery(function($){
2    var getUrlParameter = function getUrlParameter(sParam) {
3        var sPageURL = window.location.search.substring(1),
4            sURLVariables = sPageURL.split('&'),
5            sParameterName,
6            i;
7
8        for (i = 0; i < sURLVariables.length; i++) {
9            sParameterName = sURLVariables[i].split('=');
10
11            if (sParameterName[0] === sParam) {
12                return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
13            }
14        }
15        return false;
16    };
17
18    const   headerDemoButton = $('#header-demo-cta'),
19            dynamicHead = document.querySelector("#dynamic-h1"),
20            dynamicHeader = document.querySelector("#dynamic-h1 span");
21
22    let currentURL          = window.location.pathname,
23        urlParts            = currentURL.split('/'),
24        h1Param             = getUrlParameter('h1');
25
26    if (dynamicHead){
27        dynamicHead.classList.add("fade-in");     
28    }
29
30    //Check link and add query parameters based on URL
31    if ( urlParts[1].includes('leadconduit') ) {
32        headerDemoButton.attr( 'href', '/leadconduit/get-demo/' );
33    } else if ( urlParts[1].includes('trustedform') ) {
34        headerDemoButton.attr( 'href', '/trustedform/get-demo/' );
35    }
36
37    if ( currentURL === '/trustedform/insights/bot-detection/' ) {
38        //console.log( currentURL);
39        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=bot' );
40    } 
41    
42    if ( currentURL === '/leadconduit/integrations/convoso/' ) {
43        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=convoso' );
44    }
45
46    if ( currentURL === '/cmo-marketers/' ) {
47        headerDemoButton.attr( 'href', '/get-demo/?h1=cmo' );
48    }
49
50    if ( currentURL === '/compliance-legal-officers/' ) {
51        headerDemoButton.attr( 'href', '/get-demo/?h1=clo' );
52    }
53
54    if ( currentURL === '/data-intelligence-analysts/' ) {
55        headerDemoButton.attr( 'href', '/get-demo/?h1=dia' );
56    }
57
58    if ( currentURL === '/technology-engineering/' ) {
59        headerDemoButton.attr( 'href', '/get-demo/?h1=te' );
60    }
61 
62    if ( currentURL === '/industry/insurance/' ) {
63        headerDemoButton.attr( 'href', '/get-demo/?h1=insurance' );
64    }
65
66    if ( currentURL === '/industry/home-services/' ) {
67        headerDemoButton.attr( 'href', '/get-demo/?h1=home' );
68    }
69
70    if ( currentURL === '/industry/education/' ) {
71        headerDemoButton.attr( 'href', '/get-demo/?h1=edu' );
72    }
73
74    if ( currentURL === '/industry/financial-services/' ) {
75        headerDemoButton.attr( 'href', '/get-demo/?h1=fs' );
76    }
77
78    if ( currentURL === '/industry/consumer-packaged-goods/' ) {
79        headerDemoButton.attr( 'href', '/get-demo/?h1=cpg' );
80    }
81    
82    if ( currentURL === '/industry/legal/' ) {
83        headerDemoButton.attr( 'href', '/get-demo/?h1=legal' );
84    }
85
86    if ( currentURL === '/industry/technology-saas/' ) {
87        headerDemoButton.attr( 'href', '/get-demo/?h1=tech' );
88    }
89
90    if ( currentURL === '/industry/media/' ) {
91        headerDemoButton.attr( 'href', '/get-demo/?h1=media' );
92    }
93
94    if ( currentURL === '/industry/marketing-agency/' ) {
95        headerDemoButton.attr( 'href', '/get-demo/?h1=marketing' );
96    }
97
98    if ( currentURL === '/pricing/' ) {
99        headerDemoButton.attr( 'href', '/get-demo/?h1=pricing' );
100    }
101
102    if ( currentURL === '/pricing/' ) {
103        headerDemoButton.attr( 'href', '/get-demo/?h1=pricing' );
104    }
105
106    if ( currentURL === '/trustedform/certify/' ) {
107        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=certify' );
108    }
109
110    if ( currentURL === '/trustedform/verify/' ) {
111        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=verify' );
112    }
113
114    if ( currentURL === '/trustedform/retain/' ) {
115        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=retain' );
116    }
117
118    if ( currentURL === '/trustedform/insights/' ) {
119        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=insights' );
120    }
121
122    if ( currentURL === '/trustedform/lead-buying/' ) {
123        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=lead' );
124    }
125
126    if ( currentURL === '/trustedform/lead-generation/' ) {
127        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=gen' );
128    }
129
130    if ( currentURL === '/trustedform/' ) {
131        headerDemoButton.attr( 'href', '/trustedform/get-demo/?h1=trustedform' );
132    }
133
134    if ( currentURL === '/leadconduit/' ) {
135        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=leadconduit' );
136    }
137
138    if ( currentURL === '/leadconduit/add-on-services/' ) {
139        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=add' );
140    }
141
142    if ( currentURL === '/leadconduit/integrations/' ) {
143        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=integrations' );
144    }
145
146    if ( currentURL === '/suppressionlist/' ) {
147        headerDemoButton.attr( 'href', '/get-demo/?h1=list' );
148    }
149
150    if ( currentURL === '/whitepaper/' ) {
151        headerDemoButton.attr( 'href', '/get-demo/?h1=whitepaper' );
152    }
153
154    if ( currentURL === '/case-studies/' ) {
155        headerDemoButton.attr( 'href', '/get-demo/?h1=casestudy' );
156    }
157
158    if ( currentURL === '/glossary/' ) {
159        headerDemoButton.attr( 'href', '/get-demo/?h1=glossary' );
160    }
161
162    if ( currentURL === '/insidecbm-archive/' ) {
163        headerDemoButton.attr( 'href', '/get-demo/?h1=insidecbm' );
164    }
165
166    if ( currentURL === '/leadconduit/integrations/salesforce/' ) {
167        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=salesforce' );
168    }
169
170    if ( currentURL === '/leadconduit/integrations/modernize/' ) {
171        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=modernize' );
172    }
173
174    if ( currentURL === '/leadconduit/integrations/salesforce/' ) {
175        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=salesforce' );
176    }
177
178    if ( currentURL === '/leadconduit/integrations/leadsbridge/' ) {
179        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=leadsbridge' );
180    }
181
182    if ( currentURL === '/leadconduit/integrations/hubspot/' ) {
183        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=hubspot' );
184    }
185
186    if ( currentURL === '/leadconduit/integrations/facebook/' ) {
187        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=facebook' );
188    }
189
190    if ( currentURL === '/leadconduit/integrations/faraday/score/' ) {
191        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=score' );
192    }
193
194    if ( currentURL === '/leadconduit/integrations/ccc/dnc_scrub/' ) {
195        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=dnc' );
196    }
197
198    if ( currentURL === '/leadconduit/integrations/angi/' ) {
199        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=angi' );
200    }
201
202    if ( currentURL === '/leadconduit/add-on-services/anura/fraud_check/' ) {
203        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=fraud' );
204    }
205
206   if ( currentURL === '/leadconduit/add-on-services/blacklist/lit_fw_phone/' ) {
207        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=lit' );
208    }
209
210    if ( currentURL === '/leadconduit/add-on-services/zipcodes/validate/' ) {
211        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=validate' );
212    }
213
214    if ( currentURL === '/leadconduit/add-on-services/telesign/phone/' ) {
215        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=phone' );
216    }
217
218    if ( currentURL === '/add-on-services/experian/demographic_lookup/' ) {
219        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=demographic' );
220    }
221
222    if ( currentURL === '/leadconduit/add-on-services/briteverify/address/' ) {
223        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=address' );
224    }
225
226    if ( currentURL === '/leadconduit/add-on-services/trustedform/trustedform/' ) {
227        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=trustedform2' );
228    }
229
230    if ( currentURL === '/leadconduit/add-on-services/webbula/email/' ) {
231        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=email' );
232    }
233
234    if ( currentURL === '/leadconduit/add-on-services/trestle/caller_id/' ) {
235        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=caller' );
236    }
237
238    if ( currentURL === '/leadconduit/add-on-services/fenris/property_details/' ) {
239        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=property' );
240    }
241
242    if ( currentURL === '/leadconduit/add-on-services/fenris/customer_360/' ) {
243        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=customer' );
244    }
245
246    if ( currentURL === '/leadconduit/add-on-services/experian/demographic_lookup/' ) {
247        headerDemoButton.attr( 'href', '/leadconduit/get-demo/?h1=demol' );
248    }
249
250    //Update h1 text based on URL parameter
251    if ( h1Param === 'bot' ) {
252        dynamicHeader.innerText = 'See how Bot Detection works today';
253    }
254    if ( h1Param === 'convoso' ) {
255        dynamicHeader.innerText = 'Experience the combined power of LeadConduit & Convoso';
256    }
257    if ( h1Param === 'cmo' ) {
258        dynamicHeader.innerText = 'Marketers love ActiveProspect. See what it can do for you.';
259    }
260    if ( h1Param === 'clo' ) {
261        dynamicHeader.innerText = 'Document consent and reduce compliance risk at scale';
262    }
263    if ( h1Param === 'dia' ) {
264        dynamicHeader.innerText = 'Make lead quality accurate, measurable, and defensible';
265    }
266    if ( h1Param === 'te' ) {
267        dynamicHeader.innerText = 'Add real-time lead checks and bolster efficiency';
268    }
269    if ( h1Param === 'insurance' ) {
270        dynamicHeader.innerText = 'Only send your agents the highest-quality leads';
271    }
272    if ( h1Param === 'home' ) {
273        dynamicHeader.innerText = 'Turn high-intent homeowner leads into booked jobs';
274    }
275    if ( h1Param === 'edu' ) {
276        dynamicHeader.innerText = 'Capture high-intent student leads at scale';
277    }   
278    if ( h1Param === 'fs' ) {
279        dynamicHeader.innerText = 'Scalable lead management built to thrive under financial regulations';
280    }
281    if ( h1Param === 'cpg' ) {
282        dynamicHeader.innerText = 'Start capturing compliant consumer leads across every channel';
283    }   
284    if ( h1Param === 'legal' ) {
285        dynamicHeader.innerText = 'Document consent and reduce legal r
285isk on every lead';
286    }
287    if ( h1Param === 'tech' ) {
288        dynamicHeader.innerText = 'Bolster your pipeline with quality, verified, compliant leads';
289    }
290    if ( h1Param === 'media' ) {
291        dynamicHeader.innerText = 'Boost subscriptions and conversion rate across all channels';
292    }
293    if ( h1Param === 'marketing' ) {
294        dynamicHeader.innerText = 'Only focus on clean, compliant leads to grow your business';
295    }   
296    if ( h1Param === 'pricing' ) {
297        dynamicHeader.innerText = 'Understanding the value behind ActiveProspect';
298    }
299    if ( h1Param === 'certify' ) {
300        dynamicHeader.innerText = 'Document consent for every lead you generate to protect your brand';
301    }   
302    if ( h1Param === 'verify' ) {
303        dynamicHeader.innerText = 'See how TrustedForm Verify strengthens your TCPA compliance';
304    }       
305    if ( h1Param === 'retain' ) {
306        dynamicHeader.innerText = 'Document and store consent for YEARS with TrustedForm Retain';
307    }
308    if ( h1Param === 'insights' ) {
309        dynamicHeader.innerText = 'See which leads are worth buying in real time';
310    }
311    if ( h1Param === 'lead' ) {
312        dynamicHeader.innerText = 'Buy leads with confidence backed by independent certification';
313    }
314    if ( h1Param === 'gen' ) {
315        dynamicHeader.innerText = 'Document consent for every lead you generate';
316    }
317    if ( h1Param === 'trustedform' ) {
318        dynamicHeader.innerText = 'Get the highest-standard for independent proof of consent';
319    }
320    if ( h1Param === 'leadconduit' ) {
321        dynamicHeader.innerText = 'Watch LeadConduit optimize, filter, and deliver leads instantly';
322    }
323    if ( h1Param === 'add' ) {
324        dynamicHeader.innerText = 'Build smarter lead flows with hundreds of plug-and-play add-ons';
325    }
326    if ( h1Param === 'integrations' ) {
327        dynamicHeader.innerText = 'Connect every lead source and destination seamlessly';
328    }
329    if ( h1Param === 'list' ) {
330        dynamicHeader.innerText = 'Check incoming leads against any list to make real-time decisions';
331    }
332    if ( h1Param === 'whitepaper' ) {
333        dynamicHeader.innerText = 'Let\'s schedule a personalized tour today!';
334    }
335    if ( h1Param === 'casestudy' ) {
336        dynamicHeader.innerText = 'Our product in action - the only thing louder than our customers\' words';
337    }
338    if ( h1Param === 'glossary' || h1Param === 'insidecbm') {
339        dynamicHeader.innerText = 'Get the power of consent-based marketing';
340    }
341    if ( h1Param === 'salesforce' ) {
342        dynamicHeader.innerText = 'Sync LeadConduit & Salesforce for the ultimate consent-based marketing strategy';
343    }
344    if ( h1Param === 'modernize' ) {
345        dynamicHeader.innerText = 'Connect directly with high-intent homeowners through LeadConduit & Modernize';
346    }
347    if ( h1Param === 'leadsbridge' ) {
348        dynamicHeader.innerText = 'Move ad lead data across platforms with LeadConduit & LeadsBridge';
349    }
350    if ( h1Param === 'hubspot' ) {
351        dynamicHeader.innerText = 'Sync LeadConduit & HubSpot for the ultimate consent-based marketing strategy';
352    }
353    if ( h1Param === 'facebook' ) {
354        dynamicHeader.innerText = 'Access advanced capabilities for Facebook Lead Ads with LeadConduit';
355    }
356    if ( h1Param === 'score' ) {
357        dynamicHeader.innerText = 'Score and rank every lead with LeadConduit & Faraday';
358    }
359    if ( h1Param === 'dnc' ) {
360        dynamicHeader.innerText = 'Scrub against known litigators with LeadConduit & Contact Center Compliance';
361    }
362    if ( h1Param === 'angi' ) {
363        dynamicHeader.innerText = 'Unlock scalable growth with LeadConduit & Angi';
364    }
365    if ( h1Param === 'fraud' ) {
366        dynamicHeader.innerText = 'Keep fraud out of your CRM with LeadConduit & Anura';
367    }
368    if ( h1Param === 'lit' ) {  
369        dynamicHeader.innerText = 'Stop litigators in their tracks with LeadConduit & Blacklist Alliance';
370    }
371    if ( h1Param === 'validate' ) {  
372        dynamicHeader.innerText = 'Only contact customers near you with LeadConduit & Zip-Codes.com';
373    }
374    if ( h1Param === 'phone' ) {
375        dynamicHeader.innerText = 'Verify every phone number with LeadConduit & Telesign';
376    }
377    if ( h1Param === 'demographic' ) {
378        dynamicHeader.innerText = 'Double-check address details with LeadConduit & BriteVerify Address Verification';
379    }
380    if ( h1Param === 'address' ) {
381        dynamicHeader.innerText = 'Double-check address details with LeadConduit & BriteVerify Address Verification';
382    }
383    if ( h1Param === 'trustedform2' ) {
384        dynamicHeader.innerText = 'Sync LeadConduit & TrustedForm for the ultimate consent-based marketing strategy';
385    }
386    if ( h1Param === 'email' ) {
387        dynamicHeader.innerText = 'Identify threats and keep your CRM clean with LeadConduit & Webbula';
388    }
389    if ( h1Param  === 'caller' ) {
390        dynamicHeader.innerText = 'Verify every phone number with LeadConduit & Trestle Caller ID';
391    }
392    if ( h1Param === 'property' ) {
393        dynamicHeader.innerText = 'Filter for key property insights with LeadConduit & Fenris Property Details';
394    }
395    if ( h1Param === 'customer' ) {
396        dynamicHeader.innerText = 'Expedite the application process with LeadConduit & Fenris Digital Customer 360';
397    }
398
399    if ( h1Param === 'demol' ) {
400        dynamicHeader.innerText = 'Filter leads with enhanced demographic data with LeadConduit & Experi
400an';
401    }
402});

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.