|
@@ -1075,13 +1075,18 @@ function bindEventYS(sWidthVal, isAStatus, isMAStatus) {
|
|
|
else {
|
|
else {
|
|
|
selectImgULContent($(item).parent(), index);
|
|
selectImgULContent($(item).parent(), index);
|
|
|
}
|
|
}
|
|
|
|
|
+ // 如果不存在答题点答案,那么构建一个空的underlinecontent
|
|
|
|
|
+ if ($(".underlineContent[yaoshi-flag='" + index + "']").length == 0) {
|
|
|
|
|
+ var HtmlStr = '<u class="underlineContent" yaoshi-flag="' + index + '" showflag="1" ucflag="1" style="border-bottom: 1px solid rgb(151, 151, 151); text-decoration: none; white-space: pre-wrap; font-size: 16px;"></u>';
|
|
|
|
|
+ $(this).after(HtmlStr);
|
|
|
|
|
+ }
|
|
|
// 获取当前要是的标准答案
|
|
// 获取当前要是的标准答案
|
|
|
var AnswerText = "";
|
|
var AnswerText = "";
|
|
|
$.each($(".underlineContent[yaoshi-flag='" + index + "']"), function (tIndex, tItem) {
|
|
$.each($(".underlineContent[yaoshi-flag='" + index + "']"), function (tIndex, tItem) {
|
|
|
AnswerText += $(this).text();
|
|
AnswerText += $(this).text();
|
|
|
// 补充嵌套,data-select表示选择状态0表示未选择,1表示已作答选择,2表示未做答选择
|
|
// 补充嵌套,data-select表示选择状态0表示未选择,1表示已作答选择,2表示未做答选择
|
|
|
if ($(this).parent().children().length > 1) {
|
|
if ($(this).parent().children().length > 1) {
|
|
|
- $(this).prop("outerHTML", '<span class="ULCBGUse" data-select="0" onselectstart="return true">' + $(this).html() + '</span>');
|
|
|
|
|
|
|
+ $(this).prop("outerHTML", '<span class="ULCBGUse" data-select="0" onselectstart="return true">' + $(this).prop("outerHTML") + '</span>');
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
$(this).parent().addClass("ULCBGUse").attr("data-select", "0");
|
|
$(this).parent().addClass("ULCBGUse").attr("data-select", "0");
|
|
@@ -1160,6 +1165,11 @@ function bindEventTeaOrignalYS(sWidthVal, isAStatus, isMAStatus) {
|
|
|
else {
|
|
else {
|
|
|
selectImgULContent($(item).parent(), index);
|
|
selectImgULContent($(item).parent(), index);
|
|
|
}
|
|
}
|
|
|
|
|
+ // 如果不存在答题点答案,那么构建一个空的underlinecontent
|
|
|
|
|
+ if ($(".underlineContent[yaoshi-flag='" + index + "']").length == 0) {
|
|
|
|
|
+ var HtmlStr = '<u class="underlineContent" yaoshi-flag="' + index + '" showflag="1" ucflag="1" style="border-bottom: 1px solid rgb(151, 151, 151); text-decoration: none; white-space: pre-wrap; font-size: 16px;"></u>';
|
|
|
|
|
+ $(this).after(HtmlStr);
|
|
|
|
|
+ }
|
|
|
if (isAStatus != 1) {
|
|
if (isAStatus != 1) {
|
|
|
// 学生隐藏答案
|
|
// 学生隐藏答案
|
|
|
$(item).attr('answer-id', index).attr("showflag", "0").css("display", "none").attr("data-status", "0").attr("answer-isky", "0").attr("src", PicInfo.yaoshiHideImgUrl);
|
|
$(item).attr('answer-id', index).attr("showflag", "0").css("display", "none").attr("data-status", "0").attr("answer-isky", "0").attr("src", PicInfo.yaoshiHideImgUrl);
|
|
@@ -1171,7 +1181,7 @@ function bindEventTeaOrignalYS(sWidthVal, isAStatus, isMAStatus) {
|
|
|
AnswerText += $(this).text();
|
|
AnswerText += $(this).text();
|
|
|
// 补充嵌套
|
|
// 补充嵌套
|
|
|
if ($(this).parent().children().length > 1) {
|
|
if ($(this).parent().children().length > 1) {
|
|
|
- $(this).prop("outerHTML", '<span class="ULCBGUse" data-select="0" onselectstart="return true">' + $(item).html() + '</span>');
|
|
|
|
|
|
|
+ $(this).prop("outerHTML", '<span class="ULCBGUse" data-select="0" onselectstart="return true">' + $(this).prop("outerHTML") + '</span>');
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
$(this).parent().addClass("ULCBGUse").attr("data-select", "0");
|
|
$(this).parent().addClass("ULCBGUse").attr("data-select", "0");
|
|
@@ -1255,8 +1265,7 @@ function handleAnswerRange() {
|
|
|
TAnsText += " " + $(tItem).text();
|
|
TAnsText += " " + $(tItem).text();
|
|
|
});
|
|
});
|
|
|
// 添加答题点
|
|
// 添加答题点
|
|
|
- if (AnswerIsky == 1) { }
|
|
|
|
|
- else if (AnswerIsky == 2) {
|
|
|
|
|
|
|
+ if (AnswerIsky == 2) {
|
|
|
$(item).after("<div class='cBoxCls cBoxCls_" + AnswerID + "' answer-id='" + AnswerID + "' parent-anid='" + AnswerPID + "' data-status='0' onclick='clickCheckBox(" + AnswerID + ")' answer-anstext='" + TAnsText + "'></div>");
|
|
$(item).after("<div class='cBoxCls cBoxCls_" + AnswerID + "' answer-id='" + AnswerID + "' parent-anid='" + AnswerPID + "' data-status='0' onclick='clickCheckBox(" + AnswerID + ")' answer-anstext='" + TAnsText + "'></div>");
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|