...
|
...
|
@@ -193,16 +193,15 @@ |
|
|
});
|
|
|
var over = [];
|
|
|
$(".audio_style").click(function() {
|
|
|
var audioTimer = [];
|
|
|
var index = $('.audio_style').index(this);
|
|
|
$(audio).each(function (key, vo) {
|
|
|
audioTimer[key] = "audioTimer"+key;
|
|
|
if(key == index){
|
|
|
if(vo.currentTime == 0 || vo.currentTime == vo.duration){
|
|
|
console.log(audioTimer[key]+"开始");
|
|
|
console.log("开始");
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().removeClass("b_stop");
|
|
|
vo.play();
|
|
|
var audioTime = parseInt(vo.duration);
|
|
|
audioTimer[key] = setInterval(function() {
|
|
|
var audioTimer = setInterval(function() {
|
|
|
audioTime--;
|
|
|
console.log(audioTime)
|
|
|
if (audioTime % 2 == 0) {
|
...
|
...
|
@@ -224,16 +223,15 @@ |
|
|
}
|
|
|
audioTime = parseInt(vo.duration);
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().removeClass("b_active");
|
|
|
clearInterval(audioTimer[key]);
|
|
|
clearInterval(audioTimer);
|
|
|
}
|
|
|
}, 1000);
|
|
|
}else{
|
|
|
console.log(audioTimer[key]+"暂停");
|
|
|
console.log("暂停");
|
|
|
vo.currentTime = 0;
|
|
|
vo.pause();
|
|
|
// clearInterval(eval(audioTimer[key]));
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().addClass("b_stop");
|
|
|
console.log("???")
|
|
|
/*var highestIntervalId = setInterval(";");
|
|
|
console.log(highestIntervalId);
|
|
|
for (var i = 0 ; i < highestIntervalId ; i++) {
|
...
|
...
|
@@ -243,7 +241,8 @@ |
|
|
}else{
|
|
|
vo.currentTime = 0;
|
|
|
vo.pause();
|
|
|
clearInterval(audioTimer[key])
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().addClass("b_stop");
|
|
|
// clearInterval(audioTimer[key])
|
|
|
// var highestIntervalId = setInterval(";");
|
|
|
// for (var i = 0 ; i < highestIntervalId ; i++) {
|
|
|
// clearInterval(i);
|
...
|
...
|
|