| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>My Playlists</title>
- <link rel="stylesheet" href="popup.css" />
- <script src="alpine.min.js" defer></script>
- <script src="popup.js"></script>
- </head>
- <body>
- <div id="app" x-data="playlistManager">
- <header>
- <h1>My Playlists</h1>
- </header>
- <div class="playlists-container">
- <template
- x-for="(videos, playlistName) in playlists"
- :key="playlistName"
- >
- <div class="playlist">
- <h2 x-text="playlistName"></h2>
- <div class="video-list">
- <template x-for="(video, index) in videos" :key="index">
- <div class="video-item" :title="video.title">
- <span
- class="video-title"
- x-text="video.title"
- x-bind="videotitle"
- ></span>
- <div class="video-actions">
- <a
- :href="video.url"
- class="play-btn"
- x-bind="videoPlayLink"
- >
- ⏵
- </a>
- <button
- :data-playlist-name="playlistName"
- :data-playlist-index="index"
- x-bind="removeVideoButton"
- class="remove-btn"
- >
- X
- </button>
- </div>
- </div>
- </template>
- <!--
- <div x-show="videos.length === 0" class="empty-playlist">
- No videos in this playlist
- </div>
- -->
- </div>
- </div>
- </template>
- </div>
- </div>
- </body>
- </html>
|