...
|
...
|
@@ -192,24 +192,23 @@ |
|
|
$(".audio_style").click(function() {
|
|
|
console.log($('.audio_style').index(this));
|
|
|
$(audio).each(function (key, vo) {
|
|
|
console.log(audio.eq(key));
|
|
|
if(key == $('.audio_style').index(this)){
|
|
|
var audioTimer = setInterval(function() {
|
|
|
console.log(audioTime);
|
|
|
vo.play();
|
|
|
/*var audioTimer = setInterval(function() {
|
|
|
audioTime--;
|
|
|
if (audioTime % 2 == 0) {
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find('.b3').siblings().removeClass("b_active")
|
|
|
$(".b3").siblings().removeClass("b_active")
|
|
|
|
|
|
} else {
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find('.b1').addClass("b_active");
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find('.b5').addClass("b_active");
|
|
|
$(".b1").addClass("b_active");
|
|
|
$(".b5").addClass("b_active");
|
|
|
}
|
|
|
if (audioTime <= 0) {
|
|
|
audioTime = parseInt(audio.duration);
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find('.b3').siblings().removeClass("b_active")
|
|
|
audioTime = parseInt(audio1.duration);
|
|
|
$(".b3").siblings().removeClass("b_active")
|
|
|
clearInterval(audioTimer)
|
|
|
}
|
|
|
}, 1000);
|
|
|
}, 1000);*/
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
|