Plugin Directory

Changeset 1676858


Ignore:
Timestamp:
06/12/2017 04:38:21 PM (9 years ago)
Author:
ericzane
Message:

3.0.3

Location:
floating-window-music-player/trunk
Files:
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • floating-window-music-player/trunk/floating-window-music-player.php

    r1674669 r1676858  
    33 * Plugin Name: Floating Window Music-Player
    44 * Plugin URI:  http://eric.cn.com/?p=1187
    5  * Text Domain: Fwm_Player
     5 * Text Domain: floating-window-music-player
    66 * Domain Path: /languages
    7  * Version:     3.0.2
     7 * Version:     3.0.3
    88 * Author:      Eric
    99 * Author URI:  http://eric.cn.com/
     
    1313define('Fwm_Player_URL', plugins_url('', __FILE__));
    1414define('Fwm_Player_PATH', dirname(__FILE__));
    15 define('Fwm_Player_VER', '3.0.2');
     15define('Fwm_Player_VER', '3.0.3');
     16define('FwmTD', 'floating-window-music-player');
    1617require Fwm_Player_PATH . '/inc/option.php';
    1718require Fwm_Player_PATH . '/inc/template.php';
     
    2728}
    2829add_action( 'init', 'myplugin_load_textdomain' );
    29 function myplugin_load_textdomain() { load_plugin_textdomain( 'Fwm_Player', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); }
     30function myplugin_load_textdomain() { load_plugin_textdomain( FwmTD, false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); }
    3031function Fwm_addPluginLinks($links, $file) {
    31     $file == plugin_basename(__FILE__) && array_unshift($links, '<a href="options-general.php?page=Fwm_Player_options">'.__('Setting','Fwm_Player').'</a>');
     32    $file == plugin_basename(__FILE__) && array_unshift($links, '<a href="options-general.php?page=Fwm_Player_options">'.__('Setting',FwmTD).'</a>');
    3233    return $links;
    3334}
  • floating-window-music-player/trunk/inc/option.php

    r1674669 r1676858  
    5454    deltee_option('Fwm_player_css');
    5555}
    56 function Fwm_Player_menu_page() { add_menu_page(__('Music Player', 'Fwm_Player'), __('Music Player', 'Fwm_Player'), 'administrator', 'Fwm_Player_options', 'Fwm_Player_options', plugins_url('floating-window-music-player/inc/icon.gif'), 99);}
     56function Fwm_Player_menu_page() { add_menu_page(__('Music Player', FwmTD), __('Music Player', FwmTD), 'administrator', 'Fwm_Player_options', 'Fwm_Player_options', plugins_url(FwmTD.'/inc/icon.gif'), 99);}
    5757//设置页面
    5858function Fwm_Player_options() { ?>
    5959    <link rel='stylesheet' href='//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css?ver=4.7.0' type='text/css' />
    6060    <div class="meta-box-sortabless">
    61       <h2><a href="http://eric.cn.com/?p=1187" target="_blank"><?php _e('Floating Window Music-Player', 'Fwm_Player'); echo '</a> v'.Fwm_Player_VER;?></h2>
     61      <h2><a href="http://eric.cn.com/?p=1187" target="_blank"><?php _e('Floating Window Music-Player', FwmTD); echo '</a> v'.Fwm_Player_VER;?></h2>
    6262      <?php current_user_can( 'manage_options' ) && update_Fwm_Player_options();?>
    6363      <form method="post">
    6464      <!--音乐网站代码设置-->
    6565      <div class="postbox">
    66         <h3 class="hndle"><?php _e('Music site code settings', 'Fwm_Player')?></h3>
    67         <div class="inside">
    68         <table><tbody><tr><td><a href="http://music.163.com/" target="_blank" title="<?php _e('Netease Music', 'Fwm_Player')?>"/><img src="//s1.music.126.net/music.ico" width="18"></a></td><td><input type="text" name="Fwm_player_wyid" value="<?php echo get_option('Fwm_player_wyid', '281892685');?>" class="regular-text"/></td><td><a title="<?php _e('Netease cloud music user ID, such as: 281892685, fill in NO to close', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    69         <tr><td><a href="http://music.baidu.com/" target="_blank" title="<?php _e('Baidu Music', 'Fwm_Player')?>"/><img src="//www.baidu.com/favicon.ico" width="18"></a></td><td><select name="Fwm_player_bdid">
     66        <h3 class="hndle"><?php _e('Music site code settings', FwmTD)?></h3>
     67        <div class="inside">
     68        <table><tbody><tr><td><a href="//music.163.com/" target="_blank" title="<?php _e('Netease Music', FwmTD)?>"/><img src="//s1.music.126.net/music.ico" width="18"></a></td><td><input type="text" name="Fwm_player_wyid" value="<?php echo get_option('Fwm_player_wyid', '281892685');?>" class="regular-text"/></td><td><a title="<?php _e('Netease cloud music user ID, such as: 281892685, fill in NO to close', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     69        <tr><td><a href="//music.baidu.com/" target="_blank" title="<?php _e('Baidu Music', FwmTD)?>"/><img src="//www.baidu.com/favicon.ico" width="18"></a></td><td><select name="Fwm_player_bdid">
    7070        <option selected value="<?php echo get_option('Fwm_player_bdid');?>"><?php echo get_option('Fwm_player_bdid','20'); ?></option>
    71         <option value="NO"/>NO(<?php _e('Close', 'Fwm_Player')?>)</option>
    72         <?php for ($i = 5;$i <= 50;$i += 5) {echo '<option value="' . $i . '"/>' . $i . '</option>';}?></select></td><td><a title="<?php _e('The number of songs on each list', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    73         <tr><td><a href="http://y.qq.com/" target="_blank" title="<?php _e('QQ Music', 'Fwm_Player')?>"/><img src="//y.qq.com/favicon.ico" width="18"></a></td><td><textarea rows="2" cols="40" name="Fwm_player_qqid"><?php echo get_option('Fwm_player_qqid', '王菲*10|周杰伦*10|华晨宇*10') ?></textarea></td><td><a title="<?php _e('Detailed settings see below, fill in NO to close', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    74         <tr><td><a href="http://www.xiami.com/" target="_blank" title="<?php _e('Xiami Music', 'Fwm_Player')?>"/><img src="//g.alicdn.com/de/music-static/favicon.ico" width="18"></a></td><td><textarea rows="4" cols="40" name="Fwm_player_xmid"><?php echo get_option('Fwm_player_xmid', '陈慧娴PRISCILLA-ISM演唱会*2100370674*1|梁静茹*1836*2|一人一首粤语*749651*3') ?></textarea></td><td><a title="<?php _e('Detailed settings see below, fill in NO to close', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr></tbody></table>
    75         <?php _e('Completion Instructions', 'Fwm_Player')?>:<br>
    76         <?php _e('Support Netease, QQ, Baidu and Xiami music playback, but at the same time can only play one of them.', 'Fwm_Player')?><br>
    77         <b><?php _e('QQ music code settings :(can with or without end character of "|")', 'Fwm_Player')?></b><br>
    78         <?php _e('Each message format: Name * Number of Songs, multiple messages with delimiters "|" interval.', 'Fwm_Player')?><br>
    79         <?php _e('Complete example', 'Fwm_Player')?>:王菲*10|周杰伦*10|华晨宇*10<br>
    80         <b><?php _e('Xiami music code settings :( recommend getting information other than name with the tool below, can with or without end character of "|")', 'Fwm_Player')?></b><br>
    81         <?php _e('Each message format: Name * Code * Categories, multiple messages with delimiters "|" interval.', 'Fwm_Player')?><br>
    82         <?php _e('Categories as follows: album => 1; artists => 2; Collection => 3', 'Fwm_Player')?><br>
    83         <?php _e('Complete example', 'Fwm_Player')?>:陈慧娴PRISCILLA-ISM演唱会*2100370674*1|梁静茹*1836*2|一人一首粤语*749651*3
     71        <option value="NO"/>NO(<?php _e('Close', FwmTD)?>)</option>
     72        <?php for ($i = 5;$i <= 50;$i += 5) {echo '<option value="' . $i . '"/>' . $i . '</option>';}?></select></td><td><a title="<?php _e('The number of songs on each list', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     73        <tr><td><a href="//y.qq.com/" target="_blank" title="<?php _e('QQ Music', FwmTD)?>"/><img src="//y.qq.com/favicon.ico" width="18"></a></td><td><textarea rows="2" cols="40" name="Fwm_player_qqid"><?php echo get_option('Fwm_player_qqid', '王菲*10|周杰伦*10|华晨宇*10') ?></textarea></td><td><a title="<?php _e('Detailed settings see below, fill in NO to close', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     74        <tr><td><a href="//www.xiami.com/" target="_blank" title="<?php _e('Xiami Music', FwmTD)?>"/><img src="//g.alicdn.com/de/music-static/favicon.ico" width="18"></a></td><td><textarea rows="4" cols="40" name="Fwm_player_xmid"><?php echo get_option('Fwm_player_xmid', '陈慧娴PRISCILLA-ISM演唱会*2100370674*1|梁静茹*1836*2|一人一首粤语*749651*3') ?></textarea></td><td><a title="<?php _e('Detailed settings see below, fill in NO to close', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr></tbody></table>
     75        <?php _e('Completion Instructions', FwmTD)?>:<br>
     76        <?php _e('Support Netease, QQ, Baidu and Xiami music playback, but at the same time can only play one of them.', FwmTD)?><br>
     77        <b><?php _e('QQ music code settings :(can with or without end character of "|")', FwmTD)?></b><br>
     78        <?php _e('Each message format: Name * Number of Songs, multiple messages with delimiters "|" interval.', FwmTD)?><br>
     79        <?php _e('Complete example', FwmTD)?>:王菲*10|周杰伦*10|华晨宇*10<br>
     80        <b><?php _e('Xiami music code settings :( recommend getting information other than name with the tool below, can with or without end character of "|")', FwmTD)?></b><br>
     81        <?php _e('Each message format: Name * Code * Categories, multiple messages with delimiters "|" interval.', FwmTD)?><br>
     82        <?php _e('Categories as follows: album => 1; artists => 2; Collection => 3', FwmTD)?><br>
     83        <?php _e('Complete example', FwmTD)?>:陈慧娴PRISCILLA-ISM演唱会*2100370674*1|梁静茹*1836*2|一人一首粤语*749651*3
    8484        <div class="Fwm-player-input">
    85           <input type="text" id="mp3_xiami" class="regular-text" placeholder="<?php _e('Full URL of Xiami Music (Album / Artist / Collection)', 'Fwm_Player')?>">
    86           <button id="Fwm_player_get_xiami_id" onclick="xiami()" type="button"  class="button-primary"><?php _e('Get information other than name', 'Fwm_Player')?></button>
     85          <input type="text" id="mp3_xiami" class="regular-text" placeholder="<?php _e('Full URL of Xiami Music (Album / Artist / Collection)', FwmTD)?>">
     86          <button id="Fwm_player_get_xiami_id" onclick="xiami()" type="button"  class="button-primary"><?php _e('Get information other than name', FwmTD)?></button>
    8787      </div></div></div>
    8888      <!--播放器设置-->
    8989      <div class="postbox">
    90         <h3 class="hndle"><?php _e('Player settings', 'Fwm_Player')?></h3>
    91         <div class="inside">
    92         <table><tbody><tr><td><b><?php _e('Name of playlist', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_name" value="<?php echo get_option('Fwm_player_name', get_bloginfo('name'));?>" class="regular-text" /></td><td><a title="<?php _e('Name of playlist', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    93         <tr><td><b><?php _e('Prompts content', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_tips" value="<?php echo get_option('Fwm_player_tips', __('Welcome to ', 'Fwm_Player').get_bloginfo('name'));?>" class="regular-text" /></td><td><a title="<?php _e('Welcome  prompt', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    94         <tr><td><b><?php _e('Time of Auto-hide', 'Fwm_Player')?>:</b></td><td><select name="Fwm_player_st">
     90        <h3 class="hndle"><?php _e('Player settings', FwmTD)?></h3>
     91        <div class="inside">
     92        <table><tbody><tr><td><b><?php _e('Name of playlist', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_name" value="<?php echo get_option('Fwm_player_name', get_bloginfo('name'));?>" class="regular-text" /></td><td><a title="<?php _e('Name of playlist', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     93        <tr><td><b><?php _e('Prompts content', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_tips" value="<?php echo get_option('Fwm_player_tips', __('Welcome to ', FwmTD).get_bloginfo('name'));?>" class="regular-text" /></td><td><a title="<?php _e('Welcome  prompt', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     94        <tr><td><b><?php _e('Time of Auto-hide', FwmTD)?>:</b></td><td><select name="Fwm_player_st">
    9595        <option selected value="<?php echo get_option('Fwm_player_st');?>"><?php echo get_option('Fwm_player_st','10'); ?></option>
    96         <option value="NO"/>NO(<?php _e('Close', 'Fwm_Player')?>)</option><?php for ($i = 1;$i <= 10;$i++) {echo '<option value="' . $i . '"/>' . $i . '</option>';}
    97         for ($i = 15;$i <= 30;$i += 5) {echo '<option value="' . $i . '"/>' . $i . '</option>';}?></select></td><td><a title="<?php _e('Time of Music-Player auto-hide, seconds', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    98         <tr><td><b><?php _e('Load icons', 'Fwm_Player')?>:</b></td><td>
    99         <label><input type="radio"" name="Fwm_player_style" value="CUS" <?php if(get_option('Fwm_player_style') == "CUS") echo "checked"?>/><?php _e('Customize ', 'Fwm_Player')?></label>
    100         <label><input type="text" name="Fwm_player_style_custom" placeholder="<?php _e('Enter the full URL', 'Fwm_Player')?>" class="button-prim3ary" value="<?php echo get_option('Fwm_player_style_custom', '')?>"></label>
    101         <label><input type="radio"" name="Fwm_player_style" value="YES" <?php if(get_option('Fwm_player_style') == "YES") echo "checked"?>/><?php _e('Open', 'Fwm_Player')?>&#12288;</label>
    102         <label><input type="radio"" name="Fwm_player_style" value="NO" <?php if(get_option('Fwm_player_style') != "YES" && get_option('Fwm_player_jquery') != "CUS" ) echo "checked"?>/><?php _e('Close', 'Fwm_Player')?></td><td><a title="Font Awesome 4 Menus<?php _e(', if the plug-in installed choose close', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></td></tr>
    103         <tr><td><b><?php _e('Load Base Lib', 'Fwm_Player')?>:</b></td><td>
    104         <label><input type="radio"" name="Fwm_player_jquery" value="CUS" <?php if(get_option('Fwm_player_jquery') == "CUS") echo "checked"?>/><?php _e('Customize ', 'Fwm_Player')?></label>
    105         <label><input type="text" name="Fwm_player_jquery_custom" placeholder="<?php _e('Enter the full URL', 'Fwm_Player')?>" class="button-prim3ary" value="<?php echo get_option('Fwm_player_jquery_custom', '')?>"></label>
    106         <label><input type="radio"" name="Fwm_player_jquery" value="YES" <?php if(get_option('Fwm_player_jquery') != "NO" && get_option('Fwm_player_jquery') != "LOW" && get_option('Fwm_player_jquery') != "CUS") echo "checked"?>/><?php _e('High version', 'Fwm_Player')?><a title="<?php _e('(IE9 above)', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>
    107         <label><input type="radio"" name="Fwm_player_jquery" value="LOW" <?php if(get_option('Fwm_player_jquery') == "LOW") echo "checked"?>/><?php _e('Low version', 'Fwm_Player')?><a title="(IE6/7/8)"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>
    108         <label><input type="radio"" name="Fwm_player_jquery" value="NO" <?php if(get_option('Fwm_player_jquery') == "NO") echo "checked"?>/><?php _e('Close', 'Fwm_Player')?></td><td><a title="<?php _e('JQuery Base Lib', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></td></tr></tbody></table>
    109         <p><label><input type="checkbox"" name="Fwm_player_auto" value="YES" <?php if(get_option('Fwm_player_auto') != "NO") echo "checked"?>/><b><?php _e('Autoplay', 'Fwm_Player')?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_geci" value="YES" <?php if(get_option('Fwm_player_geci') != "NO") echo "checked"?>/><b><?php _e('Open Lyrics', 'Fwm_Player')?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_random" value="YES" <?php if(get_option('Fwm_player_random') != "NO") echo "checked"?>/><b><?php _e('Random Songs', 'Fwm_Player')?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_suiji" value="YES" <?php if(get_option('Fwm_player_suiji') != "NO") echo "checked"?>/><b><?php _e('Random Album', 'Fwm_Player')?></b></label></p>
    110         <p><label><input type="checkbox"" name="Fwm_player_source" value="YES" <?php if(get_option('Fwm_player_source') != "NO") echo "checked"?>/><b><?php _e('Source selector', 'Fwm_Player')?></b> <a title="<?php _e('If only one music site code entered, this can be closed', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>&#12288;&#12288;&#12288;|&#12288;&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_move" value="YES" <?php if(get_option('Fwm_player_move') != "NO") echo "checked"?>/><b><?php _e('Allow mobile-use', 'Fwm_Player')?></b> <a title="<?php _e('Allow the player to play on the mobile side will consume a lot of traffic, carefully open', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>&#12288;&#12288;&#12288;|&#12288;&#12288;&#12288;<label><input type="checkbox" onclick="chk(this)" name="Fwm_player_ajax" id="Fwm_player_ajax" value="YES" <?php if(get_option('Fwm_player_ajax') != "NO") echo "checked"?>/><b><?php _e('Load anti-refresh', 'Fwm_Player')?></b> <a title="<?php _e('AJAX anti-refresh, if themes or plug-ins installed choose close', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></p></div></div>
     96        <option value="NO"/>NO(<?php _e('Close', FwmTD)?>)</option><?php for ($i = 1;$i <= 10;$i++) {echo '<option value="' . $i . '"/>' . $i . '</option>';}
     97        for ($i = 15;$i <= 30;$i += 5) {echo '<option value="' . $i . '"/>' . $i . '</option>';}?></select></td><td><a title="<?php _e('Time of Music-Player auto-hide, seconds', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     98        <tr><td><b><?php _e('Load icons', FwmTD)?>:</b></td><td>
     99        <label><input type="radio"" name="Fwm_player_style" value="CUS" <?php if(get_option('Fwm_player_style') == "CUS") echo "checked"?>/><?php _e('Customize ', FwmTD)?></label>
     100        <label><input type="text" name="Fwm_player_style_custom" placeholder="<?php _e('Enter the full URL', FwmTD)?>" class="button-prim3ary" value="<?php echo get_option('Fwm_player_style_custom', '')?>"></label>
     101        <label><input type="radio"" name="Fwm_player_style" value="YES" <?php if(get_option('Fwm_player_style') == "YES") echo "checked"?>/><?php _e('Open', FwmTD)?>&#12288;</label>
     102        <label><input type="radio"" name="Fwm_player_style" value="NO" <?php if(get_option('Fwm_player_style') != "YES" && get_option('Fwm_player_jquery') != "CUS" ) echo "checked"?>/><?php _e('Close', FwmTD)?></td><td><a title="Font Awesome 4 Menus<?php _e(', if the plug-in installed choose close', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></td></tr>
     103        <tr><td><b><?php _e('Load Base Lib', FwmTD)?>:</b></td><td>
     104        <label><input type="radio"" name="Fwm_player_jquery" value="CUS" <?php if(get_option('Fwm_player_jquery') == "CUS") echo "checked"?>/><?php _e('Customize ', FwmTD)?></label>
     105        <label><input type="text" name="Fwm_player_jquery_custom" placeholder="<?php _e('Enter the full URL', FwmTD)?>" class="button-prim3ary" value="<?php echo get_option('Fwm_player_jquery_custom', '')?>"></label>
     106        <label><input type="radio"" name="Fwm_player_jquery" value="YES" <?php if(get_option('Fwm_player_jquery') != "NO" && get_option('Fwm_player_jquery') != "LOW" && get_option('Fwm_player_jquery') != "CUS") echo "checked"?>/><?php _e('High version', FwmTD)?><a title="<?php _e('(IE9 above)', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>
     107        <label><input type="radio"" name="Fwm_player_jquery" value="LOW" <?php if(get_option('Fwm_player_jquery') == "LOW") echo "checked"?>/><?php _e('Low version', FwmTD)?><a title="(IE6/7/8)"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>
     108        <label><input type="radio"" name="Fwm_player_jquery" value="NO" <?php if(get_option('Fwm_player_jquery') == "NO") echo "checked"?>/><?php _e('Close', FwmTD)?></td><td><a title="<?php _e('JQuery Base Lib', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></td></tr></tbody></table>
     109        <p><label><input type="checkbox"" name="Fwm_player_auto" value="YES" <?php if(get_option('Fwm_player_auto') != "NO") echo "checked"?>/><b><?php _e('Autoplay', FwmTD)?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_geci" value="YES" <?php if(get_option('Fwm_player_geci') != "NO") echo "checked"?>/><b><?php _e('Open Lyrics', FwmTD)?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_random" value="YES" <?php if(get_option('Fwm_player_random') != "NO") echo "checked"?>/><b><?php _e('Random Songs', FwmTD)?></b></label>&#12288;&#12288;|&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_suiji" value="YES" <?php if(get_option('Fwm_player_suiji') != "NO") echo "checked"?>/><b><?php _e('Random Album', FwmTD)?></b></label></p>
     110        <p><label><input type="checkbox"" name="Fwm_player_source" value="YES" <?php if(get_option('Fwm_player_source') != "NO") echo "checked"?>/><b><?php _e('Source selector', FwmTD)?></b> <a title="<?php _e('If only one music site code entered, this can be closed', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>&#12288;&#12288;&#12288;|&#12288;&#12288;&#12288;<label><input type="checkbox"" name="Fwm_player_move" value="YES" <?php if(get_option('Fwm_player_move') != "NO") echo "checked"?>/><b><?php _e('Allow mobile-use', FwmTD)?></b> <a title="<?php _e('Allow the player to play on the mobile side will consume a lot of traffic, carefully open', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label>&#12288;&#12288;&#12288;|&#12288;&#12288;&#12288;<label><input type="checkbox" onclick="chk(this)" name="Fwm_player_ajax" id="Fwm_player_ajax" value="YES" <?php if(get_option('Fwm_player_ajax') != "NO") echo "checked"?>/><b><?php _e('Load anti-refresh', FwmTD)?></b> <a title="<?php _e('AJAX anti-refresh, if themes or plug-ins installed choose close', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></label></p></div></div>
    111111      <!--内置AJAX防刷新设置-->
    112112      <div id= "ajax" class="postbox">
    113         <h3 class="hndle"><?php _e('Built-in AJAX anti-refresh settings', 'Fwm_Player')?></h3>
    114         <div class="inside">
    115         <table><tbody><tr><td><b><?php _e('Content Element ID', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_content" value="<?php echo get_option('Fwm_player_content', 'content');?>" class="regular-text" /></td><td><a title="<?php _e('For most themes this should not need to be changed, however if it does you need to find the container which wraps around the page content (not including any menu bars (vertical and/or horizontal)), this container might already have an ID attribute of DIV, or you may need to assign one.', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    116         <tr><td><b><?php _e('Search Form CLASS', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_searchform" value="<?php echo get_option('Fwm_player_searchform', 'searchform');?>" class="regular-text" /></td><td><a title="<?php _e('This plugin automatically binds to the search form with the provided class name (default: searchform), but if this is not set for your theme it will just do a normal post search without ajax.', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    117         <tr><td><b><?php _e('Article Title Location', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_title" value="<?php echo get_option('Fwm_player_title', '2');?>" class="regular-text" /></td><td><a title="<?php _e('Article title behind which h1 (not included /h1)', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
    118         <tr><td><b><?php _e('Exception Link', 'Fwm_Player')?>:</b></td><td><input type="text" name="Fwm_player_string" value="<?php echo get_option('Fwm_player_string', '/wp-, .pdf, .zip, .rar, reply');?>" class="regular-text" /></td><td><a title="<?php _e('Exception Link Format, separated by commas lowercase', 'Fwm_Player')?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr></tbody></table></div></div>
     113        <h3 class="hndle"><?php _e('Built-in AJAX anti-refresh settings', FwmTD)?></h3>
     114        <div class="inside">
     115        <table><tbody><tr><td><b><?php _e('Content Element ID', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_content" value="<?php echo get_option('Fwm_player_content', 'content');?>" class="regular-text" /></td><td><a title="<?php _e('For most themes this should not need to be changed, however if it does you need to find the container which wraps around the page content (not including any menu bars (vertical and/or horizontal)), this container might already have an ID attribute of DIV, or you may need to assign one.', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     116        <tr><td><b><?php _e('Search Form CLASS', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_searchform" value="<?php echo get_option('Fwm_player_searchform', 'searchform');?>" class="regular-text" /></td><td><a title="<?php _e('This plugin automatically binds to the search form with the provided class name (default: searchform), but if this is not set for your theme it will just do a normal post search without ajax.', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     117        <tr><td><b><?php _e('Article Title Location', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_title" value="<?php echo get_option('Fwm_player_title', '2');?>" class="regular-text" /></td><td><a title="<?php _e('Article title behind which h1 (not included /h1)', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr>
     118        <tr><td><b><?php _e('Exception Link', FwmTD)?>:</b></td><td><input type="text" name="Fwm_player_string" value="<?php echo get_option('Fwm_player_string', '/wp-, .pdf, .zip, .rar, reply');?>" class="regular-text" /></td><td><a title="<?php _e('Exception Link Format, separated by commas lowercase', FwmTD)?>"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a></td></tr></tbody></table></div></div>
    119119      <!--自定义CSS-->
    120120      <div class="postbox">
    121         <h3 class="hndle"><?php _e('Customize ', 'Fwm_Player')?>CSS</h3>
     121        <h3 class="hndle"><?php _e('Customize ', FwmTD)?>CSS</h3>
    122122        <div class="inside">
    123123        <textarea rows="4" cols="50" name="Fwm_player_css"><?php echo get_option('Fwm_player_css') ?></textarea><br>
    124         <?php _e('Common Settings Example (Default Value)', 'Fwm_Player')?>:<br>
    125         1.<?php _e('Adjust position of play button', 'Fwm_Player')?>:<b>#FwmPlayer .status{left:44px!important}</b>(<?php _e('Number gets small, location more left', 'Fwm_Player')?>)<br>
    126         2.<?php _e('Adjust font size of player', 'Fwm_Player')?>:<b>#FwmPlayer{font-size:100%!important}</b><br>
    127         3.<?php _e('Adjust font size of subtitle', 'Fwm_Player')?>:<b>#FwmLrc{font-size:1.2em!important}</b><br>
    128         4.<?php _e('Adjust font size of prompt', 'Fwm_Player')?>:<b>#FwmTips{font-size:1.4em!important}</b><br>
    129         <?php _e('Copy the appropriate code to the above column, without adding any delimiters, adjust the value and save it.', 'Fwm_Player')?></div></div>
    130         <p><input type="submit" name="submit" class="button-primary" value="<?php _e('Save Changes', 'Fwm_Player')?>" /> <b><?php _e('Be sure to save the settings once after the initial installation', 'Fwm_Player')?></b></p>
     124        <?php _e('Common Settings Example (Default Value)', FwmTD)?>:<br>
     125        1.<?php _e('Adjust position of play button', FwmTD)?>:<b>#FwmPlayer .status{left:44px!important}</b>(<?php _e('Number gets small, location more left', FwmTD)?>)<br>
     126        2.<?php _e('Adjust font size of player', FwmTD)?>:<b>#FwmPlayer{font-size:100%!important}</b><br>
     127        3.<?php _e('Adjust font size of subtitle', FwmTD)?>:<b>#FwmLrc{font-size:1.2em!important}</b><br>
     128        4.<?php _e('Adjust font size of prompt', FwmTD)?>:<b>#FwmTips{font-size:1.4em!important}</b><br>
     129        <?php _e('Copy the appropriate code to the above column, without adding any delimiters, adjust the value and save it.', FwmTD)?></div></div>
     130        <p><input type="submit" name="submit" class="button-primary" value="<?php _e('Save Changes', FwmTD)?>" /> <b><?php _e('Be sure to save the settings once after the initial installation', FwmTD)?></b></p>
    131131      </form></div>
    132 <script type='text/javascript' src='//cdn.bootcss.com/jquery/3.2.1/jquery.min.js'></script>
     132<script type="text/javascript" src="//cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    133133<script language="javascript">
    134 <?php if(get_option('Fwm_player_ajax') == "NO") echo '$("#ajax.postbox").hide();'?>
    135 function xiami() {
     134  <?php if(get_option('Fwm_player_ajax') == "NO") echo '$("#ajax.postbox").hide();'?>
     135  function xiami() {
    136136    $val = $('#mp3_xiami').val();
    137137    row = $val.split("/");
     
    140140    if (row[3] == 'collect') {str=row[4].split("?");row[3] = '*3|'}
    141141    $('#mp3_xiami').val('*' + str[0] + row[3])
    142 }
    143 function chk(obj){obj.checked ? $("#ajax.postbox").show() : $("#ajax.postbox").hide()}
     142  }
     143  function chk(obj){obj.checked ? $("#ajax.postbox").show() : $("#ajax.postbox").hide()}
    144144</script>
    145145<?php
     
    170170            $_POST['Fwm_player_ajax'] ? update_option('Fwm_player_ajax', sanitize_text_field( $_POST['Fwm_player_ajax'] )) : update_option('Fwm_player_ajax', 'NO');
    171171            $_POST['Fwm_player_source'] ? update_option('Fwm_player_source', sanitize_text_field( $_POST['Fwm_player_source'] )) : update_option('Fwm_player_source', 'NO');
    172             print '<div class="updated"><p>'; _e('Settings saved successfully', 'Fwm_Player'); print '!</p></div><p></p>';
     172            print '<div class="updated"><p>'; _e('Settings saved successfully', FwmTD); print '!</p></div><p></p>';
    173173    }
    174174}
  • floating-window-music-player/trunk/inc/player.css

    r1674669 r1676858  
    1 body,html{margin:0}li,ul{margin:0;padding:0;list-style:none}#FwmPlayer,.ts5{-webkit-transition:.5s;transition:.5s}#FwmPlayer{position:fixed;bottom:40px;left:-340px;z-index:5000;width:340px;border-radius:5px;box-shadow:0 0 5px 5px rgba(0,0,0,.2);color:#fff;text-align:left;font-family:'Open Sans',sans-serif}#FwmPlayer .player{position:relative;overflow:hidden;height:170px;border-radius:5px 5px 0 0;background-color:rgba(0,0,0,.1);text-shadow:none}#FwmPlayer .player .cover{position:absolute;top:15px;left:115px;width:113px;height:113px;border:2px #fff solid;border-radius:50%;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.3);cursor:url(link.cur),pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .cover:after{position:absolute;top:45px;left:0;width:100%;content:'Eric音像馆';text-align:center;opacity:.5}#FwmPlayer .player .cover.changing img{opacity:0;-webkit-transform:scale(.3);transform:scale(.3);-ms-transform:scale(.3)}#FwmPlayer .player .cover img{position:relative;z-index:10;width:110px;height:110px;border:2px #fff solid;border-radius:50%;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .infos{position:absolute;top:10px;right:5px;left:5px}#FwmPlayer .player .infos .artiststyle{margin-top:15px}#FwmPlayer .player .infos .geci,#FwmPlayer .player .infos .moshi{float:right;cursor:url(link.cur),pointer}#FwmPlayer .player .infos .timestyle{float:right;cursor:ew-resize}#FwmPlayer .player .control{position:relative;bottom:-105px;z-index:99999;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .control .aprev,#FwmPlayer .player .control .prev,#FwmPlayer .player .control .status{position:relative;bottom:-15px;float:left;margin-left:24px;width:18px;height:18px;cursor:url(link.cur),pointer}#FwmPlayer .player .control .anext,#FwmPlayer .player .control .next{position:relative;bottom:-15px;float:right;margin-right:24px;width:18px;height:18px;cursor:url(link.cur),pointer}#FwmPlayer .player .control i.current,#FwmPlayer .player .control i:hover,#FwmPlayer .player .musicbottom i.current,#FwmPlayer .player .musicbottom i:hover,#FwmPlayer.showAlbumList .switch-playlist,#FwmPlayer.showList .switch-playlist{color:#81c300}#FwmPlayer .player .control .status{position:relative;bottom:55px;left:44px;display:inline-block;overflow:hidden;width:44px;height:44px;border-radius:50%;background-color:#81c300;background-image:linear-gradient(90deg,#6c6971 50%,transparent 50%,transparent),linear-gradient(90deg,#81c300 50%,#6c6971 50%,#6c6971);color:#fff;vertical-align:middle}#FwmPlayer .player .control .status b{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;width:40px;height:40px;border:solid #f30 2px;border-radius:50%;background-color:#2c2a30;text-align:center}#FwmPlayer .player .control .status b .fa{display:block;width:40px;height:40px;line-height:40px}#FwmPlayer .player .control .status b .fa:hover{color:#f30}#FwmPlayer .player .control .status b .play{color:#f30;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .control .status b .pause{-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .musicbottom{position:absolute;bottom:0;left:0;width:100%;height:25px;background-color:#fff;color:#000;text-shadow:none;line-height:25px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .musicbottom .volume{position:absolute;top:6px;left:6px}#FwmPlayer .player .musicbottom .volume .mute{float:left;cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .volume .progress{position:relative;margin:0 25px;margin-top:6.5px;width:160px;height:3px;background-color:#b0aeb2}#FwmPlayer .player .musicbottom .volume .progress .volume-on{position:relative;width:0;height:3px;background-color:#81c300}#FwmPlayer .player .musicbottom .volume .progress .volume-on .drag{position:absolute;top:-5px;right:-5px;width:14px;height:14px;border-radius:50%;background-color:#fff;box-shadow:0 0 1px 1px rgba(0,0,0,.2);cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .switch-playlist{position:absolute;top:6px;right:10px;line-height:10px;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .switch-bd,#FwmPlayer .player .switch-qq,#FwmPlayer .player .switch-wy,#FwmPlayer .player .switch-xm{position:absolute;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist{overflow:hidden;height:0;border-top:solid #ebebeb 1px;text-shadow:none;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .playlist-bd{width:50pc;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .album-list{float:left;width:25pc}#FwmPlayer .playlist .song-list{float:left}#FwmPlayer .playlist .album-list .list,#FwmPlayer .playlist .album-list .musicheader{-webkit-transform:translate3d(-500px,0,0);transform:translate3d(-500px,0,0);-ms-transform:translate3d(-500px,0,0)}#FwmPlayer .playlist .song-list .list{opacity:0}#FwmPlayer .playlist .musicheader{padding:10px 0 10px 10px;border-bottom:solid #eee 1px;background-color:rgba(0,0,0,.1);-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .musicheader .fa-angle-right{margin-right:10px;font-weight:700;opacity:.8;cursor:url(link.cur),pointer;-webkit-transition:.8s;transition:.8s}#FwmPlayer .playlist .list{overflow:hidden;width:25pc;height:255px;-webkit-transition:.5s;transition:.5s;-webkit-transform-origin:50% 75pt;transform-origin:50% 75pt;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;weight:100%;-ms-transform-origin:50% 75pt}#FwmPlayer .playlist .list ul{margin-right:15px}#FwmPlayer .playlist .list li{overflow:hidden;height:40px;border-bottom:solid #eee 1px;background-color:rgba(0,0,0,.1);text-overflow:ellipsis;white-space:nowrap;line-height:40px;cursor:url(link.cur),pointer;-webkit-transition:.3s;transition:.3s}#FwmPlayer .playlist .list li:last-child{border-bottom:0}#FwmPlayer .playlist .list li:hover{background-color:rgba(129,195,0,.5)}#FwmPlayer .playlist .list li.current{background-color:#81c300;color:#fff;text-shadow:none}#FwmPlayer .playlist .list li.current .index{color:#fff}#FwmPlayer .playlist .list li .index{padding:0 10px;opacity:.5}#FwmPlayer .playlist .list li .fa-angle-right{float:right;margin-right:10px;line-height:40px}#FwmPlayer .playlist .list .mCSB_scrollTools{top:0;right:3px;width:9px;height:100%;border-radius:9px;background-color:rgba(0,0,0,.1);opacity:0;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .list .mCSB_draggerContainer{height:100%}#FwmPlayer .playlist .list .mCSB_dragger{z-index:999;width:9px;height:auto;border-radius:9px;background-color:#81c300}#FwmPlayer .playlist .list:hover{width:340px}#FwmPlayer .playlist .list:hover .mCSB_scrollTools{opacity:1}#FwmPlayer .flat{position:absolute;top:70px;left:185px;color:#fff;opacity:0}#FwmPlayer .switch-player{position:absolute;top:5px;right:-20px;width:20px;height:60px;border-radius:0 5px 5px 0;text-align:center;font-size:1.5em;line-height:60px;cursor:url(link.cur),pointer;-webkit-transform:rotate(0);transform:rotate(0);-ms-transform:rotate(0)}#FwmPlayer .switch-sourse{display:none;position:absolute;top:68px;right:-20px;width:20px;height:103px;border-radius:0 5px 5px 0;text-align:center;font-size:1.5em;line-height:26px;-webkit-transform:rotate(0);transform:rotate(0);-ms-transform:rotate(0)}#FwmPlayer.show{-webkit-transform:translate3d(340px,0,0);transform:translate3d(340px,0,0);-ms-transform:translate3d(340px,0,0)}#FwmPlayer.showList .playlist{height:300px}#FwmPlayer.showList .playlist .musicheader{-webkit-transition-delay:.3s;transition-delay:.3s}#FwmPlayer.showList .playlist .list,#FwmPlayer.showList .playlist .musicheader{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showList .playlist .list{opacity:1;-webkit-transition-delay:.5s;transition-delay:.5s}#FwmPlayer.showAlbumList .playlist{height:300px}#FwmPlayer.showAlbumList .playlist .album-list .musicheader{-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showAlbumList .playlist .album-list .list{-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showSongList .playlist-bd{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);-ms-transform:translate3d(-50%,0,0)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader{cursor:url(link.cur),pointer;-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader:hover{background-color:rgba(129,195,0,.5)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader .fa-angle-right{-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:rotate(180deg);transform:rotate(180deg);-ms-transform:rotate(180deg)}#FwmPlayer.showSongList .playlist-bd .song-list .list{opacity:1;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.playing .player .control .status b{top:2px;left:2px;border-width:0}#FwmPlayer.playing .player .control .status b .play{margin-top:-40px}#FwmPlayer.playing .flat{opacity:.8;-webkit-animation:rotate 18s linear infinite;animation:rotate 18s linear infinite}#FwmPlayer.playing .flat i{position:absolute;top:0;left:0;opacity:0;-webkit-animation:flat 4s cubic-bezier(.09,.64,.16,.94) infinite;animation:flat 4s cubic-bezier(.09,.64,.16,.94) infinite}#FwmPlayer.playing .flat i:nth-of-type(1){-webkit-transform:rotate(35deg) translateX(-5px);transform:rotate(35deg) translateX(-5px);-webkit-animation-delay:0;animation-delay:0;-ms-transform:rotate(35deg) translateX(-5px)}#FwmPlayer.playing .flat i:nth-of-type(2){-webkit-transform:rotate(-5deg) translateX(-15px);transform:rotate(-5deg) translateX(-15px);-webkit-animation-delay:.8s;animation-delay:.8s;-ms-transform:rotate(-5deg) translateX(-15px)}#FwmPlayer.playing .flat i:nth-of-type(3){-webkit-transform:rotate(45deg) translateX(5px);transform:rotate(45deg) translateX(5px);-webkit-animation-delay:1.6s;animation-delay:1.6s;-ms-transform:rotate(45deg) translateX(5px)}#FwmPlayer.playing .flat i:nth-of-type(4){-webkit-transform:rotate(-25deg) translateX(-8px);transform:rotate(-25deg) translateX(-8px);-webkit-animation-delay:2.8s;animation-delay:2.8s;-ms-transform:rotate(-25deg) translateX(-8px)}#FwmPlayer.playing .flat i:nth-of-type(5){-webkit-transform:rotate(-35deg);transform:rotate(-35deg);-webkit-animation-delay:3.2s;animation-delay:3.2s;-ms-transform:rotate(-35deg)}#FwmPlayer.playing .flat i:nth-of-type(6){-webkit-transform:rotate(15deg) translateX(-5px);transform:rotate(15deg) translateX(-5px);-webkit-animation-delay:4.5s;animation-delay:4.5s;-ms-transform:rotate(15deg) translateX(-5px)}@keyframes rotate{50%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg);-ms-transform:rotate(-20deg)}}@-webkit-keyframes flat{0%{opacity:1}to{top:-3pc;left:78px;font-size:.6em;opacity:0}}@keyframes flat{0%{opacity:1}to{top:-3pc;left:78px;font-size:.6em;opacity:0}}#FwmTips{position:fixed;top:30px;left:0;z-index:5000;padding:5px;border-radius:0 5px 5px 0;background-color:rgba(0,0,0,.1);color:#fff;text-shadow:none;font-size:1.4em;-webkit-transition:.5s;transition:.5s;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0)}#FwmTips.show{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmLrc{position:fixed;bottom:0;left:0;z-index:4999;overflow:hidden;width:100%;height:40px;background-color:rgba(0,0,0,.1);font-weight:700;font-size:1.2em;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0)}#FwmLrc,#FwmLrc ul{-webkit-transition:.5s;transition:.5s}#FwmLrc li{height:40px;text-align:center;text-shadow:-1px -1px 0 #fff,1px 1px 0 #333,1px 1px 0 #444;font-weight:300;font-size:1.6em;line-height:40px;-webkit-transition:.5s;transition:.5s;-webkit-transform:scale(.8);transform:scale(.8);-ms-transform:scale(.8)}#FwmLrc li.current{font-size:2em;-webkit-transform:scale(1);transform:scale(1);-ms-transform:scale(1)}#FwmLrc.show{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmLrc.hide{-webkit-transform:translate3d(0,200%,0);transform:translate3d(0,200%,0);-ms-transform:translate3d(0,200%,0)}#FwmLrc:hover{height:90pt}#FwmLrc:hover ul{margin:40px 0}.coverplay{-webkit-animation:myhk infinite 20s linear;animation:myhk infinite 20s linear}@keyframes myhk{to{-webkit-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}#FwmPlayer .status{opacity:.5;-webkit-transition:all 1s ease 0s;transition:all 1s ease 0s;filter:alpha(opacity=50)}#FwmPlayer:hover .status{opacity:1;filter:alpha(opacity=100)}.blur-img{position:absolute}.player .blur{position:relative;display:none;width:340px;height:155px;filter:url(blur.svg#blur);-webkit-filter:blur(20px);-moz-filter:blur(20px);-ms-filter:blur(20px);filter:blur(20px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=20, MakeShadow=false)}.bg-primary .lter,.bg-primary.lter{background-color:violet}.bg-success{background-color:#90ee90}.bg-info .lt,.bg-info.lt{background-color:#0ff}.bg-warning .dk,.bg-warning.dk{background-color:#ff0}.bg-danger .dker,.bg-danger.dker{background-color:red}.inline{display:inline-block!important}.musicbar{position:relative;width:20px;height:20px}.musicbar span{position:absolute;bottom:0;width:15%;text-indent:-9999px}.bar1{left:0;height:60%}.bar2{left:20%;height:45%}.bar3{left:40%;height:90%}.bar4{left:60%;height:60%}.bar5{left:80%;height:40%}.animate .a1{-webkit-animation:movingbar1 1s infinite alternate both;-moz-animation:movingbar1 1s infinite alternate both;animation:movingbar1 1s infinite alternate both}.animate .a2{-webkit-animation:movingbar2 1.5s infinite alternate both;-moz-animation:movingbar2 1.5s infinite alternate both;animation:movingbar2 1.5s infinite alternate both}.animate .a3{-webkit-animation:movingbar3 1.2s infinite alternate both;-moz-animation:movingbar3 1.2s infinite alternate both;animation:movingbar3 1.2s infinite alternate both}.animate .a4{-webkit-animation:movingbar4 1.1s infinite alternate both;-moz-animation:movingbar4 1.1s infinite alternate both;animation:movingbar4 1.1s infinite alternate both}.animate .a5{-webkit-animation:movingbar5 1.2s infinite alternate both;-moz-animation:movingbar5 1.2s infinite alternate both;animation:movingbar5 1.2s infinite alternate both}@-webkit-keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@-moz-keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@-webkit-keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@-moz-keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@-webkit-keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@-moz-keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@-webkit-keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@-moz-keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@-webkit-keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}@-moz-keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}@keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}.loading{position:fixed;top:0;left:0;z-index:1000;width:100%;height:100%;background-color:rgba(90,90,90,.5);display:none}.loading2{position:absolute;top:50%;left:50%;z-index:1000;margin:-46px 0 0 -46px;width:92px;height:92px;display:none}.loading .block{position:absolute;top:5;left:0;width:40px;height:40px}.loading .block:nth-child(1){top:0;right:auto;bottom:auto;left:0;background-color:#00aacf;-webkit-animation:top-left 1s infinite}.loading .block:nth-child(2){top:0;right:auto;bottom:auto;left:50px;background-color:#f6c574;-webkit-animation:top-right 1s infinite}.loading .block:nth-child(3){top:50px;right:auto;bottom:auto;left:0;background-color:#fc5652;-webkit-animation:bottom-left 1s infinite}.loading .block:nth-child(4){top:50px;right:auto;bottom:auto;left:50px;background-color:#00b3a0;-webkit-animation:bottom-right 1s infinite}@-webkit-keyframes top-left{0%{top:0;left:0}25%{top:0;left:50px;-webkit-transform:rotate(90deg)}50%{top:50px;left:50px;-webkit-transform:rotate(180deg)}75%{top:50px;left:0;-webkit-transform:rotate(270deg)}100%{top:0;left:0;-webkit-transform:rotate(360deg)}}@-webkit-keyframes top-right{0%{top:0;left:50px}25%{top:50px;left:50px}50%{top:50px;left:0}75%{top:0;left:0}100%{top:0;left:50px}}@-webkit-keyframes bottom-left{0%{top:50px;left:50px}25%{top:50px;left:0;-webkit-transform:rotate(90deg)}50%{top:0;left:0;-webkit-transform:rotate(180deg)}75%{top:0;left:50px;-webkit-transform:rotate(270deg)}100%{top:50px;left:50px;-webkit-transform:rotate(360deg)}}@-webkit-keyframes bottom-right{0%{top:50px;left:0}25%{top:0;left:0}50%{top:0;left:50px}75%{top:50px;left:50px}100%{top:50px;left:0}}@-moz-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-moz-transform:rotate(160deg)}50%{opacity:1;-moz-transform:rotate(145deg)}100%{opacity:0;-moz-transform:rotate(-320deg)}}@-moz-keyframes spinoffPulse{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-webkit-transform:rotate(160deg)}50%{opacity:1;-webkit-transform:rotate(145deg)}100%{opacity:0;-webkit-transform:rotate(-320deg)}}@-webkit-keyframes spinoffPulse{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@-o-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-o-transform:rotate(160deg)}50%{opacity:1;-o-transform:rotate(145deg)}100%{opacity:0;-o-transform:rotate(-320deg)}}@-o-keyframes spinoffPulse{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(360deg)}}@-ms-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-ms-transform:rotate(160deg)}50%{opacity:1;-ms-transform:rotate(145deg)}100%{opacity:0;-ms-transform:rotate(-320deg)}}@-ms-keyframes spinoffPulse{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(360deg)}}#FwmLrc,#FwmPlayer,#FwmPlayer .switch-player,#FwmPlayer .switch-sourse,#FwmTips{background-color:#38343e}img.desaturate{-webkit-filter:grayscale(100%);filter:grayscale(100%)}#FwmPlayer .switch-sourse img:hover{-webkit-filter:grayscale(50%);filter:grayscale(50%);cursor:url(link.cur),pointer}#FwmPlayer .switch-sourse.open{display:block}#FwmPlayer .player .musicbottom .down,#FwmPlayer .player .musicbottom .switch-info{position:absolute;-webkit-transition:.5s;transition:.5s;top:6px;line-height:16px;cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .down{right:40px;display:block}#FwmPlayer .player .musicbottom .switch-info{right:70px;display:block}#tooltip{position:absolute;z-index:9999;display:none;padding:4px 8px;border:1px solid rgba(255,255,255,.25);border-radius:3px;background-color:#58bedd;color:#fff;text-align:center;font-size:12px}#tooltip:before{position:absolute;top:-6px;left:15px;width:0;height:0;border:6px dashed #0c0;border-top:0;color:#fff;content:' ';line-height:0;border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent}
     1body,html{margin:0}li,ul{margin:0;padding:0;list-style:none}#FwmPlayer,.ts5{-webkit-transition:.5s;transition:.5s}#FwmPlayer{position:fixed;bottom:40px;left:-340px;z-index:5000;width:340px;border-radius:5px;box-shadow:0 0 5px 5px rgba(0,0,0,.2);color:#fff;text-align:left;font-family:'Open Sans',sans-serif}#FwmPlayer .player{position:relative;overflow:hidden;height:170px;border-radius:5px 5px 0 0;background-color:rgba(0,0,0,.1);text-shadow:none}#FwmPlayer .player .cover{position:absolute;top:15px;left:115px;width:113px;height:113px;border:2px #fff solid;border-radius:50%;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.3);cursor:url(link.cur),pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .cover:after{position:absolute;top:45px;left:0;width:100%;content:'Eric音像馆';text-align:center;opacity:.5}#FwmPlayer .player .cover.changing img{opacity:0;-webkit-transform:scale(.3);transform:scale(.3);-ms-transform:scale(.3)}#FwmPlayer .player .cover img{position:relative;z-index:10;width:110px;height:110px;border:2px #fff solid;border-radius:50%;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .infos{position:absolute;top:10px;right:5px;left:5px}#FwmPlayer .player .infos .artiststyle{margin-top:15px}#FwmPlayer .player .infos .geci,#FwmPlayer .player .infos .moshi{float:right;cursor:url(link.cur),pointer}#FwmPlayer .player .infos .timestyle{float:right;cursor:ew-resize}#FwmPlayer .player .control{position:relative;bottom:-105px;z-index:99999;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .control .aprev,#FwmPlayer .player .control .prev,#FwmPlayer .player .control .status{position:relative;bottom:-15px;float:left;margin-left:24px;width:18px;height:18px;cursor:url(link.cur),pointer}#FwmPlayer .player .control .anext,#FwmPlayer .player .control .next{position:relative;bottom:-15px;float:right;margin-right:24px;width:18px;height:18px;cursor:url(link.cur),pointer}#FwmPlayer .player .control i.current,#FwmPlayer .player .control i:hover,#FwmPlayer .player .musicbottom i.current,#FwmPlayer .player .musicbottom i:hover,#FwmPlayer.showAlbumList .switch-playlist,#FwmPlayer.showList .switch-playlist{color:#81c300}#FwmPlayer .player .control .status{position:relative;bottom:55px;left:44px;display:inline-block;overflow:hidden;width:44px;height:44px;border-radius:50%;background-color:#81c300;background-image:linear-gradient(90deg,#6c6971 50%,transparent 50%,transparent),linear-gradient(90deg,#81c300 50%,#6c6971 50%,#6c6971);color:#fff;vertical-align:middle}#FwmPlayer .player .control .status b{position:absolute;top:0;left:0;display:inline-block;overflow:hidden;width:40px;height:40px;border:solid #f30 2px;border-radius:50%;background-color:#2c2a30;text-align:center}#FwmPlayer .player .control .status b .fa{display:block;width:40px;height:40px;line-height:40px}#FwmPlayer .player .control .status b .fa:hover{color:#f30}#FwmPlayer .player .control .status b .play{color:#f30;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .control .status b .pause{-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .musicbottom{position:absolute;bottom:0;left:0;width:100%;height:25px;background-color:#fff;color:#000;text-shadow:none;line-height:25px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#FwmPlayer .player .musicbottom .volume{position:absolute;top:6px;left:6px}#FwmPlayer .player .musicbottom .volume .mute{float:left;cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .volume .progress{position:relative;margin:0 25px;margin-top:6.5px;width:160px;height:3px;background-color:#b0aeb2}#FwmPlayer .player .musicbottom .volume .progress .volume-on{position:relative;width:0;height:3px;background-color:#81c300}#FwmPlayer .player .musicbottom .volume .progress .volume-on .drag{color:rgba(0,0,0,.2);position:absolute;top:-6px;right:-5px;width:14px;height:14px;background-color:#fff;cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .switch-playlist{position:absolute;top:6px;right:10px;line-height:10px;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .player .switch-bd,#FwmPlayer .player .switch-qq,#FwmPlayer .player .switch-wy,#FwmPlayer .player .switch-xm{position:absolute;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist{overflow:hidden;height:0;border-top:solid #ebebeb 1px;text-shadow:none;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .playlist-bd{width:50pc;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .album-list{float:left;width:25pc}#FwmPlayer .playlist .song-list{float:left}#FwmPlayer .playlist .album-list .list,#FwmPlayer .playlist .album-list .musicheader{-webkit-transform:translate3d(-500px,0,0);transform:translate3d(-500px,0,0);-ms-transform:translate3d(-500px,0,0)}#FwmPlayer .playlist .song-list .list{opacity:0}#FwmPlayer .playlist .musicheader{padding:10px 0 10px 10px;border-bottom:solid #eee 1px;background-color:rgba(0,0,0,.1);-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .musicheader .fa-angle-right{margin-right:10px;font-weight:700;opacity:.8;cursor:url(link.cur),pointer;-webkit-transition:.8s;transition:.8s}#FwmPlayer .playlist .list{overflow:hidden;width:25pc;height:255px;-webkit-transition:.5s;transition:.5s;-webkit-transform-origin:50% 75pt;transform-origin:50% 75pt;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;weight:100%;-ms-transform-origin:50% 75pt}#FwmPlayer .playlist .list ul{margin-right:15px}#FwmPlayer .playlist .list li{overflow:hidden;height:40px;border-bottom:solid #eee 1px;background-color:rgba(0,0,0,.1);text-overflow:ellipsis;white-space:nowrap;line-height:40px;cursor:url(link.cur),pointer;-webkit-transition:.3s;transition:.3s}#FwmPlayer .playlist .list li:last-child{border-bottom:0}#FwmPlayer .playlist .list li:hover{background-color:rgba(129,195,0,.5)}#FwmPlayer .playlist .list li.current{background-color:#81c300;color:#fff;text-shadow:none}#FwmPlayer .playlist .list li.current .index{color:#fff}#FwmPlayer .playlist .list li .index{padding:0 10px;opacity:.5}#FwmPlayer .playlist .list li .fa-angle-right{float:right;margin-right:10px;line-height:40px}#FwmPlayer .playlist .list .mCSB_scrollTools{top:0;right:3px;width:9px;height:100%;border-radius:9px;background-color:rgba(0,0,0,.1);opacity:0;cursor:url(link.cur),pointer;-webkit-transition:.5s;transition:.5s}#FwmPlayer .playlist .list .mCSB_draggerContainer{height:100%}#FwmPlayer .playlist .list .mCSB_dragger{z-index:999;width:9px;height:auto;border-radius:9px;background-color:#81c300}#FwmPlayer .playlist .list:hover{width:340px}#FwmPlayer .playlist .list:hover .mCSB_scrollTools{opacity:1}#FwmPlayer .flat{position:absolute;top:70px;left:185px;color:#fff;opacity:0}#FwmPlayer .switch-player{position:absolute;top:5px;right:-20px;width:20px;height:60px;border-radius:0 5px 5px 0;text-align:center;font-size:1.5em;line-height:60px;cursor:url(link.cur),pointer;-webkit-transform:rotate(0);transform:rotate(0);-ms-transform:rotate(0)}#FwmPlayer .switch-sourse{display:none;position:absolute;top:68px;right:-20px;width:20px;height:103px;border-radius:0 5px 5px 0;text-align:center;font-size:1.5em;line-height:26px;-webkit-transform:rotate(0);transform:rotate(0);-ms-transform:rotate(0)}#FwmPlayer.show{-webkit-transform:translate3d(340px,0,0);transform:translate3d(340px,0,0);-ms-transform:translate3d(340px,0,0)}#FwmPlayer.showList .playlist{height:300px}#FwmPlayer.showList .playlist .musicheader{-webkit-transition-delay:.3s;transition-delay:.3s}#FwmPlayer.showList .playlist .list,#FwmPlayer.showList .playlist .musicheader{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showList .playlist .list{opacity:1;-webkit-transition-delay:.5s;transition-delay:.5s}#FwmPlayer.showAlbumList .playlist{height:300px}#FwmPlayer.showAlbumList .playlist .album-list .musicheader{-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showAlbumList .playlist .album-list .list{-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showSongList .playlist-bd{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);-ms-transform:translate3d(-50%,0,0)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader{cursor:url(link.cur),pointer;-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader:hover{background-color:rgba(129,195,0,.5)}#FwmPlayer.showSongList .playlist-bd .song-list .musicheader .fa-angle-right{-webkit-transition-delay:.3s;transition-delay:.3s;-webkit-transform:rotate(180deg);transform:rotate(180deg);-ms-transform:rotate(180deg)}#FwmPlayer.showSongList .playlist-bd .song-list .list{opacity:1;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmPlayer.playing .player .control .status b{top:2px;left:2px;border-width:0}#FwmPlayer.playing .player .control .status b .play{margin-top:-40px}#FwmPlayer.playing .flat{opacity:.8;-webkit-animation:rotate 18s linear infinite;animation:rotate 18s linear infinite}#FwmPlayer.playing .flat i{position:absolute;top:0;left:0;opacity:0;-webkit-animation:flat 4s cubic-bezier(.09,.64,.16,.94) infinite;animation:flat 4s cubic-bezier(.09,.64,.16,.94) infinite}#FwmPlayer.playing .flat i:nth-of-type(1){-webkit-transform:rotate(35deg) translateX(-5px);transform:rotate(35deg) translateX(-5px);-webkit-animation-delay:0;animation-delay:0;-ms-transform:rotate(35deg) translateX(-5px)}#FwmPlayer.playing .flat i:nth-of-type(2){-webkit-transform:rotate(-5deg) translateX(-15px);transform:rotate(-5deg) translateX(-15px);-webkit-animation-delay:.8s;animation-delay:.8s;-ms-transform:rotate(-5deg) translateX(-15px)}#FwmPlayer.playing .flat i:nth-of-type(3){-webkit-transform:rotate(45deg) translateX(5px);transform:rotate(45deg) translateX(5px);-webkit-animation-delay:1.6s;animation-delay:1.6s;-ms-transform:rotate(45deg) translateX(5px)}#FwmPlayer.playing .flat i:nth-of-type(4){-webkit-transform:rotate(-25deg) translateX(-8px);transform:rotate(-25deg) translateX(-8px);-webkit-animation-delay:2.8s;animation-delay:2.8s;-ms-transform:rotate(-25deg) translateX(-8px)}#FwmPlayer.playing .flat i:nth-of-type(5){-webkit-transform:rotate(-35deg);transform:rotate(-35deg);-webkit-animation-delay:3.2s;animation-delay:3.2s;-ms-transform:rotate(-35deg)}#FwmPlayer.playing .flat i:nth-of-type(6){-webkit-transform:rotate(15deg) translateX(-5px);transform:rotate(15deg) translateX(-5px);-webkit-animation-delay:4.5s;animation-delay:4.5s;-ms-transform:rotate(15deg) translateX(-5px)}@keyframes rotate{50%{-webkit-transform:rotate(-20deg);transform:rotate(-20deg);-ms-transform:rotate(-20deg)}}@-webkit-keyframes flat{0%{opacity:1}to{top:-3pc;left:78px;font-size:.6em;opacity:0}}@keyframes flat{0%{opacity:1}to{top:-3pc;left:78px;font-size:.6em;opacity:0}}#FwmTips{position:fixed;top:30px;left:0;z-index:5000;padding:5px;border-radius:0 5px 5px 0;background-color:rgba(0,0,0,.1);color:#fff;text-shadow:none;font-size:1.4em;-webkit-transition:.5s;transition:.5s;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0)}#FwmTips.show{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmLrc{position:fixed;bottom:0;left:0;z-index:4999;overflow:hidden;width:100%;height:40px;background-color:rgba(0,0,0,.1);font-weight:700;font-size:1.2em;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);-ms-transform:translate3d(0,100%,0)}#FwmLrc,#FwmLrc ul{-webkit-transition:.5s;transition:.5s}#FwmLrc li{height:40px;text-align:center;text-shadow:-1px -1px 0 #fff,1px 1px 0 #333,1px 1px 0 #444;font-weight:300;font-size:1.6em;line-height:40px;-webkit-transition:.5s;transition:.5s;-webkit-transform:scale(.8);transform:scale(.8);-ms-transform:scale(.8)}#FwmLrc li.current{font-size:2em;-webkit-transform:scale(1);transform:scale(1);-ms-transform:scale(1)}#FwmLrc.show{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}#FwmLrc.hide{-webkit-transform:translate3d(0,200%,0);transform:translate3d(0,200%,0);-ms-transform:translate3d(0,200%,0)}#FwmLrc:hover{height:90pt}#FwmLrc:hover ul{margin:40px 0}.coverplay{-webkit-animation:myhk infinite 20s linear;animation:myhk infinite 20s linear}@keyframes myhk{to{-webkit-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}#FwmPlayer .status{opacity:.5;-webkit-transition:all 1s ease 0s;transition:all 1s ease 0s;filter:alpha(opacity=50)}#FwmPlayer:hover .status{opacity:1;filter:alpha(opacity=100)}.blur-img{position:absolute}.player .blur{position:relative;display:none;width:340px;height:155px;filter:url(blur.svg#blur);-webkit-filter:blur(20px);-moz-filter:blur(20px);-ms-filter:blur(20px);filter:blur(20px);filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=20, MakeShadow=false)}.bg-primary .lter,.bg-primary.lter{background-color:violet}.bg-success{background-color:#90ee90}.bg-info .lt,.bg-info.lt{background-color:#0ff}.bg-warning .dk,.bg-warning.dk{background-color:#ff0}.bg-danger .dker,.bg-danger.dker{background-color:red}.inline{display:inline-block!important}.musicbar{position:relative;width:20px;height:20px}.musicbar span{position:absolute;bottom:0;width:15%;text-indent:-9999px}.bar1{left:0;height:60%}.bar2{left:20%;height:45%}.bar3{left:40%;height:90%}.bar4{left:60%;height:60%}.bar5{left:80%;height:40%}.animate .a1{-webkit-animation:movingbar1 1s infinite alternate both;-moz-animation:movingbar1 1s infinite alternate both;animation:movingbar1 1s infinite alternate both}.animate .a2{-webkit-animation:movingbar2 1.5s infinite alternate both;-moz-animation:movingbar2 1.5s infinite alternate both;animation:movingbar2 1.5s infinite alternate both}.animate .a3{-webkit-animation:movingbar3 1.2s infinite alternate both;-moz-animation:movingbar3 1.2s infinite alternate both;animation:movingbar3 1.2s infinite alternate both}.animate .a4{-webkit-animation:movingbar4 1.1s infinite alternate both;-moz-animation:movingbar4 1.1s infinite alternate both;animation:movingbar4 1.1s infinite alternate both}.animate .a5{-webkit-animation:movingbar5 1.2s infinite alternate both;-moz-animation:movingbar5 1.2s infinite alternate both;animation:movingbar5 1.2s infinite alternate both}@-webkit-keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@-moz-keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@keyframes movingbar1{0%{height:32%}25%{height:80%}50%{height:56%}75%{height:100%}100%{height:84%}}@-webkit-keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@-moz-keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@keyframes movingbar2{0%{height:20%}25%{height:58%}50%{height:90%}75%{height:74%}100%{height:53%}}@-webkit-keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@-moz-keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@keyframes movingbar3{0%{height:34%}25%{height:69%}50%{height:100%}75%{height:82%}100%{height:41%}}@-webkit-keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@-moz-keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@keyframes movingbar4{0%{height:80%}25%{height:49%}50%{height:59%}75%{height:82%}100%{height:65%}}@-webkit-keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}@-moz-keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}@keyframes movingbar5{0%{height:50%}25%{height:30%}50%{height:90%}75%{height:50%}100%{height:65%}}.loading{position:fixed;top:0;left:0;z-index:1000;width:100%;height:100%;background-color:rgba(90,90,90,.5);display:none}.loading2{position:absolute;top:50%;left:50%;z-index:1000;margin:-46px 0 0 -46px;width:92px;height:92px;display:none}.loading .block{position:absolute;top:5;left:0;width:40px;height:40px}.loading .block:nth-child(1){top:0;right:auto;bottom:auto;left:0;background-color:#00aacf;-webkit-animation:top-left 1s infinite}.loading .block:nth-child(2){top:0;right:auto;bottom:auto;left:50px;background-color:#f6c574;-webkit-animation:top-right 1s infinite}.loading .block:nth-child(3){top:50px;right:auto;bottom:auto;left:0;background-color:#fc5652;-webkit-animation:bottom-left 1s infinite}.loading .block:nth-child(4){top:50px;right:auto;bottom:auto;left:50px;background-color:#00b3a0;-webkit-animation:bottom-right 1s infinite}@-webkit-keyframes top-left{0%{top:0;left:0}25%{top:0;left:50px;-webkit-transform:rotate(90deg)}50%{top:50px;left:50px;-webkit-transform:rotate(180deg)}75%{top:50px;left:0;-webkit-transform:rotate(270deg)}100%{top:0;left:0;-webkit-transform:rotate(360deg)}}@-webkit-keyframes top-right{0%{top:0;left:50px}25%{top:50px;left:50px}50%{top:50px;left:0}75%{top:0;left:0}100%{top:0;left:50px}}@-webkit-keyframes bottom-left{0%{top:50px;left:50px}25%{top:50px;left:0;-webkit-transform:rotate(90deg)}50%{top:0;left:0;-webkit-transform:rotate(180deg)}75%{top:0;left:50px;-webkit-transform:rotate(270deg)}100%{top:50px;left:50px;-webkit-transform:rotate(360deg)}}@-webkit-keyframes bottom-right{0%{top:50px;left:0}25%{top:0;left:0}50%{top:0;left:50px}75%{top:50px;left:50px}100%{top:50px;left:0}}@-moz-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-moz-transform:rotate(160deg)}50%{opacity:1;-moz-transform:rotate(145deg)}100%{opacity:0;-moz-transform:rotate(-320deg)}}@-moz-keyframes spinoffPulse{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-webkit-transform:rotate(160deg)}50%{opacity:1;-webkit-transform:rotate(145deg)}100%{opacity:0;-webkit-transform:rotate(-320deg)}}@-webkit-keyframes spinoffPulse{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(360deg)}}@-o-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-o-transform:rotate(160deg)}50%{opacity:1;-o-transform:rotate(145deg)}100%{opacity:0;-o-transform:rotate(-320deg)}}@-o-keyframes spinoffPulse{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(360deg)}}@-ms-keyframes spinPulse{0%{box-shadow:0 0 1px #505050;opacity:0;-ms-transform:rotate(160deg)}50%{opacity:1;-ms-transform:rotate(145deg)}100%{opacity:0;-ms-transform:rotate(-320deg)}}@-ms-keyframes spinoffPulse{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(360deg)}}#FwmLrc,#FwmPlayer,#FwmPlayer .switch-player,#FwmPlayer .switch-sourse,#FwmTips{background-color:#38343e}img.desaturate{-webkit-filter:grayscale(100%);filter:grayscale(100%)}#FwmPlayer .switch-sourse img:hover{-webkit-filter:grayscale(50%);filter:grayscale(50%);cursor:url(link.cur),pointer}#FwmPlayer .switch-sourse.open{display:block}#FwmPlayer .player .musicbottom .down,#FwmPlayer .player .musicbottom .switch-info{position:absolute;-webkit-transition:.5s;transition:.5s;top:6px;line-height:16px;cursor:url(link.cur),pointer}#FwmPlayer .player .musicbottom .down{right:40px;display:block}#FwmPlayer .player .musicbottom .switch-info{right:70px;display:block}#tooltip{position:absolute;z-index:9999;display:none;padding:4px 8px;border:1px solid rgba(255,255,255,.25);border-radius:3px;background-color:#58bedd;color:#fff;text-align:center;font-size:12px}#tooltip:before{position:absolute;top:-6px;left:15px;width:0;height:0;border:6px dashed #0c0;border-top:0;color:#fff;content:' ';line-height:0;border-bottom-style:solid;border-left-color:transparent;border-right-color:transparent}
  • floating-window-music-player/trunk/inc/template.php

    r1674669 r1676858  
    1111          <i class="fa fa-music" aria-hidden="true"></i>
    1212          <span class="song"></span>
    13           <span class="timestyle" title="<?php _e('Drag left / right to forward / rewind', 'Fwm_Player')?>"><span class="time">00:00/00:00</span></span>
     13          <span class="timestyle" title="<?php _e('Drag left / right to forward / rewind', FwmTD)?>"><span class="time">00:00/00:00</span></span>
    1414        </div>
    1515        <div class="artiststyle">
    1616          <i class="fa fa-user" aria-hidden="true"></i>
    1717          <span class="artist"></span>
    18           <span class="moshi" title="<?php _e('Playback mode', 'Fwm_Player')?>"><i class="random fa fa-random" aria-hidden="true"></i></span>
     18          <span class="moshi" title="<?php _e('Playback mode', FwmTD)?>"><i class="random fa fa-random" aria-hidden="true"></i></span>
    1919        </div>
    2020        <div class="artiststyle">
    2121          <i class="fa fa-folder" aria-hidden="true"></i>
    2222          <span class="artist1"></span>
    23           <span class="geci" title="<?php _e('Lyrics mode', 'Fwm_Player')?>"></span>
     23          <span class="geci" title="<?php _e('Lyrics mode', FwmTD)?>"></span>
    2424        </div>
    2525      </div>
    2626      <div class="control">
    27         <i class="aprev fa fa-fast-backward" title="<?php _e('Previous album', 'Fwm_Player')?>" aria-hidden="true"></i>
    28         <i class="prev fa fa-backward" title="<?php _e('Previous song', 'Fwm_Player')?>" aria-hidden="true"></i>
     27        <i class="aprev fa fa-fast-backward" title="<?php _e('Previous album', FwmTD)?>" aria-hidden="true"></i>
     28        <i class="prev fa fa-backward" title="<?php _e('Previous song', FwmTD)?>" aria-hidden="true"></i>
    2929        <div class="status">
    30           <b><i class="play fa fa-play" title="<?php _e('Play', 'Fwm_Player')?>" aria-hidden="true"></i><i class="pause fa fa-pause" title="<?php _e('Pause', 'Fwm_Player')?>" aria-hidden="true"></i></b>
    31         </div>
    32         <i class="anext fa fa-fast-forward" title="<?php _e('Next album', 'Fwm_Player')?>" aria-hidden="true"></i>
    33         <i class="next fa fa-forward" title="<?php _e('Next song', 'Fwm_Player')?>" aria-hidden="true"></i>
     30          <b><i class="play fa fa-play" title="<?php _e('Play', FwmTD)?>" aria-hidden="true"></i><i class="pause fa fa-pause" title="<?php _e('Pause', FwmTD)?>" aria-hidden="true"></i></b>
     31        </div>
     32        <i class="anext fa fa-fast-forward" title="<?php _e('Next album', FwmTD)?>" aria-hidden="true"></i>
     33        <i class="next fa fa-forward" title="<?php _e('Next song', FwmTD)?>" aria-hidden="true"></i>
    3434      </div>
    3535      <div class="musicbottom">
    3636        <div class="volume">
    37           <i class="mute fa fa-bell-slash" title="<?php _e('Mute', 'Fwm_Player')?>" aria-hidden="true"></i>
     37          <i class="mute fa fa-bell-slash" title="<?php _e('Mute', FwmTD)?>" aria-hidden="true"></i>
    3838          <div class="progress">
    39             <div class="volume-on ts5"><div class="drag" title="<?php _e('Volume', 'Fwm_Player')?>"></div></div>
     39            <div class="volume-on ts5"><i class="drag fa fa-circle-o" aria-hidden="true" title="<?php _e('Volume', FwmTD)?>"></i></div>
    4040          </div>
    4141        </div>
    42         <i class="switch-info fa fa-home" title="<?php _e('Homepage of Music Player', 'Fwm_Player')?>" aria-hidden="true"></i>
    43         <i class="down"><i class="fa fa-download" title="<?php _e('Download', 'Fwm_Player')?>" aria-hidden="true"></i></i>
    44         <div class="switch-playlist"><i class="fa fa-list-ul" title="<?php _e('Playlist', 'Fwm_Player')?>" aria-hidden="true"></i></div>
     42        <i class="switch-info fa fa-home" title="<?php _e('Homepage of Music Player', FwmTD)?>" aria-hidden="true"></i>
     43        <i class="down"><i class="fa fa-download" title="<?php _e('Download', FwmTD)?>" aria-hidden="true"></i></i>
     44        <div class="switch-playlist"><i class="fa fa-list-ul" title="<?php _e('Playlist', FwmTD)?>" aria-hidden="true"></i></div>
    4545      </div>
    46       <div class="cover" title="<?php _e('View song cover', 'Fwm_Player')?>"></div>
     46      <div class="cover" title="<?php _e('View song cover', FwmTD)?>"></div>
    4747    </div>
    4848    <div class="playlist">
     
    5757      </div>
    5858    </div>
    59     <div class="switch-player" title="<?php _e('Hide the player', 'Fwm_Player')?>">
     59    <div class="switch-player" title="<?php _e('Hide the player', FwmTD)?>">
    6060      <span class="musicbar inline m-l-sm">
    6161        <span class="bar1 a1 bg-primary lter"></span>
     
    6767    </div>
    6868    <div class="switch-sourse">
    69         <div><img src="//s1.music.126.net/music.ico" width="18" class="switch-wy desaturate" title="<?php _e('Change to ', 'Fwm_Player');_e('Netease Music', 'Fwm_Player')?>"/></div>
    70         <div><img src="//y.qq.com/favicon.ico" width="18" class="switch-qq desaturate" title="<?php _e('Change to ', 'Fwm_Player');_e('QQ Music', 'Fwm_Player')?>"/></div>
    71         <div><img src="//g.alicdn.com/de/music-static/favicon.ico" width="18" class="switch-xm desaturate" title="<?php _e('Change to ', 'Fwm_Player');_e('Xiami Music', 'Fwm_Player')?>"/></div>
    72         <div><img src="//www.baidu.com/favicon.ico" width="18" class="switch-bd desaturate" title="<?php _e('Change to ', 'Fwm_Player');_e('Baidu Music', 'Fwm_Player')?>"/></div>
     69        <div><img src="//s1.music.126.net/music.ico" wiFwmTDh="18" class="switch-wy desaturate" title="<?php _e('Change to ', FwmTD);_e('Netease Music', FwmTD)?>"/></div>
     70        <div><img src="//y.qq.com/favicon.ico" wiFwmTDh="18" class="switch-qq desaturate" title="<?php _e('Change to ', FwmTD);_e('QQ Music', FwmTD)?>"/></div>
     71        <div><img src="//g.alicdn.com/de/music-static/favicon.ico" wiFwmTDh="18" class="switch-xm desaturate" title="<?php _e('Change to ', FwmTD);_e('Xiami Music', FwmTD)?>"/></div>
     72        <div><img src="//www.baidu.com/favicon.ico" wiFwmTDh="18" class="switch-bd desaturate" title="<?php _e('Change to ', FwmTD);_e('Baidu Music', FwmTD)?>"/></div>
    7373</div>
    7474  </div>
     
    8484  </div>
    8585<?php
    86   echo '<script type="text/javascript ">window.onbeforeunload = function() {RootCookies.SetCookie("player_show", "no", -1)};window.onunload = function() {RootCookies.SetCookie("player_show", "no", -1)};window.onload = setTimeout(function() {$("#FwmPlayer").removeClass("show");$(".switch-player", $("#FwmPlayer")).attr("title", "'.__('Expand the player','Fwm_Player').'")},st)</script>';
    8786  if ( !is_admin() && get_option(Fwm_player_css) !='') echo '<style type="text/css">'.get_option('Fwm_player_css').'</style>';
    8887    wp_enqueue_script( 'scroll', Fwm_Player_URL.'/js/scrollbar.js','',Fwm_Player_VER);
    8988    wp_enqueue_script( 'player', Fwm_Player_URL.'/js/player.js','',Fwm_Player_VER);
    9089    wp_localize_script('player', 'pollsL10n', array(
    91     'close' => __('Close', 'Fwm_Player'),
    92     'open' => __('Open', 'Fwm_Player'),
    93     'Shuffle' => __('Shuffle:  On', 'Fwm_Player'),
    94     'Order' => __('Shuffle: Off', 'Fwm_Player'),
    95     'volume' => __('Volume', 'Fwm_Player'),
    96     'Hvolume' => __('Highest Volume', 'Fwm_Player'),
    97     'Rvolume' => __('Restores the volume', 'Fwm_Player'),
    98     'song' => __('Song:', 'Fwm_Player'),
    99     'singer' => __('Singer:', 'Fwm_Player'),
    100     'album' => __('Album:', 'Fwm_Player'),
    101     'hide' => __('Hide the player', 'Fwm_Player'),
    102     'show' => __('Expand the player', 'Fwm_Player'),
    103     'Single' => __('Single cycle', 'Fwm_Player'),
    104     'albums' => __('Album cycle', 'Fwm_Player'),
    105     'mute' => __('Mute', 'Fwm_Player'),
    106     'unmute' => __('Unmute', 'Fwm_Player'),
    107     'download' => __('Downoad from ', 'Fwm_Player'),
    108     'play' => __('Current Playing', 'Fwm_Player'),
    109     'change' => __('Change to ', 'Fwm_Player'),
    110     'qq' => __('There is no set QQ Music content', 'Fwm_Player'),
    111     'bd' => __('There is no set Baidu Music content', 'Fwm_Player'),
    112     'wy' => __('There is no set Netease Music content', 'Fwm_Player'),
    113     'xm' => __('There is no set Xiami Music content', 'Fwm_Player'),
    114     'qqm' => __('QQ Music', 'Fwm_Player'),
    115     'bdm' => __('Baidu Music', 'Fwm_Player'),
    116     'wym' => __('Netease Music', 'Fwm_Player'),
    117     'xmm' => __('Xiami Music', 'Fwm_Player'),
    118     'Playlist' => __('Playlist', 'Fwm_Player'),
    119     'Failed' => __(' Get Failed', 'Fwm_Player'),
    120     'success' => __(' Get Success', 'Fwm_Player'),
    121     'Autoplay' => __('Autoplay', 'Fwm_Player'),
    122     'Stop' => __('Stop playing', 'Fwm_Player'),
    123     'Auto' => __('Auto ', 'Fwm_Player'),
    124     'off' => __('Turn off ', 'Fwm_Player'),
    125     'SNext' => __('Stop playing Next time', 'Fwm_Player'),
    126     'ANext' => __('Auto playing Next time', 'Fwm_Player'),
    127     'from' => __('Playing from ', 'Fwm_Player'),
    128     'Pause' => __('Pause', 'Fwm_Player'),
    129     'Nol' => __('No lyric', 'Fwm_Player'),
    130     'List' => __(' Song Lists from ', 'Fwm_Player'),
    131     'Songs' => __(' Songs from ', 'Fwm_Player'),
    132     'Seek' => __('Song Seeking', 'Fwm_Player'),
    133     'Load' => __('Loading songs', 'Fwm_Player'),
    134     'wait' => __('Please wait..', 'Fwm_Player'),
    135     'lyrics' => __('Lyrics:', 'Fwm_Player')
     90    'close' => __('Close', FwmTD),
     91    'open' => __('Open', FwmTD),
     92    'Shuffle' => __('Shuffle:  On', FwmTD),
     93    'Order' => __('Shuffle: Off', FwmTD),
     94    'volume' => __('Volume', FwmTD),
     95    'song' => __('Song:', FwmTD),
     96    'singer' => __('Singer:', FwmTD),
     97    'album' => __('Album:', FwmTD),
     98    'hide' => __('Hide the player', FwmTD),
     99    'show' => __('Expand the player', FwmTD),
     100    'Single' => __('Single cycle', FwmTD),
     101    'albums' => __('Album cycle', FwmTD),
     102    'mute' => __('Mute', FwmTD),
     103    'download' => __('Downoad from ', FwmTD),
     104    'play' => __('Current Playing', FwmTD),
     105    'change' => __('Change to ', FwmTD),
     106    'qq' => __('There is no set QQ Music content', FwmTD),
     107    'bd' => __('There is no set Baidu Music content', FwmTD),
     108    'wy' => __('There is no set Netease Music content', FwmTD),
     109    'xm' => __('There is no set Xiami Music content', FwmTD),
     110    'qqm' => __('QQ Music', FwmTD),
     111    'bdm' => __('Baidu Music', FwmTD),
     112    'wym' => __('Netease Music', FwmTD),
     113    'xmm' => __('Xiami Music', FwmTD),
     114    'Playlist' => __('Playlist', FwmTD),
     115    'Failed' => __(' Get Failed', FwmTD),
     116    'success' => __(' Get Success', FwmTD),
     117    'Autoplay' => __('Autoplay', FwmTD),
     118    'Stop' => __('Stop playing', FwmTD),
     119    'Auto' => __('Auto ', FwmTD),
     120    'off' => __('Turn off ', FwmTD),
     121    'SNext' => __('Stop playing Next time', FwmTD),
     122    'ANext' => __('Auto playing Next time', FwmTD),
     123    'from' => __('Playing from ', FwmTD),
     124    'Pause' => __('Pause', FwmTD),
     125    'Nol' => __('No lyric', FwmTD),
     126    'List' => __(' Song Lists from ', FwmTD),
     127    'Songs' => __(' Songs from ', FwmTD),
     128    'Seek' => __('Song Seeking', FwmTD),
     129    'Load' => __('Loading songs', FwmTD),
     130    'wait' => __('Please wait..', FwmTD),
     131    'lyrics' => __('Lyrics:', FwmTD)
    136132    ));
    137133  }
     
    193189                    $albumlist = $userplaylist[$i];
    194190                    $song_lists = array();
    195                     foreach ($songs[$albumlist['song_album_id']] as $tracks) {$str = explode('|', $tracks['f']);$song_lists[] = array("song_id" => $str[0], "song_title" => $tracks['fsong'], "singer" => $tracks['fsinger'], "album" => $tracks['albumName_hilight'], "pic" => 'http://imgcache.qq.com/music/photo/album_300/' . intval($str[4]) % 100 . '/300_albumpic_' . $str[4] . '_0.jpg', "mp3url" => 'http://ws.stream.qqmusic.qq.com/' . $str[0] . '.m4a?fromtag=46');}
     191                    foreach ($songs[$albumlist['song_album_id']] as $tracks) {$str = explode('|', $tracks['f']);$song_lists[] = array("song_id" => $str[0], "song_title" => $tracks['fsong'], "singer" => $tracks['fsinger'], "album" => $tracks['albumName_hilight'], "pic" => '//imgcache.qq.com/music/photo/album_300/' . intval($str[4]) % 100 . '/300_albumpic_' . $str[4] . '_0.jpg', "mp3url" => '//ws.stream.qqmusic.qq.com/' . $str[0] . '.m4a?fromtag=46');}
    196192                    $albumlist['song_list'] = $song_lists;
    197193                    print_r(json_encode($albumlist));
     
    221217                    $songs = json_decode($str, true);
    222218                    foreach ($songs['song_list'] as $tracks) {
    223                         $song_lists[] = array("song_id" => $tracks['id'], "song_title" => $tracks['songName'], "singer" => $tracks['singerName'], "album" => $tracks['albumName'], "pic" => 'http://imgcache.qq.com/music/photo/album_300/' . intval($tracks['albumId']) % 100 . '/300_albumpic_' . $tracks['albumId'] . '_0.jpg', "mp3url" => 'http://ws.stream.qqmusic.qq.com/' . $tracks['url'] . '.m4a?fromtag=46');
     219                        $song_lists[] = array("song_id" => $tracks['id'], "song_title" => $tracks['songName'], "singer" => $tracks['singerName'], "album" => $tracks['albumName'], "pic" => '//imgcache.qq.com/music/photo/album_300/' . intval($tracks['albumId']) % 100 . '/300_albumpic_' . $tracks['albumId'] . '_0.jpg', "mp3url" => '//ws.stream.qqmusic.qq.com/' . $tracks['url'] . '.m4a?fromtag=46');
    224220                    }
    225221                    $albumlist['song_list'] = $song_lists;
     
    246242                        $data = json_decode(Fwm_Player_get_curl('http://tingapi.ting.baidu.com/v1/restserver/ting?method=baidu.ting.song.play&songid=' . $tracks['song_id']), true);
    247243                        $json = explode('?', strstr($data['bitrate']['file_link'], 'baidu'));
    248                         $song_lists[] = array("song_id" => $tracks['song_id'], "song_title" => $tracks['title'], "singer" => $tracks['artist_name'], "album" => $tracks['album_title'], "pic" => $tracks['pic_big'], "mp3url" => 'http://musicdata.'.$json[0]);
     244                        $song_lists[] = array("song_id" => $tracks['song_id'], "song_title" => $tracks['title'], "singer" => $tracks['artist_name'], "album" => $tracks['album_title'], "pic" => str_replace('http:' , '' , $tracks['pic_big']), "mp3url" => 'http://musicdata.'.$json[0]);
    249245                    }
    250246                    $albumlist['song_list'] = $song_lists;
     
    267263                    $albumlist = $userplaylist[$i];
    268264                    $song_lists = array();
    269                     foreach ($songs[$albumlist['song_album_id']] as $tracks) {$song_lists[] = array("song_id" => $tracks['songId'], "song_title" => $tracks['songName'], "singer" => $tracks['artist'], "album" => $tracks['album_name'], "pic" => $tracks['album_pic'], "mp3url" => Fwm_Player_ipcxiami($tracks['location']));}
     265                    foreach ($songs[$albumlist['song_album_id']] as $tracks) {$song_lists[] = array("song_id" => $tracks['songId'], "song_title" => $tracks['songName'], "singer" => $tracks['artist'], "album" => $tracks['album_name'], "pic" => str_replace('http:' , '' , $tracks['album_pic']), "mp3url" => str_replace('http:' , '' , Fwm_Player_ipcxiami($tracks['location'])));}
    270266                    $albumlist['song_list'] = $song_lists;
    271267                    print_r(json_encode($albumlist));
     
    284280                    $song_lists = array();
    285281                    $songs = json_decode(Fwm_Player_get_curl("http://music.163.com/api/playlist/detail?id=" . $userplaylist[$i]['song_album_id']), true);
    286                     foreach ($songs['result']['tracks'] as $tracks) {$song_lists[] = array("song_id" => $tracks['id'], "song_title" => $tracks['name'], "singer" => $tracks['artists'][0]['name'], "album" => $tracks['album']['name'], "pic" => $tracks['album']['picUrl'], "mp3url" => 'http://music.163.com/song/media/outer/url?id='.$tracks['id']);}
     282                    foreach ($songs['result']['tracks'] as $tracks) {$song_lists[] = array("song_id" => $tracks['id'], "song_title" => $tracks['name'], "singer" => $tracks['artists'][0]['name'], "album" => $tracks['album']['name'], "pic" => str_replace('http:' , '' , $tracks['album']['picUrl']), "mp3url" => '//music.163.com/song/media/outer/url?id='.$tracks['id']);}
    287283                    $albumlist['song_list'] = $song_lists;
    288284                    print_r(json_encode($albumlist));
     
    328324    $httpheader[] = "Accept-Encoding:gzip,deflate,sdch";
    329325    $httpheader[] = "Accept-Language:zh-CN,zh;q=0.8";
    330     $httpheader[] = "Cookie: " . "appver=1.5.0.75771;";
     326    $httpheader[] = "Cookie:appver=1.5.0.75771";
     327    $httpheader[] = "Content-Security-Policy:upgrade-insecure-requests";
    331328    $httpheader[] = "Connection:close";
    332329    curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);
  • floating-window-music-player/trunk/js/ajaxload.js

    r1674669 r1676858  
    77var ajaxsearchPath = null; // 搜索路径
    88var ajaxscroll_top = true; // 定位返回锚点
    9 
    109// 初始化载入
    1110$(document).ready(function() { ajaxloadPageInit("")});
  • floating-window-music-player/trunk/js/player.js

    r1674669 r1676858  
    4949  localStorage.setItem('player_isload','True');
    5050  setInterval(function (){localStorage.setItem('player_runningtime',Math.round(new Date().getTime()/1000))},5000);
    51   window.onbeforeunload = function() {localStorage.setItem('player_isload','False')};
     51  window.onbeforeunload = function() {localStorage.setItem('player_isload','False');RootCookies.SetCookie("player_show", "no", -1)};
     52  window.onunload = function() {RootCookies.SetCookie("player_show", "no", -1)};
     53//自动隐藏
     54  window.onload = setTimeout(function() {$("#FwmPlayer").removeClass("show");$(".switch-player", $("#FwmPlayer")).attr("title", pollsL10n.show)},st);
    5255//是否开启歌词,移动端自动关闭
    5356  if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) {geci = "NO"; hasgeci = !1; auto = "NO"};
     
    5659  random = "YES" != random ? 0 : 1;
    5760  volume = $.cookie("player_volume") ? $.cookie("player_volume") : ".9";
    58   $(".progress", $player).attr("title", pollsL10n.volume+":"+Math.round(volume*100)+"%");
    5961  songTotal = songId = albumId = loop = mute = 0;
    6062  ycgeci = showLrc = !0;
    61   musicfirsttip = hasdefault = !1;
     63  musicfirsttip = !1;
    6264  var cicleTime = null;
    6365  $cover.html('<img src="wp-content/plugins/floating-window-music-player/inc/default.jpg">');
    64   $(".song", $player).html('<a href="//eric.cn.com/" target="_blank">'+pollsL10n.Load+'</a>');
    65   $songFrom.html('<a href="//eric.cn.com/" target="_blank">'+pollsL10n.wait+'</a>');
    66   $(".player .artist1", $player).html('<a href="//eric.cn.com/" target="_blank">Eric音像馆</a>');
     66  $(".song", $player).html('<a href="http://eric.cn.com/" target="_blank">'+pollsL10n.Load+'</a>');
     67  $songFrom.html('<a href="http://eric.cn.com/" target="_blank">'+pollsL10n.wait+'</a>');
     68  $(".player .artist1", $player).html('<a href="http://eric.cn.com/" target="_blank">Eric音像馆</a>');
    6769  $songFrom3.html('<i class="fa fa-times-circle" aria-hidden="true"></i> '+pollsL10n.lyrics+pollsL10n.Failed);
    6870  var typeid = new Array("qq","wy","xm","bd"),data = {}, FwmMedia = {
     
    7981      albumId = b;
    8082      id = FwmLists[albumId].song_list[songId].song_id;
    81       mp3url = FwmLists[albumId].song_list[songId].mp3url;
    82       audio.src = mp3url;
     83      audio.src = FwmLists[albumId].song_list[songId].mp3url;
    8384      $(".player .down", $player).show();
    8485      $(".player .down", $player).html("<i class='fa fa-download'  aria-hidden='true' title='" + pollsL10n.download + songFrom55 + ":" + FwmLists[albumId].song_list[songId].song_title + " - " + FwmLists[albumId].song_list[songId].singer + "'></i>");
     
    8788      $(".down").click(function() {window.open(audio.src, "newwindow")});
    8889//主页键
    89       $(".switch-info", $player).click(function() {window.open("//eric.cn.com/?p=1187", "newwindow")});
     90      $(".switch-info", $player).click(function() {window.open("http://eric.cn.com/?p=1187", "newwindow")});
    9091      $(".song", $player).html("<span title='" +pollsL10n.song+ FwmLists[albumId].song_list[songId].song_title + "'> " + LimitStr(FwmLists[albumId].song_list[songId].song_title) + "</span>");
    9192      $songFrom.html("<span title='" +pollsL10n.singer+ FwmLists[albumId].song_list[songId].singer + "'>" + LimitStr(FwmLists[albumId].song_list[songId].singer) + "</span>");
     
    180181    volume = (a.clientX - b) / c;
    181182    $.cookie("player_volume", volume, {path: "/",expires: 0});
    182     audio.volume = volume;
    183     $(".progress", $player).attr("title", pollsL10n.volume+":"+Math.round(volume*100)+"%");
    184     audio.volume == 1 || $(".volumeup", $player).removeClass(cur);
     183    audio.volume = volume
    185184  });
    186185//静音键
     
    239238    $(".loading,.loading2").show();
    240239    data = {action: 'Fwm_api', do: 'song', type: type, id: id, sj: suiji, from: pollsL10n.from+songFrom55};
    241     $.ajax({url: ajax_url,type: "GET",dataType: "script",data: data,success: function() {FwmTips.show(FwmLists[albumId].song_album + " - "+pollsL10n.success);hasdefault = !1; FwmPlayer.playList.creat.album();$(".play", $player).click()},error: function(a, c, b) {FwmTips.show(pollsL10n.Playlist+pollsL10n.Failed)}})
     240    $.ajax({url: ajax_url,type: "GET",dataType: "script",data: data,success: function() {FwmTips.show(FwmLists[albumId].song_album + " - "+pollsL10n.success); FwmPlayer.playList.creat.album();$(".play", $player).click()},error: function(a, c, b) {FwmTips.show(pollsL10n.Playlist+pollsL10n.Failed)}})
    242241musictooltip()
    243242}
     243//随机选择来源
    244244  typeid.sort(function(){return Math.random()>0.5?-1:1;});
    245245  for (var i=0;i<4;i++) {
     
    416416    })
    417417}
     418//播放/暂停键
    418419$(window.document).ready(function() {$(window).keydown(function(a) {192 == a.keyCode && (auto = "", audio.paused ? $(".play", $player).click() : $(".pause", $player).click())})});
    419420//显示源选择器
    420421$player.mouseover(function(){source == "YES" && $(".switch-sourse", $player).addClass("open")}).mouseout(function(){$(".switch-sourse", $player).removeClass("open")});
    421422$(window).scroll(function() {$(this).scrollTop() + $(this).height() == $(window.document).height() ? hasgeci && ycgeci && ($lrc.addClass("hide"), $songFrom3.html('<i class="fa fa-times-circle" aria-hidden="true"></i> '+pollsL10n.lyrics+pollsL10n.close), hasLrc && FwmTips.show(pollsL10n.lyrics+pollsL10n.close)) : ($lrc.hasClass("hide")) && hasgeci && ycgeci && ($lrc.removeClass("hide"), hasLrc && $songFrom3.html('<i class="fa fa-check-circle" aria-hidden="true"></i> '+pollsL10n.lyrics+pollsL10n.open), FwmTips.show(pollsL10n.lyrics+pollsL10n.open))});
    422 window.console&&window.console.log&&(console.log("%c%s","color: #81d742; background: black; font-size: 30px","WordPress浮窗音乐播放器  \n作者:Eric               \n版本:"+ver+"              \n主页:http://eric.cn.com/"))
     423window.console&&window.console.log&&(console.log("%c%s","color: #81d742; background: black; font-size: 30px","WordPress浮窗音乐播放器  \n作者:Eric               \n版本:"+ver+"              \n主页:http://eric.cn.com/"));
     424!PlayerIsLoad && window.console&&window.console.log&&(console.log("%c%s","color: #81d742; background: black; font-size: 30px","取消加载:其他页面已加载 "))
  • floating-window-music-player/trunk/js/scrollbar.js

    r1674669 r1676858  
    12111211  c.support.pointer = window.navigator.pointerEnabled;
    12121212  c.support.msPointer = window.navigator.msPointerEnabled;
    1213   var a = ("https:" == document.location.protocol) ? "https:": "http:";
    1214   c.event.special.mousewheel || document.write('<script type="text/javascript" src="' + a + '//cdn.bootcss.com/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"><\/script>');
     1213  c.event.special.mousewheel || document.write('<script type="text/javascript" src="//cdn.bootcss.com/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js"><\/script>');
    12151214  c.fn.mCustomScrollbar = function(e) {
    12161215    if (b[e]) {
  • floating-window-music-player/trunk/readme.txt

    r1674669 r1676858  
    4040* 根据非完全测试,某些AJAX插件如Advanced AJAX Page Loader会对调用Wordpress自身的AJAX造成影响,请尽量替换使用插件自带的AJAX。
    4141= 我的网站的播放按钮位置不居中或字体过大/过小怎么办? =
    42 * 在后台自定义CSS里按示例进行调整
     42* 在后台自定义CSS里按示例进行调整(3.0.2更改了字段名,升级的请注意修改)
    4343
    4444== Screenshots ==
     
    4848
    4949== Changelog ==
     50= 3.0.3 (2017/6/13) =
     51* 支持全站SSL;
     52* 修复音量键在SSL下样式丢失bug。
    5053= 3.0.2 (2017/6/9) =
    51 * 解决页面多开造成播放器重复开启;
     54* 防止页面多开造成播放器重复开启;
    5255* 修复小bug。
    5356= 3.0.1 (2017/6/1) =
    5457* 优化后台设置界面,不勾选加载防刷新时该设置板块隐藏;
    55 * mousewheel.js从插件自带改由开源CDN提供
     58* mousewheel.js改由开源CDN提供,插件不再自带
    5659= 3.0.0 (2017/5/25) =
    5760* 优化内置AJAX;
Note: See TracChangeset for help on using the changeset viewer.