|
|
@@ -799,9 +799,11 @@ var clickCheckBox = function (inputId) {
|
|
|
var BoxJqStr = ".cBoxCls_" + inputId;
|
|
|
if ($(BoxJqStr).attr("data-status") == "1") {
|
|
|
$(BoxJqStr).attr("data-status", "0");
|
|
|
+ Text = "";
|
|
|
}
|
|
|
else {
|
|
|
$(BoxJqStr).attr("data-status", "1");
|
|
|
+ Text = "√";
|
|
|
}
|
|
|
var parentAnid = $(BoxJqStr).attr("parent-anid");
|
|
|
$(".cBoxCls[parent-anid='" + parentAnid + "']").parent(".cBoxClsBg").attr("data-select", "1");
|
|
|
@@ -810,6 +812,7 @@ var clickCheckBox = function (inputId) {
|
|
|
curObj.pId = $(BoxJqStr).attr("parent-anid");//答题点ID
|
|
|
curObj.IsKY = 2;//是否是口语试题,0-不是口语题,1-是口语题
|
|
|
curObj.AnsText = $(BoxJqStr).attr("answer-anstext");//参考答案
|
|
|
+ curObj.Text = Text; //用户答案
|
|
|
onClickAnswerPoint(JSON.stringify(curObj));
|
|
|
}
|
|
|
// #endregion
|
|
|
@@ -1288,12 +1291,14 @@ function handleAnswerRange() {
|
|
|
}
|
|
|
// 获取答案
|
|
|
var TAnsText = "";
|
|
|
+ var TATSpace = "";
|
|
|
$.each($(".underlineContent[yaoshi-flag='" + AnswerID + "']"), function (index, tItem) {
|
|
|
- TAnsText += " " + $(tItem).text();
|
|
|
+ TAnsText += TATSpace + $(tItem).text();
|
|
|
+ TATSpace = " ";
|
|
|
});
|
|
|
var ClsName = $(item).next().attr("class");
|
|
|
// 添加答题点
|
|
|
- if (AnswerIsky == 2){
|
|
|
+ if (AnswerIsky == 2) {
|
|
|
// 防止重复添加
|
|
|
if (cTTypeFunc == 2 && ClsName != "cBoxClsBg") {
|
|
|
$(item).after("<div class='cBoxClsBg' data-select='0'><div class='cBoxCls cBoxCls_" + AnswerID + "' answer-id='" + AnswerID + "' parent-anid='" + AnswerPID + "' data-status='0' onclick='clickCheckBox(" + AnswerID + ")' answer-anstext='" + TAnsText + "'></div></div>");
|
|
|
@@ -2195,10 +2200,10 @@ function stuEntryFunc(sWidthVal, isAStatus, isMAStatus, data) {
|
|
|
if (typeof (Fill) == "function") {
|
|
|
Fill(TFillData);
|
|
|
}
|
|
|
- // 最终样式渲染
|
|
|
- DealCssHiddenFunc();
|
|
|
- // 点击事件补充
|
|
|
- AddClickEvent();
|
|
|
+ // 最终样式渲染
|
|
|
+ DealCssHiddenFunc();
|
|
|
+ // 点击事件补充
|
|
|
+ AddClickEvent();
|
|
|
return ReData;
|
|
|
}
|
|
|
|
|
|
@@ -2487,7 +2492,7 @@ function scrollAnswer(answerid) {
|
|
|
WType = "1";
|
|
|
}
|
|
|
$(".underlineContent[parent-anid=" + answerid + "]").parent(".ULCBGUse").attr("data-select", WType);
|
|
|
- if ($(ansDom).length==1) {
|
|
|
+ if ($(ansDom).length == 1) {
|
|
|
if ($(".underlineContent[yaoshi-flag=" + answerid + "]").length > 1) {
|
|
|
$(".underlineContent[yaoshi-flag=" + answerid + "]").first().parent(".ULCBGUse").css("border-radius", "5px 0px 0px 5px");
|
|
|
$(".underlineContent[yaoshi-flag=" + answerid + "]").last().parent(".ULCBGUse").css("border-radius", "0px 5px 5px 0px");
|
|
|
@@ -2637,7 +2642,7 @@ function hideStyleColor(index) {
|
|
|
// window.setTimeout(function () {
|
|
|
// $("#STIDStr").remove();
|
|
|
// //$(this).after('<div id="STIDStr" style="position:fixed;top:100px;left:10px;width:200px;height:20px;background-color:yellow;color:#000;">display:' + $(this).css("display") + "=>showflag:" + $(this).attr("showflag") + '</div>');
|
|
|
-// $("p").eq(0).after('<div id="STIDStr" style="position:fixed;top:100px;left:10px;width:350px;height:auto;background-color:yellow;color:#000;overflow:hidden;"></div>');
|
|
|
+// $("p").eq(0).after('<div id="STIDStr" style="position:fixed;top:100px;left:10px;width:350px;height:500px;overflow-y:auto;background-color:yellow;color:#000;overflow:hidden;"></div>');
|
|
|
// var TStr = $("#STIDStr").text() + "=>Running";
|
|
|
// $("#STIDStr").text(TStr);
|
|
|
// }, 500);
|