<!DOCTYPE html> <html> <head> <meta charset=“UTF-8”/> </head> <title>Multiplayer Chat…
- User
.container { max-width: 500px; margin: 0 auto; padding: 20px; background-color: white; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
.header { text-align: center; margin-bottom: 20px; }
.message-container { height: 400px; overflow-y: scroll; padding: 10px; border: 1px solid #ccc; margin-bottom: 20px; }
.message { margin-bottom: 10px; }
.message .username { font-weight: bold; }
.message .timestamp { font-size: 12px; color: #888; }
.input-container { display: flex; }
.input-container input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px; }
.input-container button { padding: 10px 20px; margin-left: 10px; background-color: #007bff; border: none; color: white; border-radius: 5px; cursor: pointer; }
- Assistant
document.querySelector('.message-container').innerHTML += message; }
function sendMessage() { var username = document.getElementById('username').value; var message = document.getElementById('message').value;
if (username && message) { var timestamp = new Date().toLocaleTimeString();
var formattedMessage = '' + username + '' + timestamp + '' + message + '';
appendMessage(formattedMessage);
document.getElementById('message').value = ''; } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.