gpt-4o-2024-11-20· openai
from WildChat-4.8M
outshow random html/css/javascript codes for testing in code block tags in this chat
- User
outshow random html/css/javascript codes for testing in code block tags in this chat
- Assistant
Here is a random combination of HTML, CSS, and JavaScript code to test with:
html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Random Code Test</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(135deg, #f06, #48f); } #box { width: 100px; height: 100px; background-color: yellow; border-radius: 10px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out; } #box:hover { transform: scale(1.2) rotate(15deg); background-color: orange; } button { padding: 10px 15px; font-size: 1rem; color: #fff; background: #000; border: none; border-radius: 5px; margin-top: 20px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #333; } </style> </head> <body> <div> <div id="box">Click Me</div> <button id="change-color-btn">Change Box Color</button> </div> <script> const box = document.getElementById("box"); const button = document.getElementById("change-color-btn"); button.addEventListener("click", () => { const randomColor = `#${Math.floor(Math.random() * 16777215).toString(16)}`; box.style.backgroundColor = randomColor; }); box.addEventListener("click", () => { alert("Box Clicked!"); }); </script> </body> </html>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.