update
This commit is contained in:
@@ -193,6 +193,10 @@
|
||||
"use strict";
|
||||
$('body').addClass('fake');
|
||||
|
||||
let sec1Shown = false;
|
||||
|
||||
|
||||
|
||||
const audiom08 = CourseNav.createSound('audio/audiom08.mp3');
|
||||
const audiom12 = CourseNav.createSound('audio/audiom12.mp3');
|
||||
|
||||
@@ -227,7 +231,8 @@
|
||||
$('.btn-next-section').click(function () {
|
||||
$(this).removeClass('animate__animated animate__pulse animate__infinite');
|
||||
gotoSection($(this).data('sec'));
|
||||
$(this).parent().hide();
|
||||
sec1Shown = true;
|
||||
$('.ins0').hide();
|
||||
|
||||
const audioName = $(this).data('audio');
|
||||
if (audioName) {
|
||||
@@ -267,7 +272,7 @@
|
||||
didClose: () => {
|
||||
document.body.style.paddingRight = '';
|
||||
CourseNav.audioController.stopAudio();
|
||||
if($('.btn-pop').length == $('.btn-pop.completed').length) {
|
||||
if($('.btn-pop').length == $('.btn-pop.completed').length && !sec1Shown) {
|
||||
$('.ins0').show();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user