diff --git a/aprsd/cmds/webchat.py b/aprsd/cmds/webchat.py index 42d74c0..dd796d9 100644 --- a/aprsd/cmds/webchat.py +++ b/aprsd/cmds/webchat.py @@ -229,7 +229,7 @@ def index(): html_template = "index.html" # For development - # html_template = "mobile.html" + html_template = "index.html" LOG.debug(f"Template {html_template}") diff --git a/aprsd/web/chat/static/css/tabs.css b/aprsd/web/chat/static/css/tabs.css index 755c943..d7ad49c 100644 --- a/aprsd/web/chat/static/css/tabs.css +++ b/aprsd/web/chat/static/css/tabs.css @@ -37,5 +37,5 @@ border: 1px solid #ccc; height: 450px; overflow-y: scroll; - background-color: white; + background-color: #CCCCCC; } diff --git a/aprsd/web/chat/static/js/send-message.js b/aprsd/web/chat/static/js/send-message.js index dff2483..87d66e5 100644 --- a/aprsd/web/chat/static/js/send-message.js +++ b/aprsd/web/chat/static/js/send-message.js @@ -117,13 +117,14 @@ function init_messages() { msg = message_list[callsign][id]; info = time_ack_from_msg(msg); t = info['time']; + d = info['date']; ack_id = false; acked = false; if (msg['type'] == MSG_TYPE_TX) { ack_id = info['ack_id']; acked = msg['ack']; } - msg_html = create_message_html(t, msg['from'], msg['to'], msg['message'], ack_id, msg, acked); + msg_html = create_message_html(d, t, msg['from'], msg['to'], msg['message'], ack_id, msg, acked); append_message_html(callsign, msg_html, new_callsign); new_callsign = false; } @@ -204,7 +205,7 @@ function append_message_html(callsign, msg_html, new_callsign) { if (new_callsign) { // we have to add a new DIV console.log("new callsign, create msg_div_html "); - msg_div_html = '
'+from+' '; + msg_html += '
'; if (ack_id) { if (acked) { - msg_html += ''+message+'
'; + msg_html += ''; + msg_html += "