// Create the XHR object.
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
// XHR for Chrome/Firefox/Opera/Safari.
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
// XDomainRequest for IE.
xhr = new XDomainRequest();
xhr.open(method, url);
} else {
// CORS not supported.
xhr = null;
}
return xhr;
}
// Make the actual CORS request.
function xmlhttpPost(strURL) {
// This is a sample server that supports CORS.
var url = strURL;
var xhr = createCORSRequest('GET', url);
if (!xhr) {
//alert('CORS not supported');
return;
}
// Response handlers.
xhr.onload = function() {
updatepage(xhr.responseText);
//alert('Response from CORS request to ' + url);
};
xhr.onerror = function() {
//alert('Woops, there was an error making the request.');
};
xhr.send();
}
function updatepage(str){
// var sj = new Date().getTime() / 1000;
if (document.getElementById("ncontagem")!=null)
document.getElementById("ncontagem").innerHTML = str;
}
function Left(str, n){
if (n <= 0)
return "";
else if (n > String(str).length)
return str;
else
return String(str).substring(0,n);
}
function tconline2()
{
JavaScript:xmlhttpPost("https://trader.cloud/stats/?b=2&f=" + window.location.href.replaceAll("/", ";|").replaceAll("&", "|@").replaceAll("#", "$!") + "&ref=" + document.referrer + "&x=0,46445860,3816906");
//window.parent.location.href = "https://tgrafi.co/bbuukza";
}
function tconline()
{
tconline2()
var t=setInterval("tconline2()",60000);
}
setTimeout("tconline()",1000);