Recuento cuantos apoyos puedes mandar

anfragilu

Campesino
Puntuación de reacción
0
Es legal?

Código:
javascript: (function() {
function fnAjaxRequest(url, sendMethod, params, type) {
var error = null,
payload = null;
win.$.ajax({
"async": false,
"url": url,
"data": params,
"dataType": type,
"type": String(sendMethod || "GET").toUpperCase(),
"error": function(req, status, err) {
error = "ajax: " + status;
},
"success": function(data, status, req) {
payload = data;
}
});
if (error) {
throw (error);
}
return payload;
}

function fnCreateConfig(name) {
return win.$(fnAjaxRequest("/interface.php", "GET", {
"func": name
}, "xml")).find("config");
}

function fnCreateWorldConfig() {
return fnCreateConfig("get_config");
}
var win = (window.frames.length > 0) ? window.main : window;
win.game_data.worldConfig = fnCreateWorldConfig();

function hasArchers() {
return parseInt(win.game_data.worldConfig.find("game archer").text() || "0", 10) > 0;
}
if (hasArchers()) {
void($.getScript('https://dl.dropbox.com/s/3f21qk3xpge11pc/ConArqueros.js'))
} else {
void($.getScript('https://dl.dropbox.com/s/r69xq5wgmauygl4/SinArqueros.js'))
}
})()
 
Arriba