This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
popout.php
201 lines (170 loc) · 9.54 KB
/
popout.php
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
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- MP3-jPlayer 1.8.8 --->
<script type='text/javascript' src='js/jquery.js'></script>
<script type='text/javascript' src='js/ui.core.js'></script>
<script type='text/javascript' src='js/ui.widget.js'></script>
<script type='text/javascript' src='js/ui.mouse.js'></script>
<script type='text/javascript' src='js/ui.slider.js'></script>
<script type='text/javascript' src='js/jquery.jplayer.min2-6-0.js'></script>
<script type='text/javascript' src='js/jquery.ui.touch-punch.min.js'></script>
<script type='text/javascript' src='js/mp3-jplayer-1.8.8.js'></script>
<script type='text/javascript'>
function loadcss(filename) {
var fileref = document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", filename);
if (typeof fileref !== "undefined") {
document.getElementsByTagName("head")[0].appendChild(fileref);
}
}
if( window.opener && !window.opener.closed && window.opener.MP3_JPLAYER && window.opener.MP3_JPLAYER.launched_ID !== null ) {
loadcss(window.opener.MP3_JPLAYER.vars.stylesheet_url);
MP3_JPLAYER.vars.play_f = false; // always set false!
MP3_JPLAYER.plugin_path = window.opener.MP3_JPLAYER.plugin_path;
MP3_JPLAYER.launched_ID = window.opener.MP3_JPLAYER.launched_ID;
MP3_JPLAYER.vars.dload_text = window.opener.MP3_JPLAYER.vars.dload_text;
MP3_JPLAYER.vars.force_dload = window.opener.MP3_JPLAYER.vars.force_dload;
MP3_JPLAYER.vars.dl_remote_path = window.opener.MP3_JPLAYER.vars.dl_remote_path;
var pl_info_wo = window.opener.MP3_JPLAYER.pl_info; //copy
var auto_play = ( window.opener.MP3_JPLAYER.was_playing !== 'undefined' && window.opener.MP3_JPLAYER.was_playing === true ) ? true : pl_info_wo[MP3_JPLAYER.launched_ID].autoplay;
window.opener.MP3_JPLAYER.was_playing = false;
MP3_JPLAYER.pl_info = [{
list: pl_info_wo[MP3_JPLAYER.launched_ID].list,
tr: pl_info_wo[MP3_JPLAYER.launched_ID].tr,
type: 'MI',
lstate: pl_info_wo[MP3_JPLAYER.launched_ID].lstate,
loop: pl_info_wo[MP3_JPLAYER.launched_ID].loop,
play_txt: pl_info_wo[MP3_JPLAYER.launched_ID].play_txt,
pause_txt: pl_info_wo[MP3_JPLAYER.launched_ID].pause_txt,
pp_title: pl_info_wo[MP3_JPLAYER.launched_ID].pp_title,
//autoplay: pl_info_wo[MP3_JPLAYER.launched_ID].autoplay,
autoplay: auto_play,
download: pl_info_wo[MP3_JPLAYER.launched_ID].download,
vol: pl_info_wo[MP3_JPLAYER.launched_ID].vol,
height: pl_info_wo[MP3_JPLAYER.launched_ID].height,
cssclass: pl_info_wo[MP3_JPLAYER.launched_ID].cssclass
}];
MP3_JPLAYER.vars.pp_playerheight = window.opener.MP3_JPLAYER.vars.pp_playerheight;
MP3_JPLAYER.vars.pp_windowheight = window.opener.MP3_JPLAYER.vars.pp_windowheight;
MP3_JPLAYER.togglelist = function (j) {
var winwidth = jQuery(window).width();
if (this.pl_info[j].lstate === true) {
jQuery(this.eID.plwrap + j).fadeOut(300);
jQuery(this.eID.toglist + j).text('SHOW');
window.resizeTo( winwidth+24 , this.vars.pp_playerheight );
this.pl_info[j].lstate = false;
} else if (this.pl_info[j].lstate === false) {
jQuery(this.eID.plwrap + j).fadeIn("slow");
jQuery(this.eID.toglist + j).text('HIDE');
window.resizeTo( winwidth+24 , this.vars.pp_windowheight );
this.pl_info[j].lstate = true;
}
};
}
jQuery(document).ready(function () {
if( window.opener && !window.opener.closed && window.opener.MP3_JPLAYER && window.opener.MP3_JPLAYER.launched_ID !== null ) {
MP3_JPLAYER.init();
} else {
jQuery("body").empty();
jQuery("body").css("background", '#222');
jQuery("*").css("color", '#ddd');
jQuery("body").append("<h4 style='margin-left:10px; font:normal normal 700 14px arial,sans-serif;'>Please launch a playlist from the site to use me, I've been refreshed and can't find my parent window.</h4>");
return;
}
});
</script>
<style type="text/css"> div.wrap-MI { min-width:350px; } </style>
</head>
<body style="padding:5px 4px 0px 4px; margin:0px;">
<div style="position:relative;overflow:hidden;">
<div id="mp3_jplayer_1_8" style="left:-999em;"></div>
</div>
<div class="wrap-MI" style="position:relative; padding:0; margin:0px auto 0px auto; width:100%;">
<div class="jp-innerwrap">
<div class="innerx"></div>
<div class="innerleft"></div>
<div class="innerright"></div>
<div class="innertab"></div>
<div class="jp-interface">
<div class="MI-image" id="MI_image_0"></div>
<div id="T_mp3j_0" class="player-track-title" style="padding-left:16px;"></div>
<div class="MIsliderVolume" id="vol_mp3j_0"></div>
<div class="bars_holder">
<div class="loadMI_mp3j" id="load_mp3j_0"></div>
<div class="poscolMI_mp3j" id="poscol_mp3j_0"></div>
<div class="posbarMI_mp3j" id="posbar_mp3j_0"></div>
</div>
<div id="P-Time-MI_0" class="jp-play-time"></div>
<div id="T-Time-MI_0" class="jp-total-time"></div>
<div id="statusMI_0" class="statusMI"></div>
<div class="transport-MI"><div class="buttons_mp3j" id="playpause_mp3j_0">Play Pause</div><div class="stop_mp3j" id="stop_mp3j_0">Stop</div><div class="Next_mp3j" id="Next_mp3j_0">Next»</div><div class="Prev_mp3j" id="Prev_mp3j_0">«Prev</div></div>
<div id="download_mp3j_0" class="dloadmp3-MI" style="visibility: visible;"></div>
<div class="playlist-toggle-MI" id="playlist-toggle_0"></div>
<div id="mp3j_finfo_0" class="mp3j-finfo" style="display:none;">
<div class="mp3j-finfo-sleeve">
<div id="mp3j_finfo_gif_0" class="mp3j-finfo-gif"></div>
<div id="mp3j_finfo_txt_0" class="mp3j-finfo-txt"></div>
<div class="mp3j-finfo-close" id="mp3j_finfo_close_0">X</div>
</div>
</div>
<div id="mp3j_dlf_0" class="mp3j-dlframe" style="display:none;"></div>
</div>
</div>
<div class="listwrap_mp3j" id="L_mp3j_0">
<div class="playlist-colour"></div>
<div class="playlist-wrap-MI"><ul class="UL-MI_mp3j" id="UL_mp3j_0"><li></li></ul></div>
</div>
</div>
<script type="text/javascript">
if(window.opener && !window.opener.closed) {
if ( MP3_JPLAYER.pl_info[0].height !== false ) {
jQuery("div.jp-interface").css( "height", MP3_JPLAYER.pl_info[0].height+"px" );
}
if ( !MP3_JPLAYER.pl_info[0].download ) {
jQuery("div.dloadmp3-MI").hide();
}
if ( MP3_JPLAYER.pl_info[0].list.length < 2 ) {
jQuery("#Prev_mp3j_0").hide();
jQuery("#Next_mp3j_0").hide();
jQuery("#playlist-toggle_0").hide();
}
if ( MP3_JPLAYER.pl_info[0].lstate ) {
jQuery("#playlist-toggle_0").append("HIDE PLAYLIST");
} else {
jQuery("#playlist-toggle_0").append("SHOW PLAYLIST");
}
jQuery("div.wrap-MI").addClass(MP3_JPLAYER.pl_info[0].cssclass);
if ( window.opener.MP3_JPLAYER.popout_css !== "undefined" ) {
MP3_JPLAYER.popout_css = window.opener.MP3_JPLAYER.popout_css;
jQuery("body").css( "background" , MP3_JPLAYER.popout_css.body_col + " url('" + MP3_JPLAYER.popout_css.body_img + "')");
jQuery("div.player-track-title, div.player-artist, div.jp-play-time, div.jp-total-time, div.statusMI").css( "color" , MP3_JPLAYER.popout_css.screen_text );
jQuery("ul.UL-MI_mp3j").css( "background" , MP3_JPLAYER.popout_css.list_img );
jQuery("div.playlist-colour").css({ "background" : MP3_JPLAYER.popout_css.list_col, opacity : MP3_JPLAYER.popout_css.list_opac });
jQuery("div.innertab").css({ "background" : MP3_JPLAYER.popout_css.screen_bg, opacity : MP3_JPLAYER.popout_css.screen_opac });
jQuery("div.loadMI_mp3j").css({ "background" : MP3_JPLAYER.popout_css.loader_col, opacity : MP3_JPLAYER.popout_css.loader_opac });
jQuery("div.poscolMI_mp3j").css({ "background" : MP3_JPLAYER.popout_css.posbar_col, opacity : MP3_JPLAYER.popout_css.posbar_opac });
jQuery('<style type="text/css"> .MI-image a:hover img { background:' + MP3_JPLAYER.popout_css.list_current_text + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> span.mp3-tint { background:' + MP3_JPLAYER.popout_css.indi_tint + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> ul.UL-MI_mp3j li { background:' + MP3_JPLAYER.popout_css.list_divider + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> ul.UL-MI_mp3j li a { color:' + MP3_JPLAYER.popout_css.list_text + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> ul.UL-MI_mp3j li a:hover { color:' + MP3_JPLAYER.popout_css.list_hover_text + '; background:' + MP3_JPLAYER.popout_css.list_hover_bg + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> ul.UL-MI_mp3j li a.mp3j_A_current { color:' + MP3_JPLAYER.popout_css.list_current_text + '; background:' + MP3_JPLAYER.popout_css.list_current_bg + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> div.MIsliderVolume .ui-widget-header { background:' + MP3_JPLAYER.popout_css.vol_slider_bg + '; } </style>').appendTo('head');
jQuery('<style type="text/css"> div.transport-MI div:hover { background-color:' + MP3_JPLAYER.popout_css.list_current_text + '; } </style>').appendTo('head');
jQuery("div.transport-MI div").css("color", MP3_JPLAYER.popout_css.list_hover_text );
jQuery("div.transport-MI div").mouseover(function () {
jQuery(this).css( "color" , MP3_JPLAYER.popout_css.list_current_text );
});
jQuery("div.transport-MI div").mouseout(function () {
jQuery(this).css("color", MP3_JPLAYER.popout_css.list_hover_text );
});
}
jQuery("title").text(MP3_JPLAYER.pl_info[0].pp_title);
}
</script>
</body>
</html>