namejr hace 4 años
padre
commit
f5b199fbe6

+ 11 - 9
EBook.Web/Common/mtm_temp.js

@@ -1,9 +1,9 @@
 /*高亮文本标注*/
 function Fill(data) {
     var highlightArr = [];
-    if ($(document.body).find(".wordStyle,.phraseStyle,.phraseStyle").length > 0 && typeof (dealAnswerFunc) == "function") {
-        dealAnswerFunc(document.body, false, false);
-    }
+    //if ($(document.body).find(".wordStyle,.phraseStyle,.phraseStyle").length > 0 && typeof (dealAnswerFunc) == "function") {
+    //    dealAnswerFunc(document.body, false, false);
+    //}
     clearHighlight();
     $.each(data, function (i, item) {
         if (typeof (item.HightCode) != 'undefined' && item.HightCode != null && item.HightCode != "") {
@@ -55,12 +55,14 @@ function Fill(data) {
             }
         });
         // 绑定横线内处理
-        $(document).find(".wordStyle,.phraseStyle,.phraseStyle,u,span,p").attr("ulflag", "0").attr("shcode", 1).attr("showflag", "1");
-        $(document).find(".underlineContent").attr("shcode", 1).attr("ulflag", "1").attr("showflag", "1");
-        $.each($(".underlineContent").find(".wordStyle,.phraseStyle,.phraseStyle,u,span,p"), function (index,element) {
-            $(element).attr("shcode", 1).attr("ulflag", "1").attr("showflag", "1");
-        });
-});
+        if ($(document).find(".wordStyle,.phraseStyle,.phraseStyle,u,span,p").attr("ulflag")==undefined) {
+            $(document).find(".wordStyle,.phraseStyle,.phraseStyle,u,span,p").attr("ulflag", "0").attr("shcode", 1).attr("showflag", "1");
+            $(document).find(".underlineContent").attr("shcode", 1).attr("ulflag", "1").attr("showflag", "1");
+            $.each($(".underlineContent").find(".wordStyle,.phraseStyle,.phraseStyle,u,span,p"), function (index, element) {
+                $(element).attr("shcode", 1).attr("ulflag", "1").attr("showflag", "1");
+            });
+        }
+    });
 }
 
 function clearHighlight() {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
EBook.Web/HightCode/data202116P.json


+ 1 - 0
EBook.Web/HightCode/data202116S.json

@@ -0,0 +1 @@
+[{"HightCode":"SS68","SourceCode":"CD0502804A004FBAC"}]

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
EBook.Web/HightCode/data202116W.json


+ 7 - 1
EBook.Web/Test.html

@@ -52,7 +52,7 @@
         }
         //加载听说课文
         $("#load-text").on("click", function () {
-            var data = $.ajax({ url: "lghp/gouxuan.lghp", async: false }).responseText;
+            var data = $.ajax({ url: "lghp/data202116.lghp", async: false }).responseText;
             $("#data").html(data);
 
             //Fill(JSON.parse(hightcodejson));
@@ -144,14 +144,20 @@
         var sentenceStyleFlag = true;
         $("#wordStyleID").on("click", function () {
             wordStyleFlag = !wordStyleFlag;
+            hightcodejson = $.ajax({ url: "HightCode/data202116W.json", async: false }).responseText;
+            Fill(JSON.parse(hightcodejson));
             showGLWorld(wordStyleFlag, phraseStyleFlag, sentenceStyleFlag);
         });
         $("#phraseStyleID").on("click", function () {
             phraseStyleFlag = !phraseStyleFlag;
+            hightcodejson = $.ajax({ url: "HightCode/data202116P.json", async: false }).responseText;
+            Fill(JSON.parse(hightcodejson));
             showGLWorld(wordStyleFlag, phraseStyleFlag, sentenceStyleFlag);
         });
         $("#sentenceStyleID").on("click", function () {
             sentenceStyleFlag = !sentenceStyleFlag;
+            hightcodejson = $.ajax({ url: "HightCode/data202116S.json", async: false }).responseText;
+            Fill(JSON.parse(hightcodejson));
             showGLWorld(wordStyleFlag, phraseStyleFlag, sentenceStyleFlag);
         });
         $("#ShowID").on("click", function () {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
EBook.Web/lghp/data202116.lghp


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio