var objAppUserData = null;
function getAppUserData(intAppId)
{
if (objAppUserData) return objAppUserData;
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{
objAppUserData = JSON.parse(this.responseText);
populateAppUserData();
}
}
xhttp.open(“GET”, “https://toucharcade.com/games/AppUserDataAjax.php/?appid=” + intAppId, true);
xhttp.send();
}
getAppUserData(1542610862);
function populateAppUserData()
{
var elemButtonWatch = document.getElementById(“elemAppUserData_watch”);
if (objAppUserData.userid)
{
if (objAppUserData.appuserwatch) elemButtonWatch.style.backgroundColor=”#ffff00″;
elemButtonWatch.style.display = ‘block’;
}
var elemYourRating = document.getElementById(“elemAppUserData_rating”);
if (objAppUserData.appuserrating) elemYourRating.innerHTML = objAppUserData.appuserratingstars;
}
function appUserWatch(intAppId, boolWatch)
{
var strData=”appid=” + intAppId + ‘&watch=” + boolWatch + “&token=’ + objAppUserData.appusercsrftoken;
var xhr = new XMLHttpRequest();
xhr.open (‘POST’, ‘https://toucharcade.com/games/AppWatchAjax.php’, true);
xhr.setRequestHeader(‘Content-type’, ‘application/x-www-form-urlencoded’);
xhr.send (strData);
var elemAppUserWatch = document.getElementById(“elemAppUserData_watch”);
var strColor = (boolWatch) ? ‘#ffff00’ : null;
elemAppUserWatch.style.backgroundColor = strColor;
}
Throwdown Boxing 2
Details
The most gifted and powerful boxers on earth square-off in the world famous Throwdown Boxing Association competition. Choose your Kid Titan and enter the competition to prove you are the best of the best and the true champion!!!