-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.html
More file actions
191 lines (191 loc) · 7.35 KB
/
Copy pathcategory.html
File metadata and controls
191 lines (191 loc) · 7.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<title>Telugu Beats</title>
<link rel="stylesheet" href="dashboard.css">
<style>
body {
background:
linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 40px 40px,
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 40px 40px,
linear-gradient(rgba(11,15,20,0.80), rgba(11,15,20,0.95)),
url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?w=1920&q=80') center/cover fixed;
margin: 0;
color: white;
font-family: 'Segoe UI', sans-serif;
padding-bottom: 80px;
overflow-x: hidden;
}
.cat-header {
display: flex;
align-items: center;
gap: 20px;
padding: 14px 30px;
position: sticky;
top: 8px;
margin: 8px 5% 0 5%;
border-radius: 20px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
background: rgba(0,0,0,0.55);
border: 1px solid rgba(255,255,255,0.08);
box-shadow:
0 8px 32px rgba(0,0,0,0.4),
0 0 0 1px rgba(6,182,212,0.08),
inset 0 1px 0 rgba(255,255,255,0.05);
z-index: 100;
}
.back-btn {
background: #1f2937;
color: white;
border: none;
padding: 10px 18px;
border-radius: 25px;
cursor: pointer;
font-size: 14px;
transition: 0.2s;
}
.back-btn:hover {
background: #06b6d4;
color: black;
}
.cat-heading {
margin: 0;
font-size: 24px;
font-weight: 700;
}
.player-fav-btn {
background: transparent;
border: none;
font-size: 22px;
cursor: pointer;
padding: 0 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="cat-header">
<button class="back-btn" onclick="window.location.href='dashboard.html'">← Back</button>
<h2 class="cat-heading" id="catTitle"></h2>
</div>
<div id="songList" style="padding:20px 40px; width:80%; margin:0 auto;"></div>
<div class="bottom-player">
<div class="player-left" onclick="openNowPlaying()" style="cursor:pointer;">
<img id="playerImg" src="images/default.png">
<div class="player-text">
<p id="currentSong">No song</p>
<small id="status"></small>
</div>
</div>
<div style="display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;">
<div class="player-controls">
<button id="shuffleBtn" onclick="toggleShuffle()" title="Shuffle: OFF">⇄</button>
<button onclick="prev()">⏮</button>
<button id="mainPlayBtn" onclick="togglePlay()">▶</button>
<button onclick="next()">⏭</button>
</div>
<div style="display:flex;align-items:center;gap:8px;width:100%;max-width:400px;">
<span id="currentTime" style="font-size:12px;color:#aaa;min-width:35px;">0:00</span>
<input type="range" id="progressBar" min="0" max="100" value="0"
oninput="seekSong(this.value)"
style="flex:1;accent-color:#06b6d4;cursor:pointer;height:4px;">
<span id="totalTime" style="font-size:12px;color:#aaa;min-width:35px;">0:00</span>
</div>
</div>
<div class="player-right-controls">
<button id="playerFavBtn" onclick="togglePlayerFav()" style="background:transparent;border:none;font-size:22px;cursor:pointer;padding:0;">🤍</button>
<div class="volume-control">
<span>🔊</span>
<input type="range" id="volumeSlider" min="0" max="100" value="80"
oninput="setVolume(this.value)"
style="width:80px;accent-color:#06b6d4;cursor:pointer;height:4px;">
</div>
</div>
</div>
<!-- Song Info Popup -->
<div id="songInfoBox" style="
display:none;
position:fixed;
top:50%;
left:50%;
transform:translate(-50%,-50%);
background:rgba(15,20,28,0.97);
border:1px solid rgba(6,182,212,0.4);
border-radius:18px;
padding:28px 32px;
z-index:9999;
min-width:280px;
box-shadow:0 10px 40px rgba(0,0,0,0.7);
text-align:center;
">
<img id="infoImg" src="" style="width:90px;height:90px;border-radius:14px;object-fit:cover;margin-bottom:14px;">
<h3 id="infoName" style="margin:0 0 8px;font-size:18px;color:#06b6d4;"></h3>
<p id="infoMovie" style="margin:4px 0;font-size:14px;color:#ccc;">🎬 <span></span></p>
<p id="infoSinger" style="margin:4px 0;font-size:14px;color:#ccc;">🎤 <span></span></p>
<button onclick="closeSongInfo()" style="
margin-top:16px;
padding:8px 24px;
border-radius:20px;
border:none;
background:#06b6d4;
color:black;
cursor:pointer;
font-size:14px;
">Close</button>
</div>
<div id="infoOverlay" onclick="document.getElementById('songInfoBox').style.display='none';this.style.display='none';" style="
display:none;
position:fixed;
top:0;left:0;
width:100%;height:100%;
background:rgba(0,0,0,0.5);
z-index:9998;
"></div>
<!-- ── Now Playing Card ── -->
<div id="nowPlayingCard" class="np-card">
<div class="np-overlay" onclick="closeNowPlaying()"></div>
<div class="np-panel">
<div class="np-handle"></div>
<button class="np-close-btn" onclick="closeNowPlaying()">✕</button>
<div class="np-img-wrap">
<img id="npImg" src="images/default.png" onerror="this.src='images/default.png'">
</div>
<div class="np-info-row">
<div class="np-info-text">
<h3 id="npSongName">No song</h3>
<p id="npMovie"></p>
<p id="npSinger"></p>
</div>
<button id="npFavBtn" onclick="togglePlayerFav(); updateNowPlayingUI()">🤍</button>
</div>
<div class="np-progress-wrap">
<input type="range" id="npProgressBar" min="0" max="100" value="0"
oninput="seekSong(this.value)">
<div class="np-time-row">
<span id="npCurrentTime">0:00</span>
<span id="npTotalTime">0:00</span>
</div>
</div>
<div class="np-controls">
<button id="npShuffleBtn" onclick="toggleShuffle(); updateNowPlayingUI()" title="Shuffle">⇄</button>
<button onclick="prev()">⏮</button>
<button id="npPlayBtn" onclick="togglePlay()">▶</button>
<button onclick="next()">⏭</button>
</div>
<div class="np-volume-row">
<span>🔈</span>
<input type="range" id="npVolumeSlider" min="0" max="100" value="80"
oninput="setVolume(this.value)">
<span>🔊</span>
</div>
</div>
</div>
<audio id="audio"></audio>
<script src="player-state.js"></script>
<script src="songs.js"></script>
<script src="category.js"></script>
</body>
</html>