Explorar o código

colors changed for messages to appear more readable

miskson %!s(int64=3) %!d(string=hai) anos
pai
achega
4cbed453d3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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>
         `)