Guest User

Untitled

a guest
Oct 21st, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.26 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.   <meta charset="UTF-8">
  5.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.   <title>ListenBrainz Playlist Tool</title>
  7.   <style>
  8.     body {
  9.       font-family: Arial, sans-serif;
  10.     }
  11.     .listen-item {
  12.       margin: 10px 0;
  13.     }
  14.     .listen-item input {
  15.       margin-right: 10px;
  16.     }
  17.     button {
  18.       margin-top: 20px;
  19.     }
  20.     #listens-container {
  21.       margin-top: 20px;
  22.     }
  23.     pre {
  24.       background-color: #f0f0f0;
  25.       padding: 10px;
  26.       border: 1px solid #ccc;
  27.       overflow: auto;
  28.     }
  29.   </style>
  30. </head>
  31. <body>
  32.   <h1>Select Listens to Add to Playlist</h1>
  33.  
  34.   <div id="login-form">
  35.     <label for="username">Username:</label>
  36.     <input type="text" id="username" placeholder="Enter ListenBrainz username"><br><br>
  37.  
  38.     <label for="api-token">API Token:</label>
  39.     <input type="text" id="api-token" value="" readonly><br><br>
  40.  
  41.     <button onclick="fetchListens()">Fetch Listens</button>
  42.   </div>
  43.  
  44.   <div id="listens-container">
  45.     <!-- Listens and debug information will be populated here -->
  46.   </div>
  47.  
  48.   <button id="add-button" style="display:none;" onclick="addToPlaylist()">Add to Playlist</button>
  49.  
  50.   <script src="app.js"></script>
  51. </body>
  52. </html>
Advertisement
Add Comment
Please, Sign In to add comment