From ba9754a39de3682c4f30d10a0857d15f70a527d4 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 15 Nov 2015 21:48:42 +0800 Subject: [PATCH] Weibo share button --- APlayer.js | 2 +- README.md | 5 +++-- demo/index.html | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/APlayer.js b/APlayer.js index afe8702..dc10ba9 100644 --- a/APlayer.js +++ b/APlayer.js @@ -18,7 +18,7 @@ APlayer.prototype.init = function () { + '
' + '' + this.option.music.title + '' + ' - ' + this.option.music.author + '' - + '' + + '' + '
' + '
' + '
' diff --git a/README.md b/README.md index f09c9f5..c364d47 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The following HTML structure is used for APlayer: ``` -And this is how the jRating is initialized: +And this is how the APlayer is initialized: ``` var ap = new APlayer({ @@ -75,7 +75,8 @@ API - [x] 播放进度拖拽控制 - [x] 音量控制 -- [ ] 分享到微博 +- [x] 分享到微博 +- [ ] 错误处理 - [ ] 播放列表 - [ ] 歌词展示 diff --git a/demo/index.html b/demo/index.html index eed2a48..a0df719 100644 --- a/demo/index.html +++ b/demo/index.html @@ -18,7 +18,7 @@ title: 'Preparation', author: 'Hans Zimmer/Richard Harvey', url: 'Preparation.mp3', - pic: 'Preparation.jpg' + pic: 'https://dn-diygod.qbox.me/Preparation.jpg' } }); ap.init();