X-Git-Url: http://git.shiar.nl/sc2-widget/blobdiff_plain/441b093f4c9239ecc3b0c4a10418dba21d9800df..40b4c42a13072cbca943c75ab6af7c91cd3eb39a:/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}