gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
Make a remake thingy, it should be the "test page" in the title and it has a load of…
- User
Make a remake thingy, it should be the "test page" in the title and it has a load of divs with buttons that can remove them.
- Assistant
Here's a possible remake of the "Test Page" with a bunch of divs and buttons that allow you to remove them:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Test Page</title> <style> .container { display: flex; flex-wrap: wrap; margin: 20px 0; } .box { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; margin: 10px; border: 1px solid black; font-size: 32px; cursor: pointer; } </style> </head> <body> <h1>Test Page</h1> <p>Click on a box to remove it:</p> <div class="container"> <div class="box">1</div> <div class="box">2</div> <div class="box">3</div> <div class="box">4</div> <div class="box">5</div> <div class="box">6</div> <div class="box">7</div> <div class="box">8</div> <div class="box">9</div> <div class="box">10</div> </div> <script> const boxes = document.querySelectorAll('.box'); const container = document.querySelector('.container'); boxes.forEach(box => { box.addEventListener('click', () => { container.removeChild(box); }); }); </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.