Skip to content

Instantly share code, notes, and snippets.

View raikasdev's full-sized avatar
🛠️
Doing cool stuff

Roni Äikäs raikasdev

🛠️
Doing cool stuff
View GitHub Profile
@raikasdev
raikasdev / seppo_io.js
Created May 17, 2021 16:08
seppo.io team point calculator
// 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();