Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignitetch
GitHub Repository: ignitetch/advphishing
Path: blob/master/sites/Zomato-Phishing/index_files/api.js
739 views
1
(function() {
2
var m = 'Google Analytics Content Experiments are no longer supported: ' +
3
'(https://support.google.com/analytics/answer/9366791?hl=en). ';
4
window.cxApi = {};
5
6
function r(p, f) {
7
console && console.warn && console.warn(
8
m + 'Please remove use of cxApi.' + p + ' from this page.');
9
return f ? function() {} : undefined;
10
}
11
var a = [
12
'setChosenVariation', 'setDomainName', 'setCookiePath', 'setAllowHash',
13
'setCookieExpirationSeconds', 'chooseVariation', 'getChosenVariation',
14
'getWeight', 'isExperimentRunning', 'isCombinationDisabled',
15
'getParticipation', 'ORIGINAL_VARIATION', 'NO_CHOSEN_VARIATION',
16
'NOT_PARTICIPATING'
17
];
18
for (var i = 0; i < a.length; i++) {
19
try {
20
Object.defineProperty(window.cxApi, a[i], {get: r.bind(null, a[i], i < 7)});
21
} catch (e) {
22
}
23
}
24
25
console && console.warn && console.warn(
26
m + 'Please uninstall http://www.google-analytics.com/cx/api.js from ' +
27
'this page.');
28
})();
29
30