+
diff --git a/chat.js b/chat.js
index 73e5e3a..ca2ba7e 100644
--- a/chat.js
+++ b/chat.js
@@ -38,7 +38,7 @@ let messageUpdate = window.setInterval(fetchMessages, 500);
async function fetchMessages() {
const response = await fetch('/api/message/messages.json');
const recievedMessages = await response.json();
- document.getElementById("innerchatbox").innerHTML = ""
+ document.getElementById("chatbox").innerHTML = ""
for (const message of recievedMessages) {
printText(message.user.bold().toString() + ": " + message.body.toString());
@@ -46,7 +46,7 @@ async function fetchMessages() {
if (recievedMessages.length != messageCount) {
- let scroll = document.getElementById("innerchatbox");
+ let scroll = document.getElementById("chatbox");
scroll.scrollTop = scroll.scrollHeight;
}
@@ -58,7 +58,7 @@ async function fetchMessages() {
function printText(text) {
let p = document.createElement("p");
- const div = document.getElementById("innerchatbox");
+ const div = document.getElementById("chatbox");
div.appendChild(p)
p.innerHTML = text
}
@@ -75,4 +75,7 @@ function loggedIn() {
}
}
-loggedIn()
\ No newline at end of file
+loggedIn()
+
+
+//REVIECE USERS PRONOUNS
\ No newline at end of file
diff --git a/index.css b/index.css
index 12a1b98..29147e3 100644
--- a/index.css
+++ b/index.css
@@ -1,6 +1,5 @@
html {
background: #F7A8B8;
- text-align: center;
font-family: "Lucida Console", "Courier New", monospace;
}
@@ -28,14 +27,14 @@ a {
margin-right: 0.3em;
margin-left: -40%;
margin-top: auto;
- margin-bottom: auto;
+ margin-bottom: 20%;
}
#chatbox {
flex: 1;
height: 53rem;
margin-left: 0.3em;
- margin-right: -50%;
+ margin-right: -30%;
border: none;
}