-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 921 Bytes
/
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
<html>
<head>
<style type="text/css">
#login {
display: none;
}
#loggedin {
display: none;
}
...
</style>
<body>
<div>
<div id="login">
<h1>First, log in to spotify</h1>
<a href="/login">Log in</a>
</div>
<div id="loggedin">
</div>
</div>
<script id="loggedin-template" type="text/x-handlebars-template">
<h1>Logged in as {{display_name}}</h1>
<img id="avatar" width="200" src="{{images.0.url}}" />
<dl>
<dt>Display name</dt><dd>{{display_name}}</dd>
<dt>Username</dt><dd>{{id}}</dd>
<dt>Email</dt><dd>{{email}}</dd>
<dt>Spotify URI</dt><dd><a href="{{external_urls.spotify}}">{{external_urls.spotify}}</a></dd>
<dt>Link</dt><dd><a href="{{href}}">{{href}}</a></dd>
<dt>Profile Image</dt><dd>{{images.0.url}}</dd>
</dl>
<p><a href="/">Log in again</a></p>
</script>
</body>
</html>