From 8855992e5083311110c59b4ac80c07d2b2aeebc1 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Tue, 7 Dec 2021 13:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E8=B5=B7=E5=87=BB?= =?UTF-8?q?=E5=89=91=E3=80=81=E4=B8=80=E8=B5=B7=E8=B5=B7=E9=A3=9E=E3=80=81?= =?UTF-8?q?=E8=B5=B7=E9=A3=9E=E3=80=81=E5=87=BB=E5=89=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/handle.js | 66 ++++++++++++++++++++++++++-------------------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/js/handle.js b/js/handle.js index 43689f6..7bc4c74 100644 --- a/js/handle.js +++ b/js/handle.js @@ -179,8 +179,8 @@ function receiveMessage(event) if (highList!=undefined && highList.length > 0) { leaderInfo = highList[0] } - leaderInfo = '内有猛犬小心' - // leaderInfo = '饺子吃肉肉' + // leaderInfo = '内有猛犬小心' + leaderInfo = '饺子吃肉肉' // uid是否存在 不存在则存入uidObj let isNew = 0 @@ -293,29 +293,29 @@ function receiveMessage(event) } } //领舞起飞 - // if(leader.text==="起飞"){ - // if(firTimes==0){ - // firTimes++; - // $('.stick').removeClass('stick-swing'); - // $('.stick').addClass('stick-go'); - // setTimeout(()=>{ - // $('.stick').removeClass('stick-go'); - // $('.stick').addClass('stick-swing'); - // firTimes = 0; - // },6000) - // } - // } + if(leader.text==="起飞"){ + if(firTimes==0){ + firTimes++; + $('.stick').removeClass('stick-swing'); + $('.stick').addClass('stick-go'); + setTimeout(()=>{ + $('.stick').removeClass('stick-go'); + $('.stick').addClass('stick-swing'); + firTimes = 0; + },6000) + } + } //一起击剑 - // if(leader.text==="一起击剑"){ - // if(firTimes==0){ - // firTimes++; - // $('.stick').addClass('stickcome'); - // setTimeout(()=>{ - // $('.stick').removeClass('stickcome'); - // firTimes = 0; - // },6000) - // } - // } + if(leader.text==="一起击剑"){ + if(firTimes==0){ + firTimes++; + $('.stick').addClass('stickcome'); + setTimeout(()=>{ + $('.stick').removeClass('stickcome'); + firTimes = 0; + },6000) + } + } // 领舞喊一起喊 if (leader.text.length >= 4) { @@ -333,15 +333,15 @@ function receiveMessage(event) allDancing(leader.event); } // 领舞喊荧光棒事件 - if(getLeaderFluoEvent(leader.text)!=''){ - if(firTimes==0){//防多次说话 - firTimes++; - console.log(getLeaderFluoEvent(leader.text)); - setTimeout(()=>{ - firTimes = 0; - },5000) - } - } + // if(getLeaderFluoEvent(leader.text)!=''){ + // if(firTimes==0){//防多次说话 + // firTimes++; + // console.log(getLeaderFluoEvent(leader.text)); + // setTimeout(()=>{ + // firTimes = 0; + // },5000) + // } + // } } // -------------------- 每条弹幕处理 end ----------------------- }