Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

Commit 58d80ea

Browse files
committed
优化格式
1 parent 6a4fe60 commit 58d80ea

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

static/js/music.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ $(function() {
188188
if (!v.title) v.title = '暂无';
189189
if (!v.author) v.author = '暂无';
190190
if (!v.pic) v.pic = nopic;
191-
if (!v.lrc) v.lrc = '[00:00.00] 暂无歌词'
191+
if (!v.lrc) v.lrc = '[00:00.00] 暂无歌词';
192192
if (!/\[00:(\d{2})\./.test(v.lrc)) {
193193
v.lrc = '[00:00.00] 无效歌词';
194194
}
@@ -201,11 +201,8 @@ $(function() {
201201
$('#j-lrc').val(data.lrc);
202202
$('#j-lrc-btn').attr(
203203
'href',
204-
'data:application/octet-stream;base64,' + btoa(
205-
unescape(
206-
encodeURIComponent(data.lrc)
207-
)
208-
)
204+
'data:application/octet-stream;base64,' +
205+
btoa(unescape(encodeURIComponent(data.lrc)))
209206
);
210207
if ('download' in $('#j-src-btn')[0]) {
211208
var name = data.title + '-' + data.author;
@@ -253,7 +250,7 @@ $(function() {
253250
});
254251
} else {
255252
player.addMusic(result.data);
256-
playerList = playerList.concat(result.data)
253+
playerList = playerList.concat(result.data);
257254
}
258255

259256
player.on('canplay', function() {
@@ -269,7 +266,8 @@ $(function() {
269266
'url(' + nopic + ')'
270267
);
271268
};
272-
document.title = '正在播放: ' + data.title + ' - ' + data.author;
269+
document.title =
270+
'正在播放: ' + data.title + ' - ' + data.author;
273271
setValue(data);
274272
});
275273
player.on('ended', function() {

0 commit comments

Comments
 (0)