Fix js bug.
This commit is contained in:
parent
bf6234cdbc
commit
dd11045c03
|
@ -40,21 +40,21 @@
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var flag = 1;
|
var flag = 1;
|
||||||
$('.pause-slide').off('click').click(function(){
|
$('[data-subpart-id="{{subpart-id}}"] .pause-slide').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
||||||
$(this).addClass('active')
|
$(this).addClass('active')
|
||||||
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active')
|
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active')
|
||||||
});
|
});
|
||||||
$('.resume-slide').off('click').click(function(){
|
$('[data-subpart-id="{{subpart-id}}"] .resume-slide').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
||||||
$(this).addClass('active')
|
$(this).addClass('active')
|
||||||
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active')
|
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active')
|
||||||
});
|
});
|
||||||
$('.next-button').off('click').on('click',function(){
|
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
||||||
|
|
||||||
})
|
})
|
||||||
$('.prev-button').off('click').on('click',function(){
|
$('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -277,20 +277,20 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
banner_wrap.height(height)*/
|
banner_wrap.height(height)*/
|
||||||
banner_wrap.css("padding-bottom","");
|
banner_wrap.css("padding-bottom","");
|
||||||
{{extra_document_ready_script}}
|
{{extra_document_ready_script}}
|
||||||
$('.pause-slide').off('click').click(function(){
|
$('[data-subpart-id="{{subpart-id}}"] .pause-slide').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('pause');
|
||||||
$(this).addClass('active');
|
$(this).addClass('active');
|
||||||
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active');
|
$(this).parents('.controlplay').eq(0).find('.resume-slide').removeClass('active');
|
||||||
});
|
});
|
||||||
$('.resume-slide').off('click').click(function(){
|
$('[data-subpart-id="{{subpart-id}}"] .resume-slide').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle('resume');
|
||||||
$(this).addClass('active');
|
$(this).addClass('active');
|
||||||
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active');
|
$(this).parents('.controlplay').eq(0).find('.pause-slide').removeClass('active');
|
||||||
});
|
});
|
||||||
$('.next-button').off('click').on('click',function(){
|
$('[data-subpart-id="{{subpart-id}}"] .next-button').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("next");
|
||||||
})
|
})
|
||||||
$('.prev-button').off('click').on('click',function(){
|
$('[data-subpart-id="{{subpart-id}}"] .prev-button').click(function(){
|
||||||
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
$(this).parent("ul").parent('.w-ba-banner').find(".cycle-slideshow").cycle("prev");
|
||||||
})
|
})
|
||||||
var resize_timeout_id;
|
var resize_timeout_id;
|
||||||
|
|
Loading…
Reference in New Issue