Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>ListenBrainz Playlist Tool</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- }
- .listen-item {
- margin: 10px 0;
- }
- .listen-item input {
- margin-right: 10px;
- }
- button {
- margin-top: 20px;
- }
- #listens-container {
- margin-top: 20px;
- }
- pre {
- background-color: #f0f0f0;
- padding: 10px;
- border: 1px solid #ccc;
- overflow: auto;
- }
- </style>
- </head>
- <body>
- <h1>Select Listens to Add to Playlist</h1>
- <div id="login-form">
- <label for="username">Username:</label>
- <input type="text" id="username" placeholder="Enter ListenBrainz username"><br><br>
- <label for="api-token">API Token:</label>
- <input type="text" id="api-token" value="" readonly><br><br>
- <button onclick="fetchListens()">Fetch Listens</button>
- </div>
- <div id="listens-container">
- <!-- Listens and debug information will be populated here -->
- </div>
- <button id="add-button" style="display:none;" onclick="addToPlaylist()">Add to Playlist</button>
- <script src="app.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment