-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathNurtureBar_Sample_Code.js
More file actions
27 lines (27 loc) · 989 Bytes
/
NurtureBar_Sample_Code.js
File metadata and controls
27 lines (27 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
if( !window.AddressReportObj ){
window.AddressReportObj = { 'scriptInited': false, 'widgets': [] };
}
var randomID = 'ar_lc_script_' + new Date().getTime();
var thisScript = document.scripts[document.scripts.length - 1];
thisScript.id = randomID;
window.AddressReportObj.widgets.push({
'settings': {
'arwid': 'c4619846-82d5-4015-b627-a5e285cf8c8b',
'arwsc': '29312afb-9469-43e7-be96-706dbfeac772',
'type': 'default',
'address': '', // pass in target address
'iab': 'inline',
'formbaseurl': 'https://demopartner.addressreport.com',
'elemid': randomID
}
});
if( window.AddressReportObj.scriptInited != true ){
window.AddressReportObj.scriptInited = true;
var s = document.createElement('script');
s.src = 'https://cdn-addressreport.netdna-ssl.com/widget/ar-lc-widget.js?version=d3c68d91-e102-4d92-901a-17bd9d9db0da';
s.async = true;
var parent = thisScript.parentElement;
parent.insertBefore( s, thisScript.nextSibling );
}
</script>