Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanPhilip authored Sep 28, 2023
1 parent 1bd67d3 commit bb316f5
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Assignment 4</title>
<img src="assignment3logo.png" alt="a garbage logo">
<img src="assignment3logo.png" alt="a garbage logo" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;">
<meta charset="utf-8">
<script type="module">
// Import the functions you need from the SDKs you need
Expand Down Expand Up @@ -32,28 +32,6 @@

const userId = "5cBlMxq5A0OZ2uVVrnZf5tehgH02";
const userRef = database.ref(userId);

userRef.on("value", (snapshot) => {
const userInfo = snapshot.val();
const userDisplay = document.getElementById("user-info-5cBlMxq5A0OZ2uVVrnZf5tehgH02");
userDisplay.innerHTML = `
<p>Name: ${userInfo.name}</p>
<img src="${userInfo.image}" alt="User Image">
`;
}
}

const userId2 = "pmeHTngguhPGnNn9NcsVZL59U902";
const userRef2 = database.ref(userId2);

userRef2.on("value", (snapshot) => {
const userInfo = snapshot.val();
const userDisplay = document.getElementById("user-info-pmeHTngguhPGnNn9NcsVZL59U902");
userDisplay.innerHTML = `
<p>Name: ${userInfo.name}</p>
<img src="${userInfo.image}" alt="User Image">
`;
}
</script>
</head>
<body>
Expand Down

0 comments on commit bb316f5

Please sign in to comment.