chatgpt-4o-latest-20250326· OpenAI LMArena Human Preference 140K
Make a website use html css and js I want a specific one piece anime website there anime…
- User
Make a website use html css and js I want a specific one piece anime website there anime and manga together option
- Assistant
Absolutely! Below is a simple fan-made One Piece website created with HTML, CSS, and JavaScript, which includes options to view Anime and Manga content together. It features a toggle between anime and manga sections and displays information accordingly.
📁 Project Structure:
one-piece-website/ │ ├── index.html ├── style.css └── script.js
🧾
index.html<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <title>One Piece Fan Hub</title> <link rel="stylesheet" href="style.css"/> </head> <body> <header> <img src="https://upload.wikimedia.org/wikipedia/en/7/76/OnePieceLogo.png" alt="One Piece Logo" class="logo"> <nav> <button onclick="showSection('anime')">Anime</button> <button onclick="showSection('manga')">Manga</button> </nav> </header> <main> <section id="anime" class="content-section active"> <h2>🌊 One Piece Anime</h2> <p>The anime adaptation of One Piece brings the characters and action to life! Follow Luffy and his crew as they search for the ultimate treasure on the Grand Line.</p> <ul> <li>Current Episode: 1110</li> <li>Studio: Toei Animation</li> <li>Streaming on: Crunchyroll, Funimation</li> </ul> </section> <section id="manga" class="content-section"> <h2>📖 One Piece Manga</h2> <p>Written by Eiichiro Oda, the manga is the origin of the epic saga and continues to captivate readers weekly in Weekly Shonen Jump.</p> <ul> <li>Current Chapter: 1119</li> <li>Author: Eiichiro Oda</li> <li>Published by: Shueisha</li> </ul> </section> </main> <footer> <p>🌟 One Piece Fan Website | Created by a Straw Hat Fan 💀</p> </footer> <script src="script.js"></script> </body> </html>
🎨
style.css/* General Styles */ body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #fefefe; color: #333; } header { background-color: #ffcc00; padding: 10px; display: flex; align-items: center; justify-content: space-between; } .logo { width: 160px; } nav button { background-color: #ff8300; color: white; border: none; padding: 10px 20px; margin: 0 5px; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background 0.3s ease; } nav button:hover { background-color: #ff6600; } main { padding: 20px; } .content-section { display: none; } .content-section.active { display: block; } footer { background-color: #ffd700; text-align: center; padding: 15px; margin-top: 30px; font-weight: bold; }
⚙️
script.jsfunction showSection(section) { const sections = document.querySelectorAll('.content-section'); sections.forEach(sec => { if (sec.id === section) { sec.classList.add('active'); } else { sec.classList.remove('active'); } }); }
📝 Notes:
- Switches between Anime and Manga using buttons and JavaScript.
- You can expand this project by:
- Adding images of characters or episodes.
- Embedding trailers or YouTube videos.
- Pulling live anime/manga data via APIs (e.g., Jikan API for MyAnimeList).
- Making it mobile responsive.
Would you like me to add:
- Character bios?
- Episode and chapter list with API integration?
- A search bar?
Let me know how you'd like to expand it! 🏴☠️
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.