-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (45 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<title>Spotify App</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="script.js" defer></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="insta.js"></script>
</head>
<body class="container">
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '2363631587031491',
autoLogAppEvents : true,
xfbml : true,
status : true,
version : 'v3.3'
});
};
</script>
<script async defer src="https://connect.facebook.net/en_US/sdk.js"></script>
<script>
window.InstAuth.init("b6ac144383124f8eae6bd040340179e0");
</script>
<h1 class="text-salmon">Spotify App</h1>
<h3>This app uses the implicit grant authorization flow to authenticate users and get user data.</h3>
<p>
<button onclick="getCustomPL();">Get Custom Playlist</button>
Here are your top artists on Spotify:
<ol id="top-artists"></ol>
</p>
<button onclick="graphData();">Graph Valence / Energy</button>
<div id="D3JS">D3JS about to go here</div>
<button onclick="analyzeFB();">Login with Facebook / Energy</button>
<button onclick="analyzeInsta();">Login with Insta / Energy</button>
</body>
</html>