Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

167 lines (136 sloc) 9.012 kb
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Playlick</title>
<meta name="description" content="Playlick lets you create and share playlists with your friends.">
<meta name="keywords" content="playlist, music, album, last.fm, podcast, playlick, playdar, github">
<link rel="stylesheet" type="text/css" media="screen" charset="utf-8" href="/playlick.css">
</head>
<body>
<div id="viewport">
<div id="content">
<div id="sidebar">
<h1>Your playlists</h1>
<div class="sidebar_list">
<ul id="playlists">
<li><a href="#new" id="create_playlist" class="playlist">+ Create</a></li>
<li class="current"><a href="#import" id="import_playlist" class="playlist">+ Import</a></li>
</ul>
<p id="loading_playlists">Loading playlists…</p>
</div>
<div id="playdar">Checking for Playdar…</div>
</div>
<div id="main">
<div id="manage">
<h1 id="playlistTitle">Create a new playlist</h1>
<form id="add_to_playlist">
<label for="add_track_input">Add a Track:</label>
<input type="text" name="track" id="add_track_input" />
<input type="hidden" name="artist_name" id="add_track_artist" />
<input type="hidden" name="track_name" id="add_track_name" />
<input type="submit" id="add_track_button" value="Start a Playlist" />
</form>
<p id="shortcuts"><small>Keyboard shortcuts: &nbsp;&nbsp; <b>p</b> - play &nbsp;&nbsp; <b>]</b> - next track &nbsp;&nbsp; <b>[</b> - previous track</small></p>
<p id="tracksLoading"><img src="/track_scanning.gif" width="16" height="16">Loading tracks…</p>
<p id="tracksError">Failed to load tracks. Please try again later.</p>
<ol class="trackList" id="playlist"></ol>
</div>
<div id="import">
<h1>Import a playlist from Last.fm</h1>
<form id="import_playlist_form">
<label for="import_playlist_input">Username:</label>
<input type="text" name="username" id="import_playlist_input" />
<input type="submit" id="import_playlist_button" value="Get Playlists" />
</form>
<p class="messages" id="import_loading"><img src="/track_scanning.gif" width="16" height="16"> Loading playlists…</p>
<p class="messages" id="import_done">Done! Playlists imported: <span id="import_count"></span></p>
<p class="messages" id="import_error_no_playlists">No playlists found</p>
<p class="messages" id="import_error"></p>
<h1>Import an album</h1>
<form id="album_form">
<label for="album_import_input">Album:</label>
<input type="text" name="album" id="album_import_input" />
<input type="hidden" name="artist_name" id="album_import_artist" />
<input type="hidden" name="album_name" id="album_import_name" />
<input type="submit" id="album_button" value="Add album" />
</form>
<p class="messages" id="album_loading"><img src="/track_scanning.gif" width="16" height="16"> Loading album…</p>
<p class="messages" id="album_done">Done! Album imported: <span id="album_name"></span></p>
<p class="messages" id="album_error"></p>
<h1>Import a playlist from XSPF</h1>
<form id="xspf_form">
<label for="xspf_input">XSPF URL:</label>
<input type="text" name="xspf" id="xspf_input" />
<input type="submit" id="xspf_button" value="Load XSPF" />
</form>
<p class="messages" id="xspf_loading"><img src="/track_scanning.gif" width="16" height="16"> Loading XSPF…</p>
<p class="messages" id="xspf_done">Done! Imported “<span id="xspf_title"></span>” (<span id="xspf_count"></span>)</p>
<p class="messages" id="xspf_error"></p>
<h1>Import a podcast</h1>
<form id="podcast_form">
<label for="podcast_input">Podcast URL:</label>
<input type="text" name="podcast" id="podcast_input" />
<input type="submit" id="podcast_button" value="Load Podcast" />
</form>
<p class="messages" id="podcast_loading"><img src="/track_scanning.gif" width="16" height="16"> Loading podcast…</p>
<p class="messages" id="podcast_done">Done! Imported “<span id="podcast_title"></span>” (<span id="podcast_count"></span>)</p>
<p class="messages" id="podcast_error"></p>
<h1>Generate a playlist from Last.fm users</h1>
<form id="generate_form">
<label for="generate_input_you">You:</label>
<input type="text" name="you" id="generate_you" />
<label for="generate_input_they">They:</label>
<input type="text" name="they" id="generate_they" />
<input type="submit" id="generate_button" value="Generate!" />
</form>
<p class="messages" id="generate_loading_artists"><img src="/track_scanning.gif" width="16" height="16"> Getting artist list…</p>
<p class="messages" id="generate_loading_tracks"><img src="/track_scanning.gif" width="16" height="16"> Fetching tracks…</p>
<p class="messages" id="generate_done">Done!</p>
<p class="messages" id="generate_error"></p>
</div>
</div>
<div id="footer">
<a href="http://github.com/jwheare/playlick/tree/master">Playlick on github</a> |
Made by <a href="http://james.wheare.org/">James Wheare</a>
</div>
</div>
</div>
<!-- jQuery -->
<script src="/lib/jquery.js"></script>
<script src="/lib/jquery-ui.js"></script>
<script src="/lib/jquery.autocomplete.pack.js"></script>
<!-- CouchDB -->
<script src="/lib/json2.js"></script>
<script src="/lib/couch.js"></script>
<!-- Playdar -->
<script src="/lib/playdar_compressed.js"></script>
<!-- Models -->
<script src="/models.js"></script>
<!-- App -->
<script src="/main.js"></script>
<!-- Sound Manager 2 -->
<script src="/lib/soundmanager2-nodebug-jsmin.js"></script>
<script>
PLAYLICK.init();
Playdar.setup({
name: "Playlick",
website: "http://www.playlick.com/",
receiverurl: "http://www.playlick.com/playdar_auth.html"
});
Playdar.USE_STATUS_BAR = false;
// Playdar.USE_SCROBBLER = false;
Playdar.REFRESH_INTERVAL = 500;
Playdar.MAX_CONCURRENT_RESOLUTIONS = 20;
Playdar.client.register_listeners(PLAYLICK.playdar_listeners);
soundManager.url = '/lib/soundmanager2_flash9.swf';
soundManager.flashVersion = 9;
soundManager.debugMode = false;
soundManager.consoleOnly = true;
soundManager.onload = function () {
Playdar.setup_player(soundManager);
Playdar.client.init();
};
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.