...
|
...
|
@@ -197,12 +197,12 @@ |
|
|
var index = $('.audio_style').index(this);
|
|
|
$(audio).each(function (key, vo) {
|
|
|
var audioTimer = [key];
|
|
|
console.log(audioTimer);
|
|
|
if(key == index){
|
|
|
if(vo.currentTime == 0){
|
|
|
console.log(audioTimer[key]);
|
|
|
vo.play();
|
|
|
var audioTime = parseInt(vo.duration);
|
|
|
audioTimer[0] = setInterval(function() {
|
|
|
audioTimer[key] = setInterval(function() {
|
|
|
audioTime--;
|
|
|
if (audioTime % 2 == 0) {
|
|
|
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().removeClass("b_active")
|
...
|
...
|
@@ -229,7 +229,7 @@ |
|
|
}else{
|
|
|
vo.currentTime = 0;
|
|
|
vo.pause();
|
|
|
clearInterval(audioTimer)
|
|
|
clearInterval(audioTimer[key])
|
|
|
/*var highestIntervalId = setInterval(";");
|
|
|
console.log(highestIntervalId);
|
|
|
for (var i = 0 ; i < highestIntervalId ; i++) {
|
...
|
...
|
@@ -240,7 +240,7 @@ |
|
|
console.log(111);
|
|
|
vo.currentTime = 0;
|
|
|
vo.pause();
|
|
|
clearInterval(audioTimer)
|
|
|
clearInterval(audioTimer[key])
|
|
|
// var highestIntervalId = setInterval(";");
|
|
|
// for (var i = 0 ; i < highestIntervalId ; i++) {
|
|
|
// clearInterval(i);
|
...
|
...
|
|