|
@@ -259,7 +259,7 @@ var isGCFunc = function (NodeHandle) {
|
|
|
var dealAnswerFunc = function (NodeHandle, OCFlag, ThProFlag) {
|
|
var dealAnswerFunc = function (NodeHandle, OCFlag, ThProFlag) {
|
|
|
if (OCFlag) {
|
|
if (OCFlag) {
|
|
|
if ($(NodeHandle).attr("ulflag") == 1) {
|
|
if ($(NodeHandle).attr("ulflag") == 1) {
|
|
|
- if (!ThProFlag || (ThProFlag&&$(NodeHandle).attr("showflag") == 1)) {
|
|
|
|
|
|
|
+ if (!ThProFlag || (ThProFlag && $(NodeHandle).attr("showflag") == 1)) {
|
|
|
if ($(NodeHandle).text() == "暂无参考答案") {
|
|
if ($(NodeHandle).text() == "暂无参考答案") {
|
|
|
$(NodeHandle).css("color", "#989898").attr("shcode", 1).attr("showflag", "1");
|
|
$(NodeHandle).css("color", "#989898").attr("shcode", 1).attr("showflag", "1");
|
|
|
}
|
|
}
|
|
@@ -1543,7 +1543,12 @@ function showGLWorld(wordFlag, phraseFlag, sentenceFlag) {
|
|
|
styleWPSContrl.wordFlag = wordFlag;
|
|
styleWPSContrl.wordFlag = wordFlag;
|
|
|
styleWPSContrl.phraseFlag = phraseFlag;
|
|
styleWPSContrl.phraseFlag = phraseFlag;
|
|
|
styleWPSContrl.sentenceFlag = sentenceFlag;
|
|
styleWPSContrl.sentenceFlag = sentenceFlag;
|
|
|
- dealAnswerFunc(document, true, true);
|
|
|
|
|
|
|
+ $.each($(document.body).find(".wordStyle[hitstyle='wordStyle'],.phraseStyle[hitstyle='phraseStyle'],.sentenceStyle[hitstyle='sentenceStyle']"), function (index,element) {
|
|
|
|
|
+ dealAnswerFunc(element, true, true);
|
|
|
|
|
+ $.each($(element).find("u,span,p"), function (oindex,oelement) {
|
|
|
|
|
+ dealAnswerFunc(oelement, true, true);
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
function playVisiableAudioCallBack(type, url) {
|
|
function playVisiableAudioCallBack(type, url) {
|
|
|
//console.log(url);
|
|
//console.log(url);
|