X-Git-Url: http://git.shiar.nl/sc2-widget/blobdiff_plain/34f771a5a758ffd2b84ce807af67775e182d7624..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}