-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (48 loc) · 1.52 KB
/
index.html
File metadata and controls
56 lines (48 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ArtistLocationVisualizer</title>
<link rel="icon" href="images/icon.png">
</head>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
*{
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
background-color: #232F34;
}
#token-container{
text-align: center;
margin-top: 300px;
}
#token-message{
color: white;
margin-bottom: 25px;
}
#token-button{
background-color: #F9AA33;
color: white;
font-weight: 600;
border: none;
border-radius: 20px;
padding: 10px 25px 10px 25px;
margin: 0 auto;
display: block;
}
</style>
<body>
<div id="token-container">
<p id="token-message">You need an access token to use Spotify's data</p>
<button id="token-button">Get a token</button>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$('#token-button').on('click', function() {
var url = 'https://accounts.spotify.com/authorize?client_id=2bda815c7fb54155a36552f407a53b23&redirect_uri=https%3A%2F%2Fhugovialle.github.io%2FArtistLocationVisualizer%2Fauth.html&response_type=token';
window.location = url;
})
</script>
</html>