-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/v1.7' into feature/AG-169
- Loading branch information
Showing
20 changed files
with
769 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=1.6.51 | ||
version=1.6.55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
(function(source, args) { | ||
function Pardot(source) { | ||
window.piVersion = "1.0.2"; | ||
window.piScriptNum = 0; | ||
window.piScriptObj = []; | ||
window.checkNamespace = noopFunc; | ||
window.getPardotUrl = noopStr; | ||
window.piGetParameter = noopNull; | ||
window.piSetCookie = noopFunc; | ||
window.piGetCookie = noopStr; | ||
function piTracker() { | ||
window.pi = { | ||
tracker: { | ||
visitor_id: "", | ||
visitor_id_sign: "", | ||
pi_opt_in: "", | ||
campaign_id: "" | ||
} | ||
}; | ||
window.piScriptNum += 1; | ||
} | ||
window.piResponse = noopFunc; | ||
window.piTracker = piTracker; | ||
piTracker(); | ||
hit(source); | ||
} | ||
function hit(source, message) { | ||
if (source.verbose !== true) { | ||
return; | ||
} | ||
try { | ||
var log = console.log.bind(console); | ||
var trace = console.trace.bind(console); | ||
var prefix = source.ruleText || ""; | ||
if (source.domainName) { | ||
var AG_SCRIPTLET_MARKER = "#%#//"; | ||
var UBO_SCRIPTLET_MARKER = "##+js"; | ||
var ruleStartIndex; | ||
if (source.ruleText.indexOf(AG_SCRIPTLET_MARKER) > -1) { | ||
ruleStartIndex = source.ruleText.indexOf(AG_SCRIPTLET_MARKER); | ||
} else if (source.ruleText.indexOf(UBO_SCRIPTLET_MARKER) > -1) { | ||
ruleStartIndex = source.ruleText.indexOf(UBO_SCRIPTLET_MARKER); | ||
} | ||
var rulePart = source.ruleText.slice(ruleStartIndex); | ||
prefix = "".concat(source.domainName).concat(rulePart); | ||
} | ||
var LOG_MARKER = "log: "; | ||
if (message) { | ||
if (message.indexOf(LOG_MARKER) === -1) { | ||
log("".concat(prefix, " message:\n").concat(message)); | ||
} else { | ||
log(message.slice(LOG_MARKER.length)); | ||
} | ||
} | ||
log("".concat(prefix, " trace start")); | ||
if (trace) { | ||
trace(); | ||
} | ||
log("".concat(prefix, " trace end")); | ||
} catch (e) {} | ||
if (typeof window.__debug === "function") { | ||
window.__debug(source); | ||
} | ||
} | ||
function noopFunc() {} | ||
function noopStr() { | ||
return ""; | ||
} | ||
function noopNull() { | ||
return null; | ||
} | ||
const updatedArgs = args ? [].concat(source).concat(args) : [ source ]; | ||
try { | ||
Pardot.apply(this, updatedArgs); | ||
} catch (e) { | ||
console.log(e); | ||
} | ||
})({ | ||
name: "pardot-1.0", | ||
args: [] | ||
}, []); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.