This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Made to check team (class) name from player name (<team> <name>) | |
// calculates all points together of teams | |
// Made for event on 19.5.2021. | |
let students = () => $(".single-team-area").map(function() { | |
let name = $(this).find('.team-name')[0].innerHTML; | |
let points = parseInt($(this).find('.team-point')[0].children[0].innerHTML); | |
return { name, points } | |
}).get(); |