-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathmusic.html
More file actions
114 lines (108 loc) · 4.1 KB
/
music.html
File metadata and controls
114 lines (108 loc) · 4.1 KB
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
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Player.js: Music Demo</title>
<meta name="description" content="Create a simple music player across a number of different services.">
<link href='http://fonts.googleapis.com/css?family=Cantarell|Fjalla+One' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="css/foundation.min.css" />
<link rel="stylesheet" href="css/playerjs.css" />
<script src="scripts/libs/modernizr.js"></script>
</head>
<body class="music">
<div class="contain-to-grid sticky">
<nav class="top-bar" data-topbar data-options="sticky_on: large">
<ul class="title-area">
<li class="name">
<h1><a href="/">Player.js</a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li ><a href="https://github.com/embedly/player.js"><i class="fa fa-github"></i> Code</a></li>
<li class="has-dropdown">
<a href="#">Demos</a>
<ul class="dropdown">
<li><a href="/article.html">Article</a></li>
<li><a href="/progress.html">Progress</a></li>
<li><a href="/captions.html"> Captions</a></li>
<li><a href="/scroll.html">Scroll</a></li>
<li><a href="/resume.html">Resume</a></li>
<li><a href="/music.html">Music</a></li>
<li><a href="/soundboard.html">Soundboard</a></li>
</ul>
</li>
</ul>
</section>
</nav>
</div>
<div class="row">
<div class="large-4 columns">
<h1>Music</h1>
<p>
Music is hosted on a number of different sites, but to create a playlist we need to be able to interact with the media players for each.
</p>
<p>
Player.js allows us to do this.
</p>
<p>
<a class="button" target="_blank" href="https://github.com/embedly/player.js/blob/gh-pages/scripts/music.js">Code</a>
<a class="button" target="_blank" href="https://github.com/embedly/player.js/blob/gh-pages/music.html">HTML</a>
</p>
</div>
<div class="large-8 columns content">
<div class="row">
<div class="large-10 large-centered columns">
<div class="controls">
<div class="row">
<div class="large-1 medium-1 small-1 columns">
<a class="play paused">
<i class="fa fa-play"></i>
<i class="fa fa-pause"></i>
</a>
</div>
<div class="large-8 medium-8 small-8 columns">
<div class="progress">
<span class="meter"></span>
</div>
</div>
<div class="large-3 medium-3 small-3 columns">
<a class="volume">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a class="loop">
<i class="fa fa-repeat"></i>
</a>
<a class="previous">
<i class="fa fa-step-backward"></i>
</a>
<a class="next">
<i class="fa fa-step-forward"></i>
</a>
</div>
</div>
</div>
</div>
</div>
<ul id="tracks"></ul>
</div>
</div>
<script src="scripts/libs/jquery.js"></script>
<script src="scripts/libs/foundation.min.js"></script>
<script src="http://cdn.embed.ly/jquery.embedly-3.1.1.min.js"></script>
<script type="text/javascript" src="http://cdn.embed.ly/player-0.1.0.min.js"></script>
<script src="scripts/common.js"></script>
<script src="scripts/music.js"></script>
<script>
$.embedly.defaults.key = '3ee528c9eb4b4908b268ce1ace120c92';
$(document).foundation();
</script>
</body>
</html>