forked from watsonbox/exportify
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexportify.html
141 lines (120 loc) · 4.58 KB
/
exportify.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Exportify</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<style>
#header {
padding: 40px 15px;
text-align: center;
}
#loginButton {
display: none;
margin-top: 20px;
}
#rateLimitMessage {
display: none;
text-align: center;
}
h1 a { color: black; }
h1 a:hover { color: black; text-decoration: none; }
nav.paginator:nth-child(1) {
margin-top: -74px;
}
table {
float: left;
}
#playlists {
display: none;
}
@keyframes spinner {
to {transform: rotate(360deg);}
}
@-webkit-keyframes spinner {
to {-webkit-transform: rotate(360deg);}
}
.spinner {
min-width: 24px;
min-height: 24px;
}
.spinner:before {
content: 'Loading…';
position: absolute;
top: 240px;
left: 50%;
width: 100px;
height: 100px;
margin-top: -50px;
margin-left: -50px;
}
.spinner:not(:required):before {
content: '';
border-radius: 50%;
border: 4px solid rgba(236, 235, 232, 1);
border-top-color: rgba(130, 130, 130, 1);
animation: spinner 1s linear infinite;
-webkit-animation: spinner 1s linear infinite;
}
.ribbon {
background-color: #84BD00;
overflow: hidden;
white-space: nowrap;
/* top left corner */
position: absolute;
left: -50px;
top: 40px;
/* 45 deg ccw rotation */
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
/* shadow */
-webkit-box-shadow: 0 0 10px #888;
-moz-box-shadow: 0 0 10px #888;
box-shadow: 0 0 10px #888;
}
.ribbon a {
border: 1px solid #ded;
color: #fff;
display: block;
font: bold 81.25% 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 1px 0;
padding: 10px 50px;
text-align: center;
text-decoration: none;
/* shadow */
text-shadow: 0 0 5px #444;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-mockjax/1.6.2/jquery.mockjax.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="//cdn.rawgit.com/eligrey/FileSaver.js/babc6d9d8fc60e667ddeafb7a7d3b844ce761ab5/FileSaver.min.js"></script>
<!-- React.js -->
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
<script type="text/jsx" src="exportify.js"></script>
</head>
<body>
<div class="ribbon"><a href="https://github.com/watsonbox/exportify">Fork me on Github</a></div>
<div class="container">
<div id="header">
<h1><i class="fa fa-spotify" style="color: #84BD00"></i> <a href="exportify.html">Exportify</a></h1>
<p id="subtitle" class="lead">Export your Spotify playlists.</p>
<button id="loginButton" type="submit" class="btn btn-default btn-lg" onclick="window.Helpers.authorize()">
<i class="fa fa-check-circle-o"></i> Get Started
</button>
</div>
<div id="playlistsContainer"></div>
<div id="rateLimitMessage" class="lead">
<p><i class="fa fa-bolt" style="font-size: 50px; margin-bottom: 20px"></i></p>
<p>Oops, Exportify has encountered a <a target="_blank" href="https://developer.spotify.com/web-api/user-guide/#rate-limiting">rate limiting</a> error while using the Spotify API. This might be because of the number of users currently exporting playlists, or perhaps because you have too many playlists to export all at once. Try <a target="_blank" href="https://github.com/watsonbox/exportify/issues/6#issuecomment-110793132">creating your own</a> Spotify application. If that doesn't work, please add a comment to <a target="_blank" href="https://github.com/watsonbox/exportify/issues/6">this issue</a> where possible resolutions are being discussed.</p>
<p style="margin-top: 50px">It should still be possible to export individual playlists, particularly when using your own Spotify application.</p>
<div>
</div><!-- /.container -->
</body>
</html>