Browse Source

colors changed for messages to appear more readable

miskson 3 years ago
parent
commit
4cbed453d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hw12-promiseChat/script.js

+ 2 - 2
hw12-promiseChat/script.js

@@ -24,8 +24,8 @@ async function drawHistory(messageId=0) {
     for(let message of messages.data) {
         let msgDiv = document.createElement('div')
         msgDiv.insertAdjacentHTML('beforeend', `
-            <small style="color: slateblue;">${new Date(message.timestamp).toLocaleString()}</small>
-            <div style="word-wrap: break-word; color: steelblue;">
+            <small style="color: gold;">${new Date(message.timestamp).toLocaleString()}</small>
+            <div style="word-wrap: break-word; color: skyblue;">
                 <h4 style="color: mediumseagreen; font-style: italic; display: inline;">${message.nick} :</h4> ${message.message}
             </div>
         `)