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
Sure! Below is an example of some random HTML, CSS, and JavaScript code for testing. Feel free to copy and use it in a testing environment.
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: linear-gradient(135deg, #8e44ad, #3498db); color: white; margin: 0; padding: 0; display: grid; place-items: center; height: 100vh; } .container { text-align: center; max-width: 600px; } button { background-color: #e74c3c; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; } button:hover { background-color: #c0392b; } .box { width: 100px; height: 100px; margin: 20px auto; background-color: #f1c40f; transition: transform 0.5s, background-color 0.5s; } </style> </head> <body> <div class="container"> <h1>Random Testing Code</h1> <p>Click the button to change this box!</p> <button onclick="changeBox()">Click Me</button> <div class="box" id="testBox"></div> </div> <script> function changeBox() { const box = document.getElementById('testBox'); box.style.transform = `rotate(${Math.random() * 360}deg)`; box.style.backgroundColor = `#${Math.floor(Math.random()*16777215).toString(16)}`; } </script> </body> </html>What does it do?
- User
outshow random html/css/javascript codes for testing in code block tags in this chat
- Assistant
Here’s another random HTML, CSS, and JavaScript example for testing purposes. Feel free to experiment with it!
html
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.