-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
291 lines (253 loc) · 9.74 KB
/
index.html
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Searcher</title>
<style>
/* Global styles */
body {
background-color: #FFC0CB;
font-family: Arial, sans-serif;
text-align: center;
padding: 30px;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
h1 {
color: #D5006D;
margin-bottom: 20px;
font-size: 32px;
}
/* Input and button styles */
input[type="text"] {
padding: 12px;
font-size: 16px;
width: 80%;
max-width: 600px;
margin-bottom: 4px; /* Reduced margin to bring buttons closer */
border: 2px solid #D5006D;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
transition: border-color 0.3s;
}
input[type="text"]:focus {
border-color: #FF69B4;
outline: none;
}
button {
padding: 12px 20px;
font-size: 16px;
background-color: #FF69B4;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s;
margin-top: 4px; /* Reduced margin to make buttons even closer */
}
button:hover {
background-color: #FF1493;
}
/* Service description styles */
.service-description {
font-size: 14px;
color: #333;
background-color: #FFF0F5;
padding: 12px;
border-radius: 8px;
margin-bottom: 8px; /* Reduced margin to bring descriptions closer to input */
max-width: 600px;
text-align: left;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Iframe container */
.iframe-container {
width: 100%;
max-width: 1200px;
margin-top: 20px;
position: relative;
}
.iframe-container iframe {
width: 100%;
height: 800px;
border: 2px solid #D5006D;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.iframe-container .close-button {
position: absolute;
top: 10px;
right: 10px;
background-color: #FF69B4;
color: white;
border: none;
padding: 8px 12px;
cursor: pointer;
border-radius: 5px;
}
.iframe-container .close-button:hover {
background-color: #FF1493;
}
/* Desktop Layout */
@media (min-width: 769px) {
input[type="text"], button {
width: 50%; /* Increased width for desktop */
font-size: 18px;
padding: 14px;
}
.service-description {
max-width: 600px;
font-size: 16px;
padding: 16px;
}
h1 {
font-size: 36px; /* Larger heading for desktop */
}
/* Make iframe container larger */
.iframe-container iframe {
height: 800px;
}
/* Reduce padding and margin for better alignment */
body {
padding: 40px;
}
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
input[type="text"], button {
width: 90%; /* Compress input fields and buttons for mobile */
padding: 10px;
font-size: 14px;
}
.service-description {
max-width: 90%;
font-size: 12px;
padding: 10px;
}
h1 {
font-size: 24px;
}
/* Adjust button spacing for smaller screens */
button {
padding: 10px 15px;
margin-top: 6px;
}
/* Make iframe container smaller and adjust margins */
.iframe-container iframe {
height: 600px;
}
/* Reduce margins and paddings */
body {
padding: 15px;
}
}
</style>
</head>
<body>
<h1>Music Searcher</h1>
<!-- TIDAL Section -->
<div class="service-description">
<strong>TIDAL:</strong> HiFi (16-bit/44.1kHz) and Hi-Res (up to 24-bit/192kHz).
</div>
<input type="text" id="searchInputTIDAL" placeholder="Search for TIDAL...">
<button onclick="performSearch('TIDAL')">Search TIDAL</button>
<!-- QOBUZ Section -->
<div class="service-description">
<strong>QOBUZ:</strong> Hi-Res (FLAC, up to 24-bit/192kHz).
</div>
<input type="text" id="searchInputQOBUZ" placeholder="Search for QOBUZ...">
<button onclick="performSearch('QOBUZ')">Search QOBUZ</button>
<!-- DEEZER Section -->
<div class="service-description">
<strong>DEEZER:</strong> CD quality (FLAC, 16-bit/44.1kHz).
</div>
<input type="text" id="searchInputDEEZER" placeholder="Search for DEEZER...">
<button onclick="performSearch('DEEZER')">Search DEEZER</button>
<!-- YANDEX Section -->
<div class="service-description">
<strong>YANDEX:</strong> Standard and high-quality audio available.
</div>
<input type="text" id="searchInputYANDEX" placeholder="Search for YANDEX...">
<button onclick="performSearch('YANDEX')">Search YANDEX</button>
<!-- AMAZON MUSIC Section -->
<div class="service-description">
<strong>AMAZON MUSIC:</strong> HD and Ultra HD (up to 24-bit/192kHz).
</div>
<input type="text" id="searchInputAMAZON" placeholder="Search for AMAZON MUSIC...">
<button onclick="performSearch('AMAZON MUSIC')">Search AMAZON MUSIC</button>
<!-- SPOTIFY Section -->
<div class="service-description">
<strong>SPOTIFY:</strong> Standard streaming quality, up to 320 kbps.
</div>
<input type="text" id="searchInputSPOTIFY" placeholder="Search for SPOTIFY...">
<button onclick="performSearch('SPOTIFY')">Search SPOTIFY</button>
<!-- BEATPORT Section -->
<div class="service-description">
<strong>BEATPORT:</strong> High-quality audio for electronic music (formats vary).
</div>
<input type="text" id="searchInputBEATPORT" placeholder="Search for BEATPORT...">
<button onclick="performSearch('BEATPORT')">Search BEATPORT</button>
<div id="iframeContainer"></div>
<button onclick="addLucida()">Open Lucida</button>
<script>
function performSearch(service) {
const searchQuery = service === 'TIDAL' ? document.getElementById('searchInputTIDAL').value :
service === 'QOBUZ' ? document.getElementById('searchInputQOBUZ').value :
service === 'DEEZER' ? document.getElementById('searchInputDEEZER').value :
service === 'YANDEX' ? document.getElementById('searchInputYANDEX').value :
service === 'AMAZON MUSIC' ? document.getElementById('searchInputAMAZON').value :
service === 'BEATPORT' ? document.getElementById('searchInputBEATPORT').value :
document.getElementById('searchInputSPOTIFY').value;
let searchUrl;
switch (service) {
case 'TIDAL':
searchUrl = "https://www.google.com/search?q=" + encodeURIComponent(searchQuery + " TIDAL");
break;
case 'QOBUZ':
searchUrl = "https://www.qobuz.com/us-en/search?q=" + encodeURIComponent(searchQuery);
break;
case 'DEEZER':
searchUrl = "https://www.deezer.com/search/" + encodeURIComponent(searchQuery);
break;
case 'YANDEX':
searchUrl = "https://www.google.com/search?q=" + encodeURIComponent(searchQuery + " Yandex music");
break;
case 'AMAZON MUSIC':
searchUrl = "https://music.amazon.com/search/" + encodeURIComponent(searchQuery);
break;
case 'SPOTIFY':
searchUrl = "https://open.spotify.com/search/results/" + encodeURIComponent(searchQuery);
break;
case 'BEATPORT':
searchUrl = "https://www.beatport.com/search?q=" + encodeURIComponent(searchQuery);
break;
default:
searchUrl = "https://www.google.com/search?q=" + encodeURIComponent(searchQuery + " " + service);
}
// Open the search results page in a new tab
window.open(searchUrl, '_blank');
}
function addLucida() {
const iframeContainer = document.getElementById('iframeContainer');
const iframeWrapper = document.createElement('div');
iframeWrapper.className = 'iframe-container';
const closeButton = document.createElement('button');
closeButton.className = 'close-button';
closeButton.textContent = 'Close';
closeButton.onclick = function() {
iframeWrapper.remove();
};
const iframe = document.createElement('iframe');
iframe.src = 'https://lucida.to/';
iframeWrapper.appendChild(iframe);
iframeWrapper.appendChild(closeButton);
iframeContainer.appendChild(iframeWrapper);
}
</script>
</body>
</html>