diff --git a/_tabs/about.md b/_tabs/about.md index 65d7ab3..eade991 100644 --- a/_tabs/about.md +++ b/_tabs/about.md @@ -11,7 +11,6 @@ function getOPR() { axios.get("https://api.ftcscout.org/rest/v1/teams/15031/quick-stats?season=2023®ion=All") .then(response => { var opr = Math.round((response.data["tot"]["value"])*100)/100; - document.getElementById("opr").innerHTML = opr; var rank = Math.min(response.data["auto"]["rank"], response.data["dc"]["rank"], response.data["eg"]["rank"]); var value = ""; var best = ""; @@ -25,9 +24,12 @@ function getOPR() { best = "endgame"; value = response.data["eg"]["value"]; } + document.getElementById("opr").innerHTML = opr; document.getElementById("value").innerHTML = Math.round(value*100)/100; document.getElementById("best").innerHTML = best; })}; + +