Skip to content

Commit

Permalink
finish my apis stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Iris-TheRainbow committed Jun 20, 2024
1 parent 52c62f0 commit 33d1508
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions _tabs/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ order: 4
function getOPR() {
axios.get("https://api.ftcscout.org/rest/v1/teams/15031/quick-stats?season=2023&region=All")
.then(response => {
console.log(response.data)
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"]);
Expand All @@ -25,14 +26,26 @@ function getOPR() {
}
document.getElementById("best").innerHTML = best;
})};
function getNextSEN(){
axios.get("https://vlr.orlandomm.net/api/v1/teams/2")
.then(response => {
var team0 = response.data.data.upcoming["0"]["teams"]["0"]["tag"];
var team1 = response.data.data.upcoming["0"]["teams"]["1"]["tag"];
document.getElementById("team0").innerHTML = team0
document.getElementById("team1").innerHTML = team1
})
}
</script>

</head>

<body onload = "getOPR()">
<body onload = "getOPR(); getNextSEN()">
<p>Hello!</p>

<p>I'm Iris! I'm trans, 16, and enjoy programing and playing games. Im a member of First Tech Challange 15031, BoltBusterZ.</p>

<p>My particular interests include combat robotics, Valorant Esports, and finding new ways to procrastinate doing my homework<p>

<p> BoltBusterZ OPR is currently <b><span id = "opr"></span></b>. Our best OPR is <b><span id = "best"></span></b> with <b><span id = "value"></span></b>.</p>
<p> BoltBusterZ OPR is currently <b><span id = "opr"></span></b>. Our best OPR is <b><span id = "best"></span></b> with <b><span id = "value"></span></b>.</p>

<p> The next Sentinels match is <b><span id = "team0"></span> vs <span id = "team1"></span></b></p>

0 comments on commit 33d1508

Please sign in to comment.