|
|
@@ -877,7 +877,7 @@ function Fill(data) {
|
|
|
// 嵌套式答题点不作高亮显示(只做隐藏)
|
|
|
function DealCssHiddenFunc() {
|
|
|
// 处理.wordStyle,.phraseStyle,.sentenceStyle全包含underlineContent情况
|
|
|
- $.each($(".wordStyle,.phraseStyle,.sentenceStyle"), function (i, item) {
|
|
|
+ $.each($(".wordStyle,.phraseStyle"), function (i, item) {
|
|
|
var displayCss = $(item).find(".underlineContent").css("display");
|
|
|
var showflag = $(item).find(".underlineContent").attr("showflag");
|
|
|
if (displayCss == "none" || showflag == "0") {
|
|
|
@@ -885,6 +885,15 @@ function DealCssHiddenFunc() {
|
|
|
$(item).attr("data-lstatus", "0").attr("data-setstatus", "0"); // 不高亮也不可点击
|
|
|
}
|
|
|
});
|
|
|
+ $.each($(".sentenceStyle"), function (i, item) {
|
|
|
+ var displayCss = $(item).find(".underlineContent").css("display");
|
|
|
+ var showflag = $(item).find(".underlineContent").attr("showflag");
|
|
|
+ if (displayCss == "none" || showflag == "0") {
|
|
|
+ // 针对答题点进行做隐藏处理
|
|
|
+ $(item).attr("data-lstatus", "0").attr("data-setstatus", "0"); // 不高亮也不可点击
|
|
|
+ $(item).prev(".sentImagcs").attr("data-lstatus", "0").attr("data-setstatus", "0"); // 不高亮也不可点击
|
|
|
+ }
|
|
|
+ });
|
|
|
// 处理underlineContent全包含.wordStyle,.phraseStyle,.sentenceStyle情况
|
|
|
$.each($(".underlineContent"), function (i, item) {
|
|
|
var displayCss = $(item).css("display");
|
|
|
@@ -892,6 +901,7 @@ function DealCssHiddenFunc() {
|
|
|
if (displayCss == "none" || showflag == "0") {
|
|
|
// 针对答题点进行做隐藏处理
|
|
|
$(item).find(".wordStyle,.phraseStyle,.sentenceStyle").attr("data-lstatus", "0").attr("data-setstatus", "0"); // 不高亮也不可点击
|
|
|
+ $(item).find(".sentImagcs").attr("data-lstatus", "0").attr("data-setstatus", "0"); // 不高亮也不可点击
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -959,6 +969,7 @@ function DealCssShowFunc() {
|
|
|
if (displayCss != "none" && showflag == "1") {
|
|
|
// 针对答题点进行做隐藏处理
|
|
|
$(item).attr("data-lstatus", "3").attr("data-setstatus", "1"); // 显示高亮和可点击
|
|
|
+ $(item).prev(".sentImagcs").attr("data-lstatus", "3").attr("data-setstatus", "1"); // 显示高亮和可点击
|
|
|
}
|
|
|
}
|
|
|
else if ($(item).find(".underlineContent").length > 1) {
|
|
|
@@ -1846,6 +1857,7 @@ function AddClickEvent() {
|
|
|
$(".wordStyle").unbind("click");
|
|
|
$(".phraseStyle").unbind("click");
|
|
|
$(".sentenceStyle").unbind("click");
|
|
|
+ $(".sentImagcs").unbind("click");
|
|
|
// 绑定播放作答音频
|
|
|
$(".audioImg").unbind("click");
|
|
|
//点击播放事件,视频播放
|
|
|
@@ -2021,6 +2033,17 @@ function AddClickEvent() {
|
|
|
//var ThitCode = $(this).attr("hitCode");
|
|
|
hitCodeFunc($(this).attr("hitCode"));
|
|
|
});
|
|
|
+ $(".sentImagcs").on("click", function () {
|
|
|
+ //$(".ULCBGUse").attr("data-select", "0");
|
|
|
+ //$(".wordStyle,.phraseStyle,.sentenceStyle").attr("data-glclick", "0");
|
|
|
+ //$(this).attr("data-glclick", "1");
|
|
|
+ //var datalstatus = $(this).attr("data-lstatus");
|
|
|
+ //if (datalstatus != "3") {
|
|
|
+ // return; // 不能点击
|
|
|
+ //}
|
|
|
+ ////var ThitCode = $(this).attr("hitCode");
|
|
|
+ //hitCodeFunc($(this).attr("hitCode"));
|
|
|
+ });
|
|
|
// 绑定播放作答音频
|
|
|
$(".audioImg").on("click", function () {
|
|
|
$(".wordStyle,.phraseStyle,.sentenceStyle").attr("data-glclick", "0");
|
|
|
@@ -2366,13 +2389,13 @@ function recordAudioClick(myobj, id, url) {
|
|
|
|
|
|
|
|
|
|
|
|
-function Running() {
|
|
|
- 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>');
|
|
|
- var TStr = $("#STIDStr").text() + "=>Running";
|
|
|
- $("#STIDStr").text(TStr);
|
|
|
- }, 500);
|
|
|
-}
|
|
|
-Running();
|
|
|
+//function Running() {
|
|
|
+// 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>');
|
|
|
+// var TStr = $("#STIDStr").text() + "=>Running";
|
|
|
+// $("#STIDStr").text(TStr);
|
|
|
+// }, 500);
|
|
|
+//}
|
|
|
+//Running();
|