You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

64 lines
1.7 KiB

<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Parques Naturais</title>
<div class="header">
<a href="/">Home</a>
<a href="/natureza/extincoes/extincoes.html">Extin&ccedil&otildees</a>
<a class="active" href="natureza/parques/parques-naturais.html">Parques Naturais</a>
<a href="/natureza/formulario/formulario.html">Formul&aacuterio</a>
</div>
</head>
<body>
<table>
<thead>
<tr>
<th>Nome</th>
<th>&Aacuterea em km2</th>
</tr>
</thead>
<tbody>
<tr>
<th>Parque Nacional da Chapada Diamantina</th>
<td class="qtd">1520</td>
</tr>
<tr>
<th>Parque Nacional Montanhas de Tumucumaque</th>
<td class="qtd">38874</td>
</tr>
<tr>
<th>Parque Nacional da Chapada das Mesas</th>
<td class="qtd">1600</td>
</tr>
<tr>
<th>Parque Nacional dos Len&ccedil&oacuteis Maranhenses</th>
<td class="qtd">1566</td>
</tr>
<tr>
<th>Parque Nacional da Chapada dos Veadeiros</th>
<td class="qtd">2405</td>
</tr>
</tbody>
<tfoot>
<tr>
<td id="qtdTotal" colspan="2"></td>
</tr>
</tfoot>
</table>
</body>
<footer>
<div>
<strong>Copyright &copy 2023 Higor.</strong>
All rights reserved.
</div>
</footer>
<script>
var els = document.getElementsByClassName("qtd");
var total = 0;
[].forEach.call(els, function (el)
{
total += parseInt(el.innerHTML);
});
document.getElementById("qtdTotal").innerHTML = total;
</script>
</html>