X-Git-Url: http://git.shiar.nl/sc2-widget/blobdiff_plain/72252bd44e4a392d7c66372c50a311d0241994d5..40b4c42a13072cbca943c75ab6af7c91cd3eb39a:/widget.html diff --git a/widget.html b/widget.html index a9d615f..387d3db 100644 --- a/widget.html +++ b/widget.html @@ -15,11 +15,13 @@ 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}