-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
280 lines (268 loc) · 9.99 KB
/
Copy pathindex.html
File metadata and controls
280 lines (268 loc) · 9.99 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
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
<!DOCTYPE html>
<html>
<head>
<title>ProfileFusion</title>
<!--Core metas-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!--Information metas-->
<meta name="description" content="Compare two Spotify users side-by-side, and also see an overall similarity score.">
<meta name="author" content="Elijah Olmos">
<meta name="theme-color" content="#00D368">
<!--OpenGraph metas-->
<meta property="og:title" content="SpotifyParallel">
<meta name="og:description" content="Analyze multiple Spotify users and assemble a playlist based off their public profiles">
<meta property="og:url" content="http://www.glassintel.com/elijah/programs/spotifyparallel">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"></script>
<!--
<script type='text/javascript' src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.1/handlebars.min.js"></script>
-->
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-app.js" defer></script>
<script src="https://www.gstatic.com/firebasejs/7.19.0/firebase-database.js" defer></script>
<!--HackTimer allows the setInterval to run at rates quick than 1Hz when the tab is out of focus-->
<script src="../spotify-util/js/HackTimer.js" defer></script>
<script src="../spotify-util/js/progressbar.min.js" defer></script>
<script src="js/app.js" type="module" defer></script>
<link rel="stylesheet" type="text/css" href="https://d2c87l0yth4zbw.cloudfront.net/css/80278a9.css">
<link rel="stylesheet" type="text/css" href="../spotify-util/css/checkbox.css">
<link rel="stylesheet" type="text/css" href="css/tracks.css">
<style type='text/css'>
.hidden {
display: none !important;
}
.parent {
text-align: center;
}
h1 {
text-align: center;
color:rgb(231, 231, 226);
font-size: 40px;
padding:5px;
margin-top: 5px;
}
body {
background:#000;
height: 97vh;
width: 99%;
position: absolute;
top: 0;
}
p, label {
color:rgb(231, 231, 226);
font-family: sans-serif;
text-align: center;
font-size: 20px;
margin: 15px;
}
a {
color: #5da1bd;
text-decoration: none;
}
button {
width:auto;
padding:5px;
font-size: 16px;
margin-bottom: 15px;
}
details {
margin:auto;
color:rgb(231, 231, 226);
font-family: sans-serif;
text-align: center;
font-size: 18px;
margin-bottom: 15px;
width: 65%;
}
.details-open {
border: rgb(167, 167, 167) 2px solid;
border-radius: 4px;
padding-top: 10px;
padding-bottom: 5px;
}
details p {
font-size: 18px;
}
details label {
margin: 0px;
/*margin-left: -20px;*/
margin-bottom:6px;
}
summary {
margin-bottom: 10px;
}
.flex-item {
display: flex;
flex-flow: column;
}
#main-button {
margin-top:15px;
}
#instructions {
width:75%;
margin:auto;
}
.user-link {
width:450px;
padding:5px;
margin-top:10px;
margin-bottom:10px;
margin-left: 5px; /*space between label and input box*/
font-size: 18px;
text-align: center;
background-color: rgb(236, 227, 214);
}
.profile-info-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
.profile-info-wrapper img {
width: 46px;
border-radius: 50px;
}
#user-results-wrapper {
display: flex;
align-items: flex-start;
justify-content: center;
}
#user-results-wrapper h3 {
text-align: center;
color:rgb(231, 231, 226);
font-size: 26px;
padding:5px;
text-decoration: underline;
}
.user-info-box {
flex: 1;
}
.playlist-item {
max-width:40%;
margin:auto; /*to center it*/
}
/*id is to override the previous text-decoration*/
#user-results-wrapper .playlist-item h3 {
text-decoration: none;
}
.playlist-item p {
margin: 25px;
}
.playlist-item img {
width:300px;
height:300px;
object-fit: cover;
margin: auto;
}
#progress-bar-wrapper {
margin-top:40px;
}
#progress-bar {
border: 2px solid rgb(236, 227, 214);
border-radius: 3px;
width:80%;
margin: auto; /*to center the progressbar*/
}
</style>
</head>
<body>
<h1>ProfileFusion</h1>
<div class="container">
<div id="login-page" class="parent hidden">
<button id="login-button">Login with Spotify</button>
</div>
<div id="main-page" class="parent hidden">
<p id="instructions">
This program compares the Spotify accounts of two target users and gives you a general similarity score, as well as presents a parallel display of the details.
<br>
To get started, enter the Spotify profile links of the two users you'd like to compare.
You can get the links by navigating to the user's Spotify profile, selecting the three dots, then choosing Share -> Copy Link.
Once you have it copied, paste it in one of the boxes below.
Sample links are provided as examples.
<br>
Once you've pasted both links, click the button and the program will begin gathering data on both users.
As soon as the program is finished, it will present its results on both users in parallel.
When you're done looking those over, you can return to the main page and compare other users.
</p>
<br>
<div id="input-wrapper">
<div class="user-profile-input-wrapper">
<input id="user1" class="user-link" type="text" placeholder="https://open.spotify.com/user/cgracep">
<br>
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
<div class="user-profile-input-wrapper">
<input id="user2" class="user-link" type="text" placeholder="https://open.spotify.com/user/ollog10">
<br>
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
<div class="user-profile-input-wrapper">
<input id="user3" class="user-link" type="text" placeholder="https://open.spotify.com/user/ollog10">
<br>
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
<div class="user-profile-input-wrapper">
<input id="user4" class="user-link" type="text" placeholder="https://open.spotify.com/user/ollog10">
<br>
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
<div class="user-profile-input-wrapper">
<input id="user5" class="user-link" type="text" placeholder="https://open.spotify.com/user/ollog10">
<br>
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
</div>
<br>
<div id="button-wrapper">
<button id="main-button">Fuse Profiles</button>
</div>
<div id="progress-bar-wrapper" class="hidden">
<div id="progress-bar"></div>
<div id="estimated-time-remaining"><p></p></div>
</div>
</div>
<div id="results-page" class="parent">
<div id="top-results-wrapper">
<div class="profile-info-wrapper">
<img>
<p></p>
</div>
</div>
<div id="user-results-wrapper">
<details class="">
<summary>There were <b>20</b> songs in common</summary>
<div class="tracks-block">
<div class="track-wrapper">
<div class="track">
<img src="./img/default_playlist_img.jpg" alt="Album art for '${track.album.name}'">
<p>
<span id="title">${track.name}</span><br>
by <span id="artist">${track.artists[0].name}</span>
</p>
</div>
</div>
</div>
</details>
</div>
<div id="bottom-results-wrapper">
<button id="compare-more-button">Compare More Users</button>
</div>
</div>
</div>
</body>
</html>