|
|
@@ -216,7 +216,9 @@ function cHPhraseStyleFunc(element) {
|
|
|
}
|
|
|
|
|
|
// 添加高亮新调用处理(1:单词;2:短语;4:句型)
|
|
|
+var fillDataNum = 0;
|
|
|
function adjustFillFunc(DataNum) {
|
|
|
+ fillDataNum = DataNum;
|
|
|
switch (DataNum) {
|
|
|
case 0:
|
|
|
$(".wordStyle").attr("data-setstatus", "0").attr("data-lstatus", "1");
|
|
|
@@ -242,10 +244,26 @@ function adjustFillFunc(DataNum) {
|
|
|
$(".wordStyle").attr("data-setstatus", "0").attr("data-lstatus", "1");
|
|
|
$(".phraseStyle").attr("data-setstatus", "1");
|
|
|
$.each($(".phraseStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1" || $(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "2");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "2");
|
|
|
}
|
|
|
});
|
|
|
@@ -264,10 +282,26 @@ function adjustFillFunc(DataNum) {
|
|
|
});
|
|
|
$(".phraseStyle").attr("data-setstatus", "1");
|
|
|
$.each($(".phraseStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1" || $(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "2");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "2");
|
|
|
}
|
|
|
});
|
|
|
@@ -280,11 +314,30 @@ function adjustFillFunc(DataNum) {
|
|
|
$(".sentenceStyle").attr("data-setstatus", "1");
|
|
|
$(".sentImagcs").attr("data-setstatus", "1");
|
|
|
$.each($(".sentenceStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1"||$(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "3");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "3");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
}
|
|
|
@@ -304,11 +357,30 @@ function adjustFillFunc(DataNum) {
|
|
|
$(".sentenceStyle").attr("data-setstatus", "1");
|
|
|
$(".sentImagcs").attr("data-setstatus", "1");
|
|
|
$.each($(".sentenceStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1"||$(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "3");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "3");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
}
|
|
|
@@ -318,21 +390,55 @@ function adjustFillFunc(DataNum) {
|
|
|
$(".wordStyle").attr("data-setstatus", "0").attr("data-lstatus", "1");
|
|
|
$(".phraseStyle").attr("data-setstatus", "1");
|
|
|
$.each($(".phraseStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1"||$(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "2");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "2");
|
|
|
}
|
|
|
});
|
|
|
$(".sentenceStyle").attr("data-setstatus", "1");
|
|
|
$(".sentImagcs").attr("data-setstatus", "1");
|
|
|
$.each($(".sentenceStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1"||$(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "3");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "3");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
}
|
|
|
@@ -350,21 +456,55 @@ function adjustFillFunc(DataNum) {
|
|
|
});
|
|
|
$(".phraseStyle").attr("data-setstatus", "1");
|
|
|
$.each($(".phraseStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1" || $(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "2");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "2");
|
|
|
}
|
|
|
});
|
|
|
$(".sentenceStyle").attr("data-setstatus", "1");
|
|
|
$(".sentImagcs").attr("data-setstatus", "1");
|
|
|
$.each($(".sentenceStyle"), function () {
|
|
|
- if ($(this).attr("showflag") == "1"||$(this).find(".underlineContent").attr("showflag") == "1") {
|
|
|
+ if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length == 0) {
|
|
|
$(this).attr("data-lstatus", "0");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
}
|
|
|
- else {
|
|
|
+ else if ($(this).attr("showflag") == "1" && $(this).find(".underlineContent").length > 0) {
|
|
|
+ // 判断答题点内是否课件
|
|
|
+ var TFlag = true; // 默认显示
|
|
|
+ $.each($(this).find(".underlineContent"), function (oIndex, oIItem) {
|
|
|
+ var tShowFlag = $(oIItem).attr("showflag");
|
|
|
+ if (tShowFlag == undefined || tShowFlag == "0") {
|
|
|
+ TFlag = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (TFlag) {
|
|
|
+ $(this).attr("data-lstatus", "0");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "0");
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $(this).attr("data-lstatus", "3");
|
|
|
+ $(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if ($(this).attr("showflag") == "0") {
|
|
|
$(this).attr("data-lstatus", "3");
|
|
|
$(this).prev(".sentImagcs").attr("data-lstatus", "3");
|
|
|
}
|