Create templates/index.html
Browse files- templates/index.html +40 -0
templates/index.html
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Music Player</title>
|
7 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
8 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
9 |
+
</head>
|
10 |
+
<body>
|
11 |
+
<div class="container">
|
12 |
+
<div class="row mt-4">
|
13 |
+
<div class="col-md-8 offset-md-2">
|
14 |
+
<h1 class="text-center mb-4">Music Player</h1>
|
15 |
+
<div class="search-container mb-4">
|
16 |
+
<input type="text" id="searchInput" class="form-control" placeholder="Search for songs...">
|
17 |
+
<button onclick="search()" class="btn btn-primary mt-2">Search</button>
|
18 |
+
</div>
|
19 |
+
|
20 |
+
<div id="searchResults" class="mb-4"></div>
|
21 |
+
|
22 |
+
<div id="player-container" class="d-none">
|
23 |
+
<div id="player"></div>
|
24 |
+
<div class="controls mt-3">
|
25 |
+
<h3 id="currentSongTitle" class="mb-3"></h3>
|
26 |
+
<div class="d-flex justify-content-center">
|
27 |
+
<button onclick="previousTrack()" class="btn btn-secondary mx-2">Previous</button>
|
28 |
+
<button onclick="togglePlayPause()" id="playPauseBtn" class="btn btn-primary mx-2">Play</button>
|
29 |
+
<button onclick="nextTrack()" class="btn btn-secondary mx-2">Next</button>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<script src="https://www.youtube.com/iframe_api"></script>
|
38 |
+
<script src="{{ url_for('static', filename='js/player.js') }}"></script>
|
39 |
+
</body>
|
40 |
+
</html>
|