自动切歌
parent
6870c82548
commit
92fb3e72ad
13
js/custom.js
13
js/custom.js
|
@ -21,7 +21,7 @@ var speed = 1;
|
|||
var upTimer = null,downTimer = null,leftTimer = null,rightTimer = null;
|
||||
var suiDanTimer = null;
|
||||
var startIndex = 0;
|
||||
// 集体舞
|
||||
// 集体舞ji
|
||||
function allDancing(dangcing){
|
||||
if(dangcing!=''){
|
||||
// clearInterval(upTimer);
|
||||
|
@ -204,9 +204,16 @@ $(function(){
|
|||
})
|
||||
},4000)
|
||||
// 自动切歌
|
||||
setInterval(()=>{
|
||||
var audio=document.getElementById('music');
|
||||
if(audio){
|
||||
audio.loop = false;
|
||||
audio.addEventListener('ended', function () {
|
||||
changeMusic()
|
||||
},1000 * 60 * 2)
|
||||
}, false);
|
||||
}
|
||||
// setInterval(()=>{
|
||||
// changeMusic()
|
||||
// },1000 * 60 * 2)
|
||||
// setTimeout(()=>{
|
||||
// console.log('开始集体舞');
|
||||
// allDancing();
|
||||
|
|
Loading…
Reference in New Issue