DAVIDS/public/index.html

82 lines
2.8 KiB
HTML
Raw Normal View History

2016-04-17 11:21:26 +02:00
<!doctype html>
<html>
<head>
<title>Spotify Duplicate Finder</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
2016-04-17 15:35:54 +02:00
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css">
2016-04-17 16:29:37 +02:00
<link rel="stylesheet" href="./style.css">
2016-04-17 11:21:26 +02:00
</head>
<body>
<div class="container">
2016-04-17 18:24:58 +02:00
<h1>Duplicates finder
2016-04-17 19:04:17 +02:00
<button class="btn btn-default has-spinner" id="obtain-new-token">
Refresh token <span class="spinner"><i class="icon-spin icon-refresh"></i></span>
</button>
<span id="login">
2016-04-17 18:24:58 +02:00
<a href="/login" class="btn btn-lg btn-success">Log in with Spotify</a>
2016-04-17 19:04:17 +02:00
</span>
2016-04-17 18:24:58 +02:00
</h1>
2016-04-17 18:11:05 +02:00
<div id="error"></div>
2016-04-17 11:21:26 +02:00
<div id="loggedin">
<div id="user-profile">
</div>
<div class="media">
<div class="pull-left">
2016-04-17 16:29:37 +02:00
<h2 id="playlists-title">Playlists
<button class="btn btn-default has-spinner" id="get-playlists">
Refresh <span class="spinner"><i class="icon-spin icon-refresh"></i></span>
</button>
</h2>
<div id="playlists">
</div>
</div>
<div class="media-body">
<div id="dups">
</div>
2016-04-17 11:21:26 +02:00
</div>
</div>
</div>
</div>
2016-04-17 16:29:37 +02:00
<script id="playlists-template" type="text/x-handlebars-template">
{{#list playlists}}
<a class="pl_item list-group-item has-spinner" href="/pl/{{pl_uid}}/{{pl_id}}">
{{pl_name}}
<span class="spinner"><i class="icon-spin icon-refresh"></i></span>
<i class="glyphicon glyphicon-chevron-right"></i>
</a>
{{/list}}
</script>
2016-04-17 11:21:26 +02:00
<script id="user-profile-template" type="text/x-handlebars-template">
2016-04-17 16:29:37 +02:00
Logged in as {{display_name}}
2016-04-17 11:21:26 +02:00
</script>
<script id="dups-template" type="text/x-handlebars-template">
<h2>Duplicates in {{pl_name}}</h2>
{{message}}
2016-04-17 16:07:11 +02:00
{{#list dups}}
<div class="list-group-item">{{dup_trackname}} - {{dup_artist}}</div>
{{/list}}
2016-04-17 11:21:26 +02:00
</script>
2016-04-17 18:11:05 +02:00
<script id="error-template" type="text/x-handlebars-template">
<div class="alert alert-danger alert-dismissible" role="alert">
2016-04-17 18:24:58 +02:00
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
aria-hidden="true">&times;</span></button>
2016-04-17 18:11:05 +02:00
<strong>{{err_title}}</strong> {{{err_content}}}.
</div>
</script>
2016-04-17 11:21:26 +02:00
<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.1/handlebars.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
2016-04-17 18:24:58 +02:00
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
crossorigin="anonymous"></script>
2016-04-17 17:38:58 +02:00
<script src="./script.js"></script>
2016-04-17 11:21:26 +02:00
</body>
</html>