DeletedUser43675
Guest
- Explicación de para qué sirve Muestra el valor de las granjas de cada pueblo en la pestaña de investigacion.
- Como Hacerlo funcionar? Ejecutarlo primero en la pestaña Produccion y luego en la de Investigacion
- Nombre de la entrada: Granjas
- URL de la imagen: ------
- URL de destino:
Código:javascript:var arraygranja=[],currentURL=document.URL;if(currentURL.includes("mode=tech")){var aux=sessionStorage.getItem("granja"),arraygranja2=aux.split(",");document.getElementsByTagName("th")[10].innerHTML="Granja",$("#techs_table").children().children().each(function(e){$(this).children("td:first-child").each(function(){$(this).next().next().next().next().next().next().next().next().next().next().html(arraygranja2[e])})})}else $("#production_table").children().children().each(function(){var e=$(this).children().next().next().next().next().next().next().html();arraygranja.push(e)}),"undefined"!=typeof Storage?sessionStorage.setItem("granja",arraygranja):alert("tu navegador no soporta Web Storage");
PD: es un script que me ha pedido un miembro de mi tribu para cambiar las banderas dependiendo de la cantidad de granja que tengan ^^