Skip to content

Commit

Permalink
v 2.3.1
Browse files Browse the repository at this point in the history
1. 紧急修复暂无歌词Bug
2. 修正图片缓存问题
  • Loading branch information
webjyh committed Jan 8, 2015
1 parent c88746d commit 3984434
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WP-Player V2.3.0
WP-Player V2.3.1
=========

WP-Player 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾米歌曲地址,也支持自定义上传音乐。
Expand All @@ -9,6 +9,10 @@ WP-Player 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾
### 声明
本插件仅供个人学习研究使用,请勿作为各种商业用户,音乐版权归网易云音乐 music.163.com 和虾米音乐 www.xiami.com 所有。

### Update Ver 2.3.1 (2015-01-08)
1. 紧急修复暂无歌词Bug
2. 修正图片缓存问题

### Update Ver 2.3.0 (2015-01-08)
1. 新增歌词预览功能(支持虾米和网易)
2. 因歌词预览功能比较耗费资源,可在单独添加播放器时,打开或关闭此功能。
Expand Down
2 changes: 1 addition & 1 deletion css/wp-player-plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @date 2014-12-19
* @update 2015-01-08
* @URL http://webjyh.com
* @version 2.3.0
* @version 2.3.1
*/
.wp-player-wrap { padding: 10px; }
.wp-player-wrap .wp-player-tabs { margin: 0px; border-bottom: 1px solid #EEE; height: 36px; }
Expand Down
4 changes: 2 additions & 2 deletions css/wp-player.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @update 2015-01-08
* @URL http://webjyh.com
* @Github https://github.com/webjyh/WP-Player
* @version 2.3.0
* @version 2.3.1
*
*/
.wp-player { overflow: hidden; background: #FFF; width: 350px; min-width: 300px; margin: 10px auto; border: 1px solid #DDD; box-shadow: 0px 0px 10px rgba(0,0,0, 0.15); box-sizing: content-box; }
Expand All @@ -21,7 +21,7 @@
.wp-player .wp-player-play-current,
.wp-player .wp-player-list-btn,
.wp-player .wp-player-lyrics-btn,
.wp-player .wp-player-controls a { background: url(../images/wp_player_bg.png?ver=2.3.0) no-repeat -9999px -9999px; _background: url(../images/wp_player_bg_8.png?ver=2.3.0) no-repeat -9999px -9999px; }
.wp-player .wp-player-controls a { background: url(../images/wp_player_bg.png?ver=2.3.1) no-repeat -9999px -9999px; _background: url(../images/wp_player_bg_8.png?ver=2.3.1) no-repeat -9999px -9999px; }

.wp-player .wp-player-box { height: 90px; }
.wp-player .wp-player-thumb { position: relative; float: left; width: 90px; height: 90px; overflow: hidden; }
Expand Down
2 changes: 1 addition & 1 deletion include/player.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
if ( !class_exists( 'wp_player_plugin' ) ){

$WP_PLAYER_VERSION = '2.3.0';
$WP_PLAYER_VERSION = '2.3.1';

class wp_player_plugin {

Expand Down
6 changes: 3 additions & 3 deletions js/plugin-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @date 2014-12-19
* @update 2015-01-08
* @URL http://webjyh.com
* @version 2.3.0
* @version 2.3.1
*
*/
jQuery(document).ready(function() {
Expand Down Expand Up @@ -53,7 +53,7 @@ jQuery(document).ready(function() {
row = $val.match(regs[mark]);

if (mark == 0 && !row && !jQuery.isNumeric($val)){
alert('您的当前站点只支持虾米音乐网址');
alert('\u60a8\u7684\u5f53\u524d\u7ad9\u70b9\u53ea\u652f\u6301\u867e\u7c73\u97f3\u4e50\u7f51\u5740');
return false;
}

Expand All @@ -62,7 +62,7 @@ jQuery(document).ready(function() {
result['id'] = row[2];
} else {
if (!jQuery.isNumeric($val)){
alert('获取音乐ID失败!')
alert('\u83b7\u53d6\u97f3\u4e50ID\u5931\u8d25\uff01');
}
}

Expand Down
5 changes: 3 additions & 2 deletions js/wp-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @URL http://webjyh.com
* @Github https://github.com/webjyh/WP-Player
* @reutn {jQuery}
* @version 2.3.0
* @version 2.3.1
*
*/
~function($, soundManager) {
Expand Down Expand Up @@ -183,7 +183,7 @@
DOM.playbar.width(playbar);
DOM.time.text(pre + minute +':'+ second);

_this.attr.lyric && _this.setLyric(this.position);
if (_this.attr.lyric && _this.lyric) _this.setLyric(this.position);
},
whileloading: function() {
var seekbar = this.bytesTotal ? (this.bytesLoaded / this.bytesTotal) * 100 : 100;
Expand Down Expand Up @@ -317,6 +317,7 @@
noLyric: function(val) {
var DOM = this.DOM,
str = typeof val === 'undefined' ? '\u6682\u65e0\u6b4c\u8bcd' : val;
this.lyric = null;
DOM.lyrics.children('ul').html('<li>'+str+'</li>');
},

Expand Down
2 changes: 1 addition & 1 deletion wp-player.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP-Player
* Plugin URI: http://webjyh.com/wp-player/
* Description: 一个迷你歌曲播放器,支持多歌曲播放,支持使用虾米歌曲或网易云音乐歌曲地址,也支持自定义上传音乐。
* Version: 2.3.0
* Version: 2.3.1
* Author: M.J
* Author URI: http://webjyh.com
* License: GPLv2 or later
Expand Down

0 comments on commit 3984434

Please sign in to comment.