-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
95 lines (79 loc) · 2.91 KB
/
popup.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Fullwidth Audio Player</title>
<!-- Style sheets -->
<link rel="stylesheet" type="text/css" href="css/jquery.fullwidthAudioPlayer.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" />
<style type="text/css">
/* RESET */
html, body, div, span, applet, object, iframe, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* SET HERE YOUR BACKGROUND COLOR OF THE POPUP WINDOW */
body {
background-color: #fff;
}
</style>
<!-- Include js files -->
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery-ui.js" type="text/javascript"></script>
<script src="js/soundmanager2-nodebug-jsmin.js" type="text/javascript"></script>
<script src="http://connect.soundcloud.com/sdk.js"></script>
<script src="js/amplify.min.js"></script>
<script src="js/jquery.fullwidthAudioPlayer.min.js" type="text/javascript"></script>
<script type="text/javascript">
//DO NOT CHANGE ANYTHING FROM THIS JAVASCRIPT CODE
soundManager.url = 'swf/';
soundManager.flashVersion = 9;
soundManager.useHTML5Audio = true;
soundManager.debugMode = false;
//let target window know that popout window is openend
function notifyOpener() {
//close popout when target window gets closed, comment the next line if you dont want that
if(!self.opener) {
self.opener.fapReady = false;
self.close();
}
if(self.opener || !self.opener.fapPopupWin) self.opener.fapPopupWin = self;
}
setInterval( notifyOpener, 300 );
self.focus();
//functions that will be called from the target window
function initPlayer(opts, html) {
opts.wrapperPosition = 'bottom';
$('#fap-popup').html(html).fullwidthAudioPlayer(opts);
}
function addTrack(trackUrl,title,meta,cover,linkUrl, playIt) {
$.fullwidthAudioPlayer.addTrack(trackUrl, title, meta, cover, linkUrl, playIt);
}
jQuery(document).ready(function(){
$('#fap-popup').bind('onFapReady', function(evt, trackData) {
self.opener.fapReady = true;
});
});
</script>
</head>
<body>
<!-- Fancy Music Player Container -->
<div id="fap-popup"></div>
</body>
</html>