-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
203 lines (171 loc) · 6.17 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Santi & Ceci">
<meta name="description" content="Music Player with Playlist">
<title>Music Player</title>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr.min.js"></script>
<script src="js/vendor/jquery.min.js"></script>
<script src="js/vendor/jquery.nicescroll.min.js"></script>
<script src="js/vendor/swfobject.js"></script>
<script src="js/vendor/audio-player.js"></script>
<script src="js/player.js"></script>
<script>
swfobject.embedSWF(
"player.swf",
"player_fallback",
"200",
"20",
"9.0.0",
"",
{"mp3":"Metallica_Nothing_else_Matters.mp3"},
{"bgcolor":"#085c68"});
AudioPlayer.setup("js/vendor/player.swf", {
width: 290,
initialvolume: 100,
transparentpagebg: "yes",
left: "000000",
lefticon: "FFFFFF"
});
</script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<div class="header-container">
<header class="wrapper clearfix">
<h1 class="title">Html5 Music Player</h1>
<nav>
<ul>
<li><a href="#">Add a Song <br>(Pending)</a></li>
<li><a href="#">Config <br> (Pending)</a></li>
</ul>
</nav>
</header>
</div>
<div class="main-container">
<div class="main wrapper clearfix">
<article>
<header>
<h1>MP3 Player</h1>
</header>
<section>
<p>Music player done only with html5, css3, and jquery.</p>
<p id="player_fallback"></p>
<div id="divContenedor">
<div id="divReproductor" class="clearfix">
<div id="divInfo">
<div id="divLogo">
<img src="img/logo.jpg" align="left" width="144px">
</div>
<div id="divInfoCancion">
<label id="trackName"><strong>Track: </strong><span id="CurrentTrackName">-</span></label>
<label id="trackLenght"><strong>Length: </strong><span>-</span></label>
<label id="elapsedTime"><strong>Elapsed: </strong><span>-</span></label>
</div>
<div style="clear: both"></div>
</div>
<div id="divControles">
<input type="button" id="Play-button" title="Play">
<input type="button" id="Pause-button" title="Pause/Continue">
<input type="button" id="Previous-button" title="Back">
<input type="button" id="Next-button" title="Next">
<input type="button" id="UpVolume-button" title="Turn up volume">
<input type="button" id="DownVolume-button" title="Turn down volume">
<input type="button" id="Mute-button" title="Put/Remove silence">
<input type="button" id="repeatList-button" title="Repeat playlist">
</div>
<div id="divProgreso">
<div id="divBarra" ></div>
</div>
<div id="divLista">
<ol id="playList">
</ol>
</div>
<div id="divCreditos">
<h1>Html5 Music Player </h1>
</div>
</div>
</div>
</section>
</article>
<aside>
<h3>Search in Repo</h3>
<input id="searchBox" placeholder="Search..."></input>
<section class="musicFile-container">
<ul>
<li>Song 4</li>
<li>Song 3</li>
</ul>
<comment>This section is not available</comment>
</section>
</aside>
</div> <!-- #main -->
</div> <!-- #main-container -->
<div class="footer-container">
<footer class="wrapper">
<h3>The html5Player Organization project</h3>
</footer>
</div>
<script type="text/javascript">
$("#divLista").niceScroll({ autohidemode: false,cursorwidth: 8, background: "#DCDCDC", cursorcolor: "#7F7F7F", railalign: "center", zindex: 99999 });
function UpdateLoadSongsOnUI(listArray){
for(var i=0;i<listArray.length;i++){
$("#divLista").children().first().append($("<li></li>", {rel:listArray[i]}).append($("<strong>"+listArray[i]+"</strong>")));
}
}
player.initialize();
player.addToPlaylist("music/Metallica_Nothing_else_Matters.mp3");
player.addToPlaylist("music/Sample.mp3");
player.addToPlaylist("music/Kalimba.mp3");
player.addToPlaylist("music/SleepAway.mp3");
player.addToPlaylist("music/Notify.mp3");
UpdateLoadSongsOnUI(player.playlistSources);
$("#Play-button").click(function(){
player.Play();
});
$("#Next-button").click(function(){
player.Next();
});
$("#Previous-button").click(function(){
player.Prev();
});
$('#Mute-button').click(function(){
player.Mute();
$(this).toggleClass('clsSeleccionado');
});
$("#UpVolume-button").click(function(){
player.VolumeUp();
});
$("#DownVolume-button").click(function(){
player.VolumeDown();
});
$("#Pause-button").click(function(){
player.Pause();
});
$("#repeatList-button").click(function(){
player.repeatPlayList = !player.repeatPlayList;
$(this).toggleClass('clsSeleccionado');
});
$('input[type="button"]').hover(function(){
$(this).stop(true.true).animate({
opacity: .5
});
},function(){
$(this).stop(true,true).animate({
opacity: 1
});
});
</script>
</body>
</html>