Merge pull request #14 from lzcykevin/master

修改顺序播放控制
pull/21/head
mengkun 2018-01-11 15:44:44 +08:00 committed by GitHub
commit b6d4a0613f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -661,15 +661,15 @@ body {
height: 25px;
/* margin-top: -10px; */
}
.btn-order-1{
.btn-order-single {
background-position: 0 -231px;
height: 25px;
}
.btn-order-2{
.btn-order-list {
background-position: 0 -204px;
height: 25px;
}
.btn-order-3{
.btn-order-random {
background-position: 0 -73px;
height: 20px;
}

View File

@ -71,7 +71,19 @@ function orderChange() {
}
var orderDiv = $(".btn-order")
orderDiv.removeClass()
orderDiv.addClass("player-btn btn-order btn-order-" + rem.order)
if ( 1 === rem.order ) {
orderDiv.addClass("player-btn btn-order btn-order-single")
orderDiv.attr("title","单曲循环")
}
else if ( 2 === rem.order ) {
orderDiv.addClass("player-btn btn-order btn-order-list")
orderDiv.attr("title","列表循环")
}
else if ( 3 === rem.order ) {
orderDiv.addClass("player-btn btn-order btn-order-random")
orderDiv.attr("title","随机播放")
}
}
// 播放
function audioPlay() {