-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (58 loc) · 2.68 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
<!doctype html>
<html lang="en">
<head>
<!-- Meta info -->
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" content="Create a spotify playlist from a BBC Sounds episode.">
<!-- Browser parameters -->
<title>Spotilist</title>
<link rel="icon" type="image/png" href="resources/favicon.png">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="title">
<img id="logo" src="/resources/favicon.png" alt="Spotilist logo" width="75" height="75">
<h1><a href="https://spotilist.cooper-davis.net" id="header_link">Spotilist</a></h1>
<p id="subtitle">Create a spotify playlist from a BBC Sounds episode.</p>
</div>
<main>
<p id="intro">This tool takes a BBC Sounds episode, extracts the songs, and puts them in a new Spotify playlist for you.</p>
<div id="buttons">
<label>
<b>BBC Sounds URL: </b>
<input type="text" id="urlInput" class="invalid" placeholder="https://www.bbc.co.uk/sounds/play/m000hvxg">
</label>
<button id='urlSubmit' class="invalid" disabled>Go!</button>
</div>
<details id="details">
<summary id="summary"><u>Instructions & More Options</u></summary>
<div id="details-content">
<p><b>Instructions:</b></p>
<ol>
<li><b>Enter the url</b> of the BBC Sounds episode you want into the box above, which will go green if it's a valid URL.</li>
<li>[optional] <b>Fill in</b> the desired playlist title and description below.</li>
<li><b>Click go</b> and authenticate your Spotify account.</li>
<li><b>Wait for a few seconds</b> to be redirected to your new playlist.</li>
</ol>
<p><b>More options:</b></p>
Playlist title: <input type="text" id="playlistTitleInput" placeholder="Default"><br><br>
Playlist description: <input type="text" id="playlistDescriptionInput" placeholder="Automatically generated by Spotilist." defaultValue = "">
<p><b>Results log:</b></p>
<textarea name="outputBox" id="outputBox" rows="5" placeholder="Results log:" readonly></textarea>
</div>
</details>
</main>
<footer>
<p>
A <a href=https://github.com/aricooperdavis/Spotilist>free
and open source</a> project by <a href=https://www.cooper-davis.net>
Ari Cooper-Davis</a>, using <a
href=https://github.com/gnuns/allOrigins>All Origins</a>.
</p>
</footer>
<!-- Load relevant JavaScripts -->
<script type="text/javascript" src="js/spotilist.js"></script>
</body>
</html>