X-Git-Url: http://git.shiar.net/sc2-widget/blobdiff_plain/255c21f32654ecc9a3028d59b2e5473f54bf594b..04bb4e875b78bc9e5e04cb31dd15d916fe067347:/widget.html diff --git a/widget.html b/widget.html index c604c59..387d3db 100644 --- a/widget.html +++ b/widget.html @@ -15,11 +15,12 @@ fetch('/schtarr/inno.json') .then(res => res.json()) .then(clan => { + let tiernum = (rank) => rank <= 8 ? 1 : rank <= 25 ? 2 : rank <= 50 ? 3 : 4; document.getElementById('clan').outerHTML = `

${clan.tag}