Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<title>W3.JS</title>
<script src="https://www.w3schools.com/lib/w3.js"></script>
<body>
<table id="id01">
<tr>
<th>Technologie</th>
<th>Side</th>
<th>Points</th>
</tr>
<tr w3-repeat="Langs">
<td>{{Lang}}</td>
<td>{{Side}}</td>
<td>{{Avg}}</td>
</tr>
<tr>
<td></td>
<td></td>
<td>{{total}}</td>
</tr>
</table>
<script>
w3.getHttpObject("/project/Robi/sl_US7b1JPPLR20201329/file.json", myFunction);
function myFunction(myObject) {
var i, total = 0;
var myArray = myObject.Langs;
for (i = 0; i < myArray.length; i++) {
myArray[i]["Avg"] = myArray[i]["Avg"].toFixed(2);
total += Number(myArray[i].Avg);
}
myObject.total = total.toFixed(2);
w3.displayObject("id01", myObject);
}
</script>
</body>
</html>
The most helpful W3.JS solutions
How to fill a dropdown using w3.js ?W3.JS Click to see more ... 1.1K 147