forked from jgthms/juketube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (62 loc) · 2.61 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
<!doctype html>
<html data-ng-app="JukeTubeApp">
<head>
<meta charset="utf-8">
<title>JukeTube</title>
<meta name="author" content="J. Thomas">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="icon" href="/favicon.ico">
</head>
<body data-ng-controller="VideosController">
<header>
<h1>Juke<strong>Tube</strong></h1>
<form id="search" data-ng-submit="search()">
<input id="query" name="q" type="text" placeholder="Search for a YouTube video" data-ng-model="query">
<input id="submit" type="image" src="search.png" alt="Search">
</form>
<nav>
<a id="play">{{ youtube.state }}</a>
<a id="pause">Pause</a>
</nav>
</header>
<div id="results">
<div class="video" data-ng-repeat="video in results" data-ng-click="queue(video.id, video.title)">
<img class="video-image" data-ng-src="{{ video.thumbnail }}">
<p class="video-title">{{ video.title }}</p>
<p class="video-author">{{ video.author }}</p>
<p class="video-description">{{ video.description }}</p>
</div>
</div>
<div id="player">
<div id="placeholder"></div>
</div>
<div id="playlist">
<p id="current">{{ youtube.videoTitle }}</p>
<ol id="upcoming" data-ng-show="playlist">
<li data-ng-repeat="video in upcoming">
<p class="item-delete" data-ng-click="delete('upcoming', video.id)">delete</p>
<p class="item-title" data-ng-click="launch(video.id, video.title)">{{video.title}}</p>
</li>
</ol>
<ol id="history" data-ng-hide="playlist">
<li data-ng-repeat="video in history">
<p class="item-delete" data-ng-click="delete('history', video.id)">delete</p>
<p class="item-title" data-ng-click="queue(video.id, video.title)">{{video.title}}</p>
</li>
</ol>
<p id="tabs">
<a ng-class="{on:playlist}" data-ng-click="tabulate(true)">Upcoming</a>
<a ng-class="{on:!playlist}" data-ng-click="tabulate(false)">History</a>
</p>
</div>
<footer>
<em>Concept & Design: <a href="http://jgthms.com">J. Thomas</a></em>
Built with <a href="http://angularjs.org/">AngularJS</a>. Source code available on <a href="https://github.com/jgthms/juketube">GitHub</a>.
</footer>
<script src="angular.min.js"></script>
<script src="angular-local-storage.js"></script>
<script src="app.js"></script>
</body>
</html>