document.getElementById("widget14").innerHTML=''+
'
';
function getUrlVars(){for(var t,e=[],u=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),l=0;l results.json())
.then((data) => {
setScopeParam("ip", data.ip);
})
.catch((error) => {
console.error(error);
});
}
function getUserClient() {
let userClient = navigator.userAgent;
setScopeParam("client_user_agent", userClient);
}
function getCookie(name) {
let matches = document.cookie.match(
new RegExp(
"(?:^|; )" +
name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
"=([^;]*)"
)
);
return matches ? decodeURIComponent(matches[1]) : undefined;
}
getIp();
getUserClient();
setFbParam("_fbp", "_fbp");
setFbParam("_fbc", "_fbc");
function setFbParam(param, name) {
let f = getCookie(param);
let n = 50;
loop(param, f, name, n);
}
function loop(param, f, name, n) {
setTimeout(function () {
f = getCookie(param);
if (f == undefined) {
n = --n;
if (n > 0) {
loop(param, f, name, n);
}
} else {
setScopeParam(name, f);
}
}, 200);
}
function setScopeParam(name, value) {
let g = arr;
g.push({name: name, value: value});
arr = g;
}
function send_fb_param() {
arr.forEach(function (item, i, arr) {
$("form").append('');
});
}
setTimeout(send_fb_param, 2000);