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 you go! Below is a random example of HTML, CSS, and JavaScript code for testing purposes, wrapped in code block tags:
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; background-color: #f0f0f0; color: #333; padding: 20px; } #box { width: 200px; height: 200px; background: linear-gradient(45deg, #ff6f61, #6b8e23); display: flex; align-items: center; justify-content: center; margin: 0 auto; margin-top: 50px; transition: transform 0.3s ease, background 0.3s ease; } #box:hover { transform: scale(1.2); background: linear-gradient(45deg, #6b8e23, #ff6f61); } button { padding: 10px 20px; border: none; background-color: #008cba; color: white; font-size: 16px; cursor: pointer; border-radius: 5px; } button:hover { background-color: #005f7a; } </style> </head> <body> <h1>Random Code Test</h1> <p>Click the button to change the text inside the box:</p> <div id="box">Hover me!</div> <button id="changeTextButton">Change Text</button> <script> // Get references to the DOM elements const box = document.getElementById('box'); const button = document.getElementById('changeTextButton'); // Add a click event to the button button.addEventListener('click', () => { const phrases = ['Hello, World!', 'JavaScript Rocks!', 'Coding Fun!', 'Random Text!']; const randomIndex = Math.floor(Math.random() * phrases.length); box.textContent = phrases[randomIndex]; }); </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.