-
Notifications
You must be signed in to change notification settings - Fork 1
/
ProfileScreen.html
58 lines (47 loc) · 1.37 KB
/
ProfileScreen.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<title>My Web Page</title>
<style>
body,
input {
font-family: "Poppins", sans-serif;
}
body {
background-color: black;
color: white;
}
h1 {
color: white;
text-align: left;
}
p {
color: #666;
text-align: justify;
}
</style>
</head>
<body>
<script>
const urlParams = new URLSearchParams(window.location.search);
const teamNumber = urlParams.get('team');
fetch(`https://www.thebluealliance.com/api/v3/team/frc${teamNumber}`, {
headers: {
"X-TBA-Auth-Key": "f0mDwnb3DRDn8mJguFXBUTSc1tF2eA6ZZK7LT323pDrAvqlDuigGvPo6RLuYFoMr"
}
})
.then(response => response.json())
.then(data => {
const h1 = document.createElement('h1');
h1.textContent = data.nickname + ' (' + teamNumber + ')';
document.body.insertBefore(h1, document.body.childNodes[0]);
})
.catch(error => console.error('Error:', error));
</script>
<h2>Pits Scouting Information</h2>
<section id="photos">
<h2>Photos</h2>
<input type="file" id="photoUpload" accept="image/*">
</section>
</body>
</html>