|
|
@@ -211,7 +211,7 @@ function bindEventYS() {
|
|
|
uHtml.className = "underlineContent no-answer";
|
|
|
uHtml.innerText = "暂无参考答案";
|
|
|
if ($(parent)[0].tagName == 'P') {
|
|
|
- if ($(parent).hasClass('correntQue')) {
|
|
|
+ if ($(parent).hasClass('correntQue') || $(parent).hasClass('boxQue')) {
|
|
|
uHtml.innerHTML = " ";
|
|
|
}
|
|
|
}
|
|
|
@@ -223,7 +223,19 @@ function bindEventYS() {
|
|
|
$.each($(".wordTable"), function (index, item) {
|
|
|
$(item).css("width", bodyWidth + "px");
|
|
|
});
|
|
|
-
|
|
|
+ //获取两个之间的答题点
|
|
|
+ var index = 1;
|
|
|
+ var checkId = 0;
|
|
|
+ $.each($(".multipleStart").nextUntil(".multipleEnd").filter("[class*='group']"), function (index, item) {
|
|
|
+ checkId = $(item).find('.yaoshi').attr("answer-id");
|
|
|
+ var index = $(item).attr('class').replace(/.*group(\d+).*/g, "$1");
|
|
|
+ var ischecked = $(item).find(".underlineContent").text().indexOf("√") > -1;
|
|
|
+ if ($(item).hasClass('boxQue')) {
|
|
|
+ $(item).find('.yaoshi').after("<div class='checkbox'><input id=" + checkId + " type='checkbox' onclick=this.checked=!this.checked><label for=" + checkId + "></label></div>");
|
|
|
+ $(item).find('input').prop('checked', ischecked);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
//显示/隐藏习题答案
|
|
|
$(".yaoshi").on("click", function () {
|
|
|
// 隐藏答案
|