-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
228 lines (195 loc) · 12.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="../static/css/style.css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-success">
<a class="navbar-brand" href="#">Navbar</a>
</nav>
<div class="container">
<div class="row">
<div class="col-lg-6 col-md-12">
<div class="box data">
<label class="text-primary data" for="genre">Genre</label>
<select id="genre" placeholder="Pop" style="font-family:Courier;font-weight:bold;">
<option value="pop">Pop</option>
<option value="hiphop">Hip-Hop</option>
<option value="r&b">R&B</option>
<option value="rock">Rock</option>
<option value="house">House</option>
<option value="metal">Metal</option>
<option value="latin">Latin</option>
<option value="jazz">Jazz</option>
<option value="folk">Folk</option>
<option value="soul">Soul</option>
<option value="show tunes">Show Tunes</option>
<option value="country">Country</option>
<option value="adult standards">Adult Standards</option>
<option value="other">Other</option>
</select>
<br>
<label class="text-primary" for="explicit"> <a
href="https://developer.spotify.com/documentation/web-api/reference/search/search/"
class="text-primary">Explicit</a>
(Yes (1) or No (0))</label> <br>
<input id="explicit" type="range" min="0" max="1" value="0" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="duration"><a
href="https://developer.spotify.com/documentation/web-api/reference/search/search/"
class="text-primary">Track
Duration</a> (ms)</label> <br>
<input id="duration" type="range" min="29688" max="3079157" value="215640" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="popularity"> <a
href="https://developer.spotify.com/documentation/web-api/reference/search/search/"
class="text-primary">Track
Popularity</a> (0 to 100)</label> <br>
<input id="popularity" type="range" min="0" max="100" value="50" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="danceability"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Danceability</a>
(0.0 to 1.0)</label> <br>
<input id="danceability" type="range" min="0.0" max="1.0" value="0.606" step="0.001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="energy"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Energy</a>
(0.0 to 1.0)</label> <br>
<input id="energy" type="range" min="0.0" max="1.0" value="0.634" step="0.0001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="key"> <a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Key</a>
based on<a href="https://en.wikipedia.org/wiki/Pitch_class"> Pitch Class</a> (-1 to 11)</label>
<br>
<input id="key" type="range" min="-1" max="11" value="5" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="loudness"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Loudness</a>
(dB)</label> <br>
<input id="loudness" type="range" min="-60" max="2.291" value="-8.253" step="0.0001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="mode"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Mode</a>
(Major (1) or minor (0))</label> <br>
<input id="mode" type="range" min="0" max="1" value="1" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="speechiness"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Speechiness</a>
(0.0 to 1.0)</label> <br>
<input id="speechiness" type="range" min="0.0" max="1.0" value="0.041" step="0.0001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="acousticness"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Acousticness</a>
(0.0 to 1.0)</label> <br>
<input id="acousticness" type="range" min="0.0" max="1.0" value="0.194" step="0.0001"
class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="instrumentalness"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Instrumentalness</a>
(0.0 to 1.0)</label> <br>
<input id="instrumentalness" type="range" min="0.0" max="1.0" value="0.00000477" step="0.00000001"
class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="liveness"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Liveness</a>
(0.0 to 1.0)</label> <br>
<input id="liveness" type="range" min="0.0" max="1.0" value="0.131" step="0.0001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="valence"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Valence</a>
(0.0 to 1.0)</label> <br>
<input id="valence" type="range" min="0.0" max="1.0" value="0.627" step="0.0001" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="tempo"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Tempo</a>
(bpm)</label> <br>
<input id="tempo" type="range" min="20" max="250" value="120" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="time_signature"><a
href="https://developer.spotify.com/documentation/web-api/reference/tracks/get-audio-features/"
class="text-primary">Time
Signature</a> (2 to 5)</label> <br>
<input id="time_signature" type="range" min="2" max="5" value="4" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="week_pos"><a
href="https://data.world/kcmillersean/billboard-hot-100-1958-2017" class="text-primary">What
is your song's
current position on Billoard Hot
100?</a> (1 to 100)</label> <br>
<input id="week_pos" type="range" min="1" max="100" value="50" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="instance"><a
href="https://data.world/kcmillersean/billboard-hot-100-1958-2017" class="text-primary">How
many times has your
song been on the Billboard Hot 100?</a> (1to 9)</label> <br>
<input id="instance" type="range" min="1" max="9" value="1" class="slider">
<span class="slider_label text-warning"></span>
<br>
<label class="text-primary" for="weeks_on_chart"><a
href="https://data.world/kcmillersean/billboard-hot-100-1958-2017" class="text-primary">How
many weeks has your
song been on the Billboard Hot 100?</a> (1 to 100)</label> <br>
<input id="weeks_on_chart" type="range" min="1" max="87" value="27" class="slider">
<span class="slider_label text-warning"></span>
</div>
<div class="flask-link">
<a class="btn btn-success" href="" role="button">Get My Peak Position!</a>
</div>
</div>
<div class="col-lg-6 col-md-12">
<div class="box ">
<canvas id="myChart" width="700" height="1600"></canvas>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script type="text/javascript" src="./static/js/initial.js"></script>
<script type="text/javascript" src="./static/js/app.js"></script>
<script type="text/javascript" src="./static/js/rangeValues.js"></script>
</body>
</html>