Skip to content

Instantly share code, notes, and snippets.

@MrCoffey
Last active February 3, 2016 22:46
Show Gist options
  • Save MrCoffey/b4cae5a00c502f8f55ba to your computer and use it in GitHub Desktop.
Save MrCoffey/b4cae5a00c502f8f55ba to your computer and use it in GitHub Desktop.
Codigo de credibanco para Generar FingerPrint
var InvocarDFP, initDFP;
InvocarDFP = function(e, t, n) {
var a, f, l, o, str, u;
console.log('https://h.online-metrix.net/fp/clear.png?org_id=' + n + '&session_id=' + t + e + '&m=1');
o = document.createElement('p');
str = 'background:url(\'https://h.online-metrix.net/fp/clear.png?org_id=\'' + n + '&session_id=' + t + e + '&m=1)';
o.styleSheets = str;
o.height = '0';
o.width = '0';
o.hidden = 'true';
document.body.appendChild(o);
u = document.createElement('img');
str = 'https://h.online-metrix.net/fp/clear.png?org_id=' + n + '&session_id=' + t + e + '&m=2';
u.src = str;
document.body.appendChild(u);
a = document.createElement('script');
a.src = 'https://h.online-metrix.net/fp/check.js?org_id=' + n + '&session_id=' + t + e;
a.type = 'text/javascript';
document.body.appendChild(a);
f = document.createElement('object');
f.data = 'https://h.online-metrix.net/fp/fp.swf?org_id=' + n + '&session_id=' + t + e;
f.width = '1';
f.height = '1';
f.id = 'thm_fp';
l = document.createElement('param');
l.name = 'movie';
l.value = 'https://h.online-metrix.net/fp/fp.swf?org_id=' + n + '&session_id=' + t + e;
f.appendChild(l);
document.body.appendChild(f);
};
initDFP = function(e) {
var i, o, s;
i = e;
s = 'credibanco';
o = 'k8vif92e';
InvocarDFP(i, s, o);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment