I have this:
<!DOCTYPE html>
<html>
<head>
<title>EJEM</title>
</head>
<body>
<div id="fordward">
<img id="equipologos" src="">
<h2 id="nameEquipo"></h2>
</div>
<br>
<div id="backward">
<img id="equipologos" src="">
<span id="nameEquipo"></span>
</div>
<!-- <button id="backward">ATRAS</button><button id="fordward">ADELANTE</button> -->
<!-- -->
<span id="teamIndex" hidden="true">0</span>
<script>
function changeTeam (team,logoURL){
document.getElementById('nameEquipo').innerText = team;
document.getElementById('equipologos').src = logoURL;
}
function initializer(){
var nameEquipo = ["Barcelona", "Real Madird"];
var equipoLogos =['https://ssl.gstatic.com/onebox/media/sports/logos/paYnEE8hcrP96neHRNofhQ_96x96.png','https://es.futbol24.com/upload/team/Spain/Real-Madrid.png']
var teamIndex = 0;
var text = "";
var i;
for (i = 0; i < nameEquipo.length; i++) {
text += nameEquipo[i] + "<br>";
}
document.getElementById('backward').innerHTML = text;
document.getElementById('fordward').innerHTML = text;
changeTeam(nameEquipo[0], equipoLogos[0]);
}
window.onload = initializer;
</script>
<span id="teamIndex" hidden="true">0</span>
</body>
</html>
That it would have to, first show the shield of the "barcelona" with a text below that says "Barcelona" and next to or below a shield of the "Real Madrid" and below "Real Madrid"