Bläddra i källkod

修改高亮标注问题

lujianhong 5 år sedan
förälder
incheckning
e371adb5d7

+ 418 - 0
EBook.Web/Common/mtm_passage.css

@@ -0,0 +1,418 @@
+/*html {
+    overflow: visible;
+    padding: 0;
+    margin: 0;
+}
+
+body {
+    font-family: Cambria;
+    font-size: 12pt;
+    overflow: auto;
+    background-color: #ffffff;
+    color: #000000;
+}*/
+
+::selection
+{
+	background-color: #0099CC;
+	color:#fff;
+}
+
+.mark{
+    height:30px;
+    width: 120px;
+    margin-top: -6px;
+    background-image: url("../image/mark.png");
+}
+
+.mark:hover{
+    background-image: url("../image/mark_hover.png");
+}
+
+.klgList
+{
+	background-color:#fff0e6;
+	border:1px solid #b77b59;
+}
+
+.klgList>div
+{
+	color:#b36a3b;
+	cursor:pointer;
+	padding:2px 2px 2px 5px;
+}
+
+.klgList>div:hover
+{
+	background-color:#f0dbcd;
+}
+
+.selectBtn{
+    margin-top: 5px;
+    float: right;
+    width: 30px;
+    height: 30px;
+    background-image: url(../image/selectBtn.png);
+    cursor: pointer;
+}
+
+.toolBar{
+    height: 40px;
+    background-color: #dceff7;
+}
+
+.toolBar div{
+    position: relative;
+    left: 8px;
+    height: 38px;
+    width: 114px;
+    background-image: url("../image/highlight.png");
+}
+.toolBar div.hover{
+    background-image: url("../image/highlight_hover.png");
+}
+
+.toolBarMenu {
+    position: absolute;
+    display: none;
+    top: 38px;
+    left: 6px;
+    width: 120px;
+    height: 60px;
+    background: url("../image/toolBarMenu.png") 0 -36px no-repeat;
+    z-index: 1024;
+}
+
+.toolBarMenu ul{
+    width: 106px;
+    margin: 0 7px;
+}
+
+.toolBarMenu li {
+    position: relative;
+    height: 28px;
+    width: 106px;
+    line-height: 28px;
+    font: '微软雅黑' 400 normal 12px;
+    color: #333333;
+    cursor: pointer;
+    /*z-index: inherit;*/
+}
+
+.toolBarMenu li:hover{
+    /*display: block;*/
+    height: 28px;
+    width: 106px;
+    background-color: #DEEAFA;
+}
+.toolBarMenu li>div {
+    display: inline-block;
+    position: relative;
+    top: 2px;
+    width: 16px;
+    height: 16px;
+    margin-left: 6px;
+    /*z-index: inherit;*/
+    background: url("../image/toolUnChecked.png") no-repeat;
+}
+
+.toolBarMenu li.checked>div {
+    background: url("../image/toolChecked.png") no-repeat;
+}
+
+.toolBarMenu li span{
+    position: relative;
+    top: -2px;
+    font-family: '微软雅黑 Regular', '微软雅黑';
+    font-size: 12px;
+}
+
+.selGroup div{
+    display: inline-block;
+    width: 22px;
+    height: 22px;
+    background: url("../image/uncheck.png");
+}
+
+.selGroup .wdSel:hover div[check="false"],.selGroup .phraseSel:hover div[check="false"],.selGroup .sentSel:hover div[check="false"]{
+	background: url("../image/uncheck_hover.png");
+}
+
+.selGroup div.checkRect{
+    background: url("../image/checked.png");
+}
+
+.selGroup .wdSel:hover div[check="true"],.selGroup .phraseSel:hover div[check="true"],.selGroup .sentSel:hover div[check="true"]{
+	opacity:0.5;
+}
+
+
+.wordStyle {
+	white-space:nowrap;
+    color: #db5d00;
+    font-weight: bold;
+	border-radius:4px;
+    cursor: pointer;
+    z-index: 10;
+}
+
+.wordStyle::before{
+    content: "";
+}
+
+.wordStyle::after{
+    content: "";
+}
+
+.border1{
+    border: dashed 1px #ff6600;
+}
+
+.phraseStyle {
+    background-color: #f2db8b;
+	border-radius:2px;
+	padding-left:0px;
+	padding-right:0px;
+    cursor: pointer;
+    z-index: 10;
+}
+
+.phraseStyle::before{
+    content: "";
+}
+
+.phraseStyle::after{
+    content: "";
+}
+
+.sentenceStyle {
+    border-bottom: 2px solid #78ae43;
+    z-index: 5;
+}
+
+.wordStyle:hover,.phraseStyle:hover,.sentenceStyle:hover{
+	/*box-shadow: 0 0 10px #000000;*/
+}
+
+.wordStyle:hover{
+    color:#ff7d1e;
+    font-weight: bold;
+	background-color: #ffeeb2;
+}
+
+.phraseStyle:hover{
+	/* color:#8c7a00; */
+	background-color: #ffeeb2;
+}
+
+.sentenceStyle:hover{
+	color:#1a6500;
+	border-color:#83e600;
+}
+
+ @keyframes living { 0%{
+                transform: scale(1);
+            } 50%{
+                transform: scale(1.2);  
+            } 100%{
+                transform: scale(1);
+                opacity: 1;
+            } }
+
+.klg-selected{
+	/*display:inline-block;*/
+	box-shadow: 0 0 10px #0000ff !important;
+	/*-webkit-animation: living 1.3s linear infinite;*/
+}
+
+.imgDel{
+    position: relative;
+    display: inline;
+}
+
+.imgDel>div {
+    position: absolute;
+    width: 15px;
+    height: 15px;
+    background-image: url("../image/delete15.png");
+    margin: 0px -7px 0px -8px;
+    top: -6px;
+    right: -7px;
+    z-index: 1;
+}
+
+.imgDel>div:hover{
+    background-image: url("../image/delete15_hover.png");
+}
+
+.titleCss {
+    /*margin-top: 5px;*/
+    /* background-color: #dceff7; */
+    padding-right: 20px;
+    height: 40px;
+    display: block;
+}
+
+.selGroup {
+    position: absolute;
+    display: none;
+    padding-top: 15px;
+    top: 35px;
+    right: 15px;
+    width: 104px;
+    height: 132px;
+    float: right;
+    background: url("../image/selectBg.png") no-repeat;
+    z-index: 1024;
+	-webkit-user-select: none;  /* Chrome all / Safari all */
+    -moz-user-select: none;     /* Firefox all */
+    -ms-user-select: none;      /* IE 10+ */
+}
+
+.wdSel, .phraseSel, .sentSel {
+    margin-top: 7px;
+	margin-left: 15px;
+	cursor:pointer;
+	float: left;
+}
+
+.ml3 {
+    margin-left: 3px;
+}
+
+.markeg{
+	position:relative;
+	top:-4px;
+	font-size:14px;
+	color:#333333;
+}
+
+.rectImg {
+    background-image: url(../image/rect.png);
+    background-repeat: no-repeat;
+    background-position: center center;
+    width: 19px;
+    display: none;
+    font: bold 6pt;
+}
+
+.textcs {
+    position: relative;
+    line-height: 1.5;
+    margin: 5px 5px;
+    overflow-y : auto;
+    padding-top: 5px;  
+}
+
+#textArea {
+    position: absolute;
+    left: 0px;
+    margin: 0 45px;
+    text-align: justify;
+}
+/*详细释义*/
+.content{
+    height: 113px;
+	/*margin:0 5px;*/
+    clear: right;
+	padding:0px;
+    border-bottom: solid 1px #e7e7e7;
+    overflow-y: auto;
+    color:#464646;
+}
+
+.content .enWordPro,.content font{
+	font-size:14px;
+}
+
+.contentWrap{
+    height: 150px;
+    clear: right;
+    margin: 5px 0px 0px 0px;
+	padding:5px 0;
+    overflow-y: auto;
+    border-bottom: solid 1px #e7e7e7;
+}
+
+.contentText {
+    font-weight: bold;
+    font-size:20px;
+    color:#007ac4;
+    margin-bottom: 8px;
+    margin-top: -6px;
+    word-break: break-word;
+}
+.phonetic .voice{
+    display:inline-block;
+    width:18px;
+    height:16px;
+    position: relative;
+    top: 3px;
+    margin-left: 5px;
+    background:url(../image/test_practice_icons.png) no-repeat -106px 0px;
+    cursor: pointer;
+}
+
+.phonetic .voice.playing{
+    background:url(../image/music_playing.gif);
+    top: 4px;
+}
+
+.phonetic .voice.loading{
+	width:16px;
+	height:16px;
+	background:url(loading.gif);
+}
+
+.moreDetail,.nextButton{    
+    float: right;
+    margin: 12px 0;
+    /*padding: 0 3px;*/
+    cursor: pointer;
+	color:#0d8ee3;
+	font-size:14px;
+    line-height:1;
+}
+
+.nextButton{
+	float: left;
+}
+.pickUp{
+    display: none;
+    float: right;
+    margin: 12px 8px;
+    /*padding: 0 3px;*/
+    cursor: pointer;
+	color:#0d8ee3;
+	font-size:14px;
+	/*text-decoration:none;*/
+    line-height:1;
+}
+
+.moreDetail:hover ,.pickUp:hover,.nextButton:hover{
+    opacity: 0.8;
+    filter: alpha(opacity=80);
+}
+
+.sentImagcs {
+    cursor: pointer;
+    margin: 0 3px -2px 1px;
+    /*vertical-align: middle;*/
+}
+
+* {
+
+    margin: 0px 0px;
+    padding: 0px 0px;
+
+}
+
+ul {
+    list-style: none;
+    /*margin-left: 60px;*/
+    /*margin-top: -22px;*/
+    /*margin-right: 5px;*/
+}
+
+.ui-dialog a,a:-webkit-any-link,a:link,a:visited,a:hover,a:active{cursor:pointer !important;}
+

+ 137 - 0
EBook.Web/Common/mtm_temp.js

@@ -0,0 +1,137 @@
+function Fill(data) {
+    var highlightArr = [];
+    clearHighlight();
+    $.each(data, function (i, item) {
+
+        if (typeof (item.HightCode) != 'undefined' && item.HightCode != null && item.HightCode != "") {
+            var highlightItem = $('span[id=' + item.HightCode + ']').eq(0);
+            if (highlightItem.length > 0) {
+                var hitCode = highlightItem.attr('hitCode');
+                if (hitCode) {
+                    highlightItem.attr('hitCode', hitCode + "|" + item.SourceCode);
+                }
+                else {
+                    highlightItem.attr('hitCode', item.SourceCode);
+                }
+
+                highlightArr.push(highlightItem);
+            }
+        }
+        else if (typeof (item.SourceCode) == 'undefined' || item.SourceCode == null || item.SourceCode != "") {
+            var highlightItem = $('span[kcode*=' + item.SourceCode + ']:first');
+            if (highlightItem.length > 0) {
+                var hitCode = highlightItem.attr('hitCode');
+                if (hitCode) {
+                    highlightItem.attr('hitCode', hitCode + "|" + item.SourceCode);
+                }
+                else {
+                    highlightItem.attr('hitCode', item.SourceCode);
+                }
+
+                highlightArr.push(highlightItem);
+            }
+        }
+
+
+        $.each(highlightArr, function (i, item) {
+            if (item.attr('flag') == 'word') {
+                bindEvent(item.attr('iskeyklg', 'true').addClass('wordStyle'), true);
+            }
+            else if (item.attr('flag') == 'phrase') {
+                if (item != null && item.attr('separate') != null) {
+                    $("span[separate=" + item.attr('separate') + "]").attr('iskeyklg', 'true').addClass('phraseStyle');
+                    bindEvent(item, true);
+                }
+                else {
+                    bindEvent(item.attr('iskeyklg', 'true').addClass('phraseStyle'), true);
+                    if ($(item).parent().attr('iskeyklg') == 'true' && $(item).parent().attr('flag') == 'phrase') $(item).addClass('border1')
+                }
+            }
+            else if (item.attr('flag') == 'sentence') {
+                if (item.attr('iskeyklg') == 'true') return;
+                bindEvent(item.attr('iskeyklg', 'true').addClass('sentenceStyle')
+                    .before('<img src="file:///android_asset/js/sentenceIco.png" class="sentImagcs">'), true);
+            }
+        });
+    });
+}
+
+function clearHighlight() {
+    $('span.klg-selected').removeClass('klg-selected');
+    $('span[iskeyklg="true"]').each(function (i, item) {
+        $(item).removeAttr('hitCode');
+        $(item).attr('iskeyklg', 'false');
+        if ($(item).attr('flag') == 'word') {
+            $(item).removeClass('wordStyle').unbind();
+        }
+        else if ($(item).attr('flag') == 'phrase') {
+            $(item).removeClass().unbind();
+        }
+        else if ($(item).attr('flag') == 'sentence') {
+            $(item).removeClass('sentenceStyle').unbind();
+            $(item).prev().filter('img.sentImagcs').remove();
+        }
+    })
+}
+
+function bindEvent(ele, opt) {
+    if (opt) {
+        var className = '';
+        if (ele.hasClass('phraseStyle'))
+            className = 'phraseStyle';
+        else if (ele.hasClass('wordStyle'))
+            className = 'wordStyle';
+        else if (ele.hasClass('sentenceStyle'))
+            className = 'sentenceStyle';
+
+        switch (className) {
+            case 'phraseStyle':
+                if (ele.attr('separate') != null) {
+                    $("span[separate=" + ele.attr('separate') + "]").unbind().bind({
+                        'click': function (e) {
+                            e.stopPropagation();
+                            //plugin.call(code);
+                            //                            alert($(this).attr("hitCode"));
+                            test($(this).attr("hitCode"));
+                        }
+                    });
+                }
+            case 'wordStyle':
+                ele.unbind().bind({
+                    'click': function (e) {
+                        e.stopPropagation();
+                        //plugin.call(code);
+                        //                        alert($(this).attr("hitCode"));
+                        test($(this).attr("hitCode"));
+                    }
+                });
+                break;
+            case 'sentenceStyle':
+                ele.unbind().bind({
+                    'click': function (e) {
+                        e.stopPropagation();
+                        //plugin.call(code);
+                        //alert($(this).attr("hitCode"));
+                        test($(this).attr("hitCode"));
+                    }
+                }).prev().filter('.sentImagcs').unbind().bind({
+                    'click': function (e) {
+                        e.stopPropagation();
+                        //plugin.call(code);
+                        //alert($(this).attr("hitCode"));
+                        test($(this).next().attr("hitCode"));
+                    }
+                });
+                break;
+        }
+    }
+    else {
+        ele.unbind();
+    }
+}
+
+function test(code) {
+    //alert(code);
+    cancelBubble();
+    plugin.call(code);
+}

+ 48 - 21
EBook.Web/Common/tasklib_book.js

@@ -41,6 +41,9 @@ function showHideAnswerEx(isShowYX, isShowAS) {
             else {
                 $(item).css("color", "#989898");
             }
+
+            $(item).find(".wordStyle").css("color", "#db5d00");
+            $(item).find(".phraseStyle").css("background-color", "#f2db8b");
         });
         $(".yaoshi").attr("data-status", "1");
         $(".yaoshi").attr("src", PicInfo.yaoshiShowImgUrl);
@@ -48,6 +51,8 @@ function showHideAnswerEx(isShowYX, isShowAS) {
     else {
         $.each($(".underlineContent,.underlineContent.no-answer"), function (index, item) {
             $(item).css("color", "#ffffff");
+            $(item).find(".wordStyle").css("color", "#ffffff");
+            $(item).find(".phraseStyle").css("background-color", "#ffffff");
         });
         $(".yaoshi").attr("data-status", "0");
         $(".yaoshi").attr("src", PicInfo.yaoshiHideImgUrl);
@@ -74,17 +79,25 @@ function bindEventTeaOrignalYS() {
                 else {
                     $(item).css("color", "#989898");
                 }
+
+                $(item).find(".wordStyle").css("color", "#db5d00");
+                $(item).find(".phraseStyle").css("background-color", "#f2db8b");
             });
             //不再存在已隐藏的钥匙,移动端回调
             if ($(".yaoshi[data-status='0']").length == 0) {
                 //添加回调
-                alert('1');
+                console.log("全部显示了");
             }
         } else {
             $(this).attr("data-status", "0");
             $(this).attr("src", PicInfo.yaoshiHideImgUrl);
             //$(this).nextUntil(".yaoshi").find(".underlineContent").hide();
-            $(this).nextUntil(".yaoshi").find(".underlineContent").css("color", "#ffffff");
+            //$(this).nextUntil(".yaoshi").find(".underlineContent").css("color", "#ffffff");
+            $.each($(this).nextUntil(".yaoshi").filter(".underlineContent"), function (index, item) {
+                $(item).css("color", "#ffffff");
+                $(item).find(".wordStyle").css("color", "#ffffff");
+                $(item).find(".phraseStyle").css("background-color", "#ffffff");
+            });
             //添加回调
             onClickKeyHide();
         }
@@ -204,17 +217,25 @@ function bindEventYS() {
                 else {
                     $(item).css("color", "#989898");
                 }
+
+                $(item).find(".wordStyle").css("color", "#db5d00");
+                $(item).find(".phraseStyle").css("background-color", "#f2db8b");
             });
             //不再存在已隐藏的钥匙,移动端回调
             if ($(".yaoshi[data-status='0']").length == 0) {
                 //添加回调
-                alert('1');
+                console.log("全部显示了");
             }
         }
         else {
             $(this).attr("data-status", "0");
             $(this).attr("src", PicInfo.yaoshiHideImgUrl);
-            $(this).nextUntil(".yaoshi").filter(".underlineContent").css("color", "#ffffff");
+            //$(this).nextUntil(".yaoshi").filter(".underlineContent").css("color", "#ffffff");
+            $.each($(this).nextUntil(".yaoshi").filter(".underlineContent"), function (index, item) {
+                $(item).css("color", "#ffffff");
+                $(item).find(".wordStyle").css("color", "#ffffff");
+                $(item).find(".phraseStyle").css("background-color", "#ffffff");
+            });
             //添加回调
             onClickKeyHide();
         }
@@ -455,7 +476,7 @@ function reviewAnswer(answerJson) {
             if (curDisplay == "none") {
                 $(audioElement).show();
             }
-            
+
             $(selectElement).attr("answer-url", answerObj.AudioUrl);
             //独立绑定事件
             $(audioElement).on("click", function () {
@@ -490,9 +511,9 @@ function getAllAnswer() {
         var mytext = $(item).children("span").text();
         if (mytext == "答题点") {
             mytext = "未作答";
-            $(item).addClass("no-answer");
-            $(item).children("img").hide();
-            $(item).children("span").text(mytext);
+            $(item).children("span").addClass("no-answer");
+            $(item).children("span").children("img").hide();
+            $(item).children("span").children("span").text(mytext);
         }
     });
     $(".answer-range").unbind('click');//取消点击绑定事件
@@ -522,12 +543,12 @@ function backupAllAnswer(answerJson, statusType) {
                 $(item).attr("answer-text", mytext);//填充作答内容
                 mytext = mytext == "" ? "作答音频[" + answerList[index].AudioLength + "s]" : "作答音频[" + answerList[index].AudioLength + "s]" + "(" + mytext + ")";
                 $(item).children("span").text(mytext);
-                
+
                 $(item).attr("play-status", "0");
                 $(item).attr("answer-url", answerList[index].AudioUrl);
                 $(audioElement).attr("src", PicInfo.recordPlayImgUrl);
             }
-            
+
             //可作答状态,作答还原
             if (statusType == 0) {
                 //已作答过,还原作答,增加作答后的UI节点
@@ -623,12 +644,12 @@ function reviewStuAnswer(answerJson) {
         $(selectElement).attr("answer-comment", answerObj.Comment);//评语
         //评阅样式
         if (answerObj.Score == 0) {
-            $(selectElement).removeClass("good-answer");
-            $(selectElement).addClass("bad-answer");
+            $(selectElement).children("span").removeClass("good-answer");
+            $(selectElement).children("span").addClass("bad-answer");
         }
         if (answerObj.Score > 0) {
-            $(selectElement).removeClass("bad-answer");
-            $(selectElement).addClass("good-answer");
+            $(selectElement).children("span").removeClass("bad-answer");
+            $(selectElement).children("span").addClass("good-answer");
         }
     }
 }
@@ -677,10 +698,10 @@ function backupAllReview(answerJson) {
 
             //评阅样式
             if (answerList[index].Score == 0) {
-                $(item).addClass("bad-answer");
+                $(item).children("span").addClass("bad-answer");
             }
             if (answerList[index].Score > 0) {
-                $(item).addClass("good-answer");
+                $(item).children("span").addClass("good-answer");
             }
         });
     }
@@ -704,13 +725,18 @@ function playRecordAudio(answerid, isPlay) {
 
 //滚动到相应DIV
 function scrollAnswer(answerid) {
+    //console.log(answerid);
     $(".answer-range").removeClass("select-answer");
     var ansDom = $(".answer-range[answer-id='" + answerid + "']");
     $(ansDom).addClass("select-answer");
     var scroll_offset = $(ansDom).offset(); //得到box这个div层的offset,包含两个值,top和left
+    var offset_top = scroll_offset.top;
+    if (offset_top > 150) {
+        offset_top = offset_top - 200;
+    }
 
     $("body,html").animate({
-        scrollTop: scroll_offset.top-40 //让body的scrollTop等于pos的top,就实现了滚动
+        scrollTop: offset_top //让body的scrollTop等于pos的top,就实现了滚动
     });
 }
 
@@ -793,20 +819,21 @@ function recordAudioClick(myobj, id, url) {
 
 function playVisiableAudioCallBack(type, url) {
     cancelBubble();
-    plugin.startPlay(type, url);
+    console.log(url);
+    //plugin.startPlay(type, url);
 }
 
 function onClickAnswerPoint(data) {
     //alert(JSON.stringify(data));
-    console.log(JSON.stringify(data));
+    //console.log(JSON.stringify(data));
     cancelBubble();
-    plugin.onClickAnswerPoint(data);
+    //plugin.onClickAnswerPoint(data);
 }
 
 function onClickKeyHide() {
     //alert(JSON.stringify(data));
     cancelBubble();
-    plugin.onClickKeyHide();
+    //plugin.onClickKeyHide();
 }
 
 function cancelBubble(e) {

+ 9 - 0
EBook.Web/EBook.Web.csproj

@@ -59,8 +59,12 @@
     <Content Include="AnsText\ansdata.txt" />
     <Content Include="AnsText\anstext.txt" />
     <Content Include="AnsText\answer.txt" />
+    <Content Include="Common\mtm_passage.css" />
+    <Content Include="Common\mtm_temp.js" />
     <Content Include="Common\tasklib_book.css" />
     <Content Include="Common\tasklib_book.js" />
+    <None Include="HightCode\21051.json" />
+    <None Include="HightCode\210511.json" />
     <Content Include="Html\P1.html" />
     <Content Include="Html\P2.html" />
     <Content Include="Html\P3.html" />
@@ -72,6 +76,8 @@
     <Content Include="Images\KY.png" />
     <Content Include="Images\pause.png" />
     <Content Include="Images\play.png" />
+    <Content Include="Images\sentenceIco.png" />
+    <Content Include="Images\sentenceIco_p.png" />
     <Content Include="Images\update-answer.png" />
     <Content Include="Images\yaoshi-hide.png" />
     <Content Include="Images\yaoshi-show.png" />
@@ -121,6 +127,9 @@
     <Content Include="Lghp\21035.lghp" />
     <Content Include="Lghp\21255.lghp" />
     <Content Include="Lghp\data12.lghp" />
+    <Content Include="Lghp\21051.lghp" />
+    <Content Include="Lghp\210511.lghp" />
+    <Content Include="Lghp\data13.lghp" />
     <None Include="Properties\PublishProfiles\WebEBook.pubxml" />
     <None Include="Web.Debug.config">
       <DependentUpon>Web.config</DependentUpon>

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

@@ -0,0 +1 @@
+[{"HightCode":"","SourceCode":"CF0500000A13C00G0"},{"HightCode":"","SourceCode":"CE321970ξA01DHDAA"},{"HightCode":"","SourceCode":"CE231672LA037HDAA"},{"HightCode":"","SourceCode":"CC04023fxA0vpFCAC"},{"HightCode":"","SourceCode":"CE322001wA02KHDAA"},{"HightCode":"","SourceCode":"CC04021llA13xHDAA"},{"HightCode":"","SourceCode":"CC04021FυA0M7HDAC"},{"HightCode":"","SourceCode":"CE140802κA03vHDAA"},{"HightCode":"","SourceCode":"Cb0400000A11I00G0"},{"HightCode":"","SourceCode":"CP1200000A1h600G0"},{"HightCode":"","SourceCode":"CP1200000A2rB00G0"},{"HightCode":"","SourceCode":"CE0200000AIYL00G0"},{"HightCode":"","SourceCode":"CI0300000A0Xp00G0"},{"HightCode":"","SourceCode":"CJ0200000A0Iw00G0"},{"HightCode":"","SourceCode":"CE291821YA01wHDAA"},{"HightCode":"","SourceCode":"CF34208AμA0F3HEAC"},{"HightCode":"","SourceCode":"CE3018917A01VHDAA"},{"HightCode":"","SourceCode":"Ci1600000A1DP00G0"},{"HightCode":"","SourceCode":"CF342086οA09YHEAC"},{"HightCode":"","SourceCode":"CM0300000A02E00G0"},{"HightCode":"","SourceCode":"Cb0400000A5Rs00G0"},{"HightCode":"","SourceCode":"CF342084bA069HEAC"},{"HightCode":"","SourceCode":"CP1200000A1xR00G0"},{"HightCode":"","SourceCode":"CD0502804A004FBAC"}]

+ 742 - 0
EBook.Web/HightCode/210511.json

@@ -0,0 +1,742 @@
+[
+  {
+    "HightCode": "W65",
+    "SourceCode": "CE251381YA01wHDAA"
+  },
+  {
+    "HightCode": "W72",
+    "SourceCode": "CC04023aJA0oFHDAA"
+  },
+  {
+    "HightCode": "W82",
+    "SourceCode": "CE2418115A01THDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE241320μA01BHDAA"
+  },
+  {
+    "HightCode": "W146",
+    "SourceCode": "CU0300000A0uB00G0"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE111010αA010HDAA"
+  },
+  {
+    "HightCode": "W223",
+    "SourceCode": "CE090793QA04aHDAA"
+  },
+  {
+    "HightCode": "W239",
+    "SourceCode": "CI0700000A2WH00G0"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC040250πA01FCCAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CF34208BδA0GJHEAC"
+  },
+  {
+    "HightCode": "W319",
+    "SourceCode": "CV0100000A1AR00G0"
+  },
+  {
+    "HightCode": "W337",
+    "SourceCode": "CE3119304A004HDAA"
+  },
+  {
+    "HightCode": "W340",
+    "SourceCode": "CM0200000A01500G0"
+  },
+  {
+    "HightCode": "W342",
+    "SourceCode": "CE322000rA00rHDAA"
+  },
+  {
+    "HightCode": "W347",
+    "SourceCode": "CC0402578A09qHDAA"
+  },
+  {
+    "HightCode": "W351",
+    "SourceCode": "CE3220016A01UHDAA"
+  },
+  {
+    "HightCode": "W414",
+    "SourceCode": "CE241320VA00VHDAA"
+  },
+  {
+    "HightCode": "W457",
+    "SourceCode": "CE1913003A003HDAA"
+  },
+  {
+    "HightCode": "W461",
+    "SourceCode": "CE251400WA00WHEAA"
+  },
+  {
+    "HightCode": "W484",
+    "SourceCode": "CE181261RA01pHEAC"
+  },
+  {
+    "HightCode": "W490",
+    "SourceCode": "CM0300000A0dj00G0"
+  },
+  {
+    "HightCode": "9dd73ac9-2278-4953-992f-66d21c8b2a92",
+    "SourceCode": "CE24217000000HDAA"
+  },
+  {
+    "HightCode": "W540",
+    "SourceCode": "CE301891BA01ZHDAA"
+  },
+  {
+    "HightCode": "W546",
+    "SourceCode": "CC040270zA00zHDAA"
+  },
+  {
+    "HightCode": "W552",
+    "SourceCode": "CE291720IA00IHDAA"
+  },
+  {
+    "HightCode": "W565",
+    "SourceCode": "CE1610007A007FAAA"
+  },
+  {
+    "HightCode": "W590",
+    "SourceCode": "CE301880VA00VHDAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC04023AπA0F7CCAA"
+  },
+  {
+    "HightCode": "W617",
+    "SourceCode": "CE171230qA00qHDAA"
+  },
+  {
+    "HightCode": "W637",
+    "SourceCode": "CE332022MA038HDAA"
+  },
+  {
+    "HightCode": "W640",
+    "SourceCode": "CE291722QA03CHDAA"
+  },
+  {
+    "HightCode": "W695",
+    "SourceCode": "CF362076mA096HEAC"
+  },
+  {
+    "HightCode": "W699",
+    "SourceCode": "CE0300000A15z00G0"
+  },
+  {
+    "HightCode": "W705",
+    "SourceCode": "CF36207E8A0JYHEAC"
+  },
+  {
+    "HightCode": "W709",
+    "SourceCode": "CE281682WA03IHEAA"
+  },
+  {
+    "HightCode": "W739",
+    "SourceCode": "CE2918215A01THDAA"
+  },
+  {
+    "HightCode": "W741",
+    "SourceCode": "CE2513610A01OHDAA"
+  },
+  {
+    "HightCode": "W799",
+    "SourceCode": "CE322001TA01rHDAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC04021XβA0knHDAA"
+  },
+  {
+    "HightCode": "W914",
+    "SourceCode": "CE291720qA00qHDAA"
+  },
+  {
+    "HightCode": "W916",
+    "SourceCode": "CC04021eYA0u2HDAA"
+  },
+  {
+    "HightCode": "W982",
+    "SourceCode": "CE332031KA01iJAAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC04021LιA0UGHDAA"
+  },
+  {
+    "HightCode": "W1027",
+    "SourceCode": "CE161080GA00GHDAA"
+  },
+  {
+    "HightCode": "W1047",
+    "SourceCode": "CE301841pA02DHEAA"
+  },
+  {
+    "HightCode": "W1059",
+    "SourceCode": "CH0100000AK2n00G0"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE161040θA017HDAA"
+  },
+  {
+    "HightCode": "W1095",
+    "SourceCode": "CE301890tA00tHDAC"
+  },
+  {
+    "HightCode": "W1100",
+    "SourceCode": "CE301893KA04UHDAA"
+  },
+  {
+    "HightCode": "W1126",
+    "SourceCode": "Cl0600000A0Kr00G0"
+  },
+  {
+    "HightCode": "W1208",
+    "SourceCode": "CE301895GA07CHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE332010κA019HDAA"
+  },
+  {
+    "HightCode": "W1242",
+    "SourceCode": "CE301850MA00MHDAA"
+  },
+  {
+    "HightCode": "W1278",
+    "SourceCode": "CE301891VA01tHDAA"
+  },
+  {
+    "HightCode": "W1319",
+    "SourceCode": "CE111010fA00fHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CF35212DκA0JBHEAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE251380φA01KHDAA"
+  },
+  {
+    "HightCode": "W1360",
+    "SourceCode": "CE060340oA00oJAAA"
+  },
+  {
+    "HightCode": "W1375",
+    "SourceCode": "CF35211DJA0ILHEAC"
+  },
+  {
+    "HightCode": "W1384",
+    "SourceCode": "CE140800MA00MHDAA"
+  },
+  {
+    "HightCode": "W1402",
+    "SourceCode": "CD0100000A1zm00G0"
+  },
+  {
+    "HightCode": "W1435",
+    "SourceCode": "CE291823lA04vHDAA"
+  },
+  {
+    "HightCode": "W1480",
+    "SourceCode": "CE301893QA04aHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE301891σA02fHDAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE311913δA05DHDAA"
+  },
+  {
+    "HightCode": "W1523",
+    "SourceCode": "CF342099xA0DRHEAC"
+  },
+  {
+    "HightCode": "W1532",
+    "SourceCode": "CC04021fFA0v7HDAA"
+  },
+  {
+    "HightCode": "W1589",
+    "SourceCode": "CE3119004A004HDAA"
+  },
+  {
+    "HightCode": "W1596",
+    "SourceCode": "CE3119305A005HDAA"
+  },
+  {
+    "HightCode": "W1601",
+    "SourceCode": "CE2918233A04DHDAA"
+  },
+  {
+    "HightCode": "W1641",
+    "SourceCode": "CE321950MA00MHDAA"
+  },
+  {
+    "HightCode": "W1654",
+    "SourceCode": "CO0100000A4if00G0"
+  },
+  {
+    "HightCode": "W1746",
+    "SourceCode": "CP1200000A1AJ00G0"
+  },
+  {
+    "HightCode": "W1748",
+    "SourceCode": "Ca1000000A13a00G0"
+  },
+  {
+    "HightCode": "W1763",
+    "SourceCode": "CE231711UA01sHDAA"
+  },
+  {
+    "HightCode": "W1786",
+    "SourceCode": "CE332010XA00XHDAA"
+  },
+  {
+    "HightCode": "W1794",
+    "SourceCode": "CE191350DA00DHDAA"
+  },
+  {
+    "HightCode": "W1800",
+    "SourceCode": "CC0100000A0QN00G0"
+  },
+  {
+    "HightCode": "W1810",
+    "SourceCode": "CI0600000A1dt00G0"
+  },
+  {
+    "HightCode": "W1816",
+    "SourceCode": "CP0900000A02300G0"
+  },
+  {
+    "HightCode": "W1822",
+    "SourceCode": "CF34209PMA0Z2HEAC"
+  },
+  {
+    "HightCode": "W1824",
+    "SourceCode": "Cl0600000A2iS00G0"
+  },
+  {
+    "HightCode": "W1847",
+    "SourceCode": "CC040252CA02yHDAA"
+  },
+  {
+    "HightCode": "W1884",
+    "SourceCode": "CE090891EA01cHEAC"
+  },
+  {
+    "HightCode": "W2039",
+    "SourceCode": "CO0100000A3tZ00G0"
+  },
+  {
+    "HightCode": "W2046",
+    "SourceCode": "CC04021VCA0hCHDAC"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE231673ξA05NHDAA"
+  },
+  {
+    "HightCode": "W2055",
+    "SourceCode": "CC0100000A0yu00G0"
+  },
+  {
+    "HightCode": "W2063",
+    "SourceCode": "CC04021JbA0QxHDAA"
+  },
+  {
+    "HightCode": "W2072",
+    "SourceCode": "CB0300000A0EP00G0"
+  },
+  {
+    "HightCode": "W2074",
+    "SourceCode": "Cf0600000AJ2b00G0"
+  },
+  {
+    "HightCode": "W2096",
+    "SourceCode": "CE060341PA01nHDAA"
+  },
+  {
+    "HightCode": "W2111",
+    "SourceCode": "CC04021pdA19NHDAA"
+  },
+  {
+    "HightCode": "W2164",
+    "SourceCode": "Cm1000000A1B500G0"
+  },
+  {
+    "HightCode": "W2167",
+    "SourceCode": "CE231670iA00iCBAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE090792βA03nHDAC"
+  },
+  {
+    "HightCode": "W2281",
+    "SourceCode": "CC04023a6A0o2HDAA"
+  },
+  {
+    "HightCode": "W2303",
+    "SourceCode": "CE231692cA03OHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE090791ηA02UHDAA"
+  },
+  {
+    "HightCode": "W2317",
+    "SourceCode": "CE090791eA022HDAA"
+  },
+  {
+    "HightCode": "W2331",
+    "SourceCode": "CC040217jA0ARHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC04023MωA0VtHDAA"
+  },
+  {
+    "HightCode": "W2355",
+    "SourceCode": "CE090790UA00UHDAA"
+  },
+  {
+    "HightCode": "W2451",
+    "SourceCode": "CE301841YA01wHDAA"
+  },
+  {
+    "HightCode": "W2475",
+    "SourceCode": "CC040231QA01oHDAA"
+  },
+  {
+    "HightCode": "W2479",
+    "SourceCode": "CI0300000A17A00G0"
+  },
+  {
+    "HightCode": "W2489",
+    "SourceCode": "CE1407203A003JAAC"
+  },
+  {
+    "HightCode": "W2495",
+    "SourceCode": "CF34209N9A0W3HEAC"
+  },
+  {
+    "HightCode": "W2506",
+    "SourceCode": "CG0300000A08c00G0"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE301895γA07yHDAA"
+  },
+  {
+    "HightCode": "W2530",
+    "SourceCode": "CE301891EA01cHDAA"
+  },
+  {
+    "HightCode": "W2549",
+    "SourceCode": "CE070480uA00uHDAC"
+  },
+  {
+    "HightCode": "W2613",
+    "SourceCode": "CE291800eA00eHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC040237λA0AsHDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CE301840βA011HDAA"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC040211ξA02bHDAA"
+  },
+  {
+    "HightCode": "W2911",
+    "SourceCode": "CC04023DWA0IYHDAA"
+  },
+  {
+    "HightCode": "W2915",
+    "SourceCode": "CE3320234A04EHDAA"
+  },
+  {
+    "HightCode": "W2919",
+    "SourceCode": "CC04023SQA0dGHDAA"
+  },
+  {
+    "HightCode": "W2923",
+    "SourceCode": "CI0700000A4LC00G0"
+  },
+  {
+    "HightCode": "W2971",
+    "SourceCode": "CE131191PA01nHDAA"
+  },
+  {
+    "HightCode": "P9",
+    "SourceCode": "CD0100000A15X00G0"
+  },
+  {
+    "HightCode": "P101",
+    "SourceCode": "CC0300000A1nm00G0"
+  },
+  {
+    "HightCode": "P183",
+    "SourceCode": "CQ0300000A0aK00G0"
+  },
+  {
+    "HightCode": "P231",
+    "SourceCode": "CB0100000A12P00G0"
+  },
+  {
+    "HightCode": "P263",
+    "SourceCode": "CD0100000A06200G0"
+  },
+  {
+    "HightCode": "P271",
+    "SourceCode": "Ca0600000A1kS00G0"
+  },
+  {
+    "HightCode": "P295",
+    "SourceCode": "CA0300000A1IS00G0"
+  },
+  {
+    "HightCode": "P379",
+    "SourceCode": "CM0300000A3ot00G0"
+  },
+  {
+    "HightCode": "P397",
+    "SourceCode": "CI0200000A1g000G0"
+  },
+  {
+    "HightCode": "P402",
+    "SourceCode": "Cj0700000A27q00G0"
+  },
+  {
+    "HightCode": "P456",
+    "SourceCode": "CM0300000A3bZ00G0"
+  },
+  {
+    "HightCode": "P538",
+    "SourceCode": "CP0800000A2jq00G0"
+  },
+  {
+    "HightCode": "P544",
+    "SourceCode": "Ca0900000A0hM00G0"
+  },
+  {
+    "HightCode": "P573",
+    "SourceCode": "Ck0200000A0gb00G0"
+  },
+  {
+    "HightCode": "P598",
+    "SourceCode": "CM0300000A4q300G0"
+  },
+  {
+    "HightCode": "P617",
+    "SourceCode": "CM0300000A5Ap00G0"
+  },
+  {
+    "HightCode": "P755",
+    "SourceCode": "CM0300000A1FS00G0"
+  },
+  {
+    "HightCode": "P771",
+    "SourceCode": "Ck0200000A0LP00G0"
+  },
+  {
+    "HightCode": "P829",
+    "SourceCode": "CN0500000A2RA00G0"
+  },
+  {
+    "HightCode": "P834",
+    "SourceCode": "CF352108jA0BpHEAC"
+  },
+  {
+    "HightCode": "P836",
+    "SourceCode": "CE070480KA00KJAAC"
+  },
+  {
+    "HightCode": "P891",
+    "SourceCode": "CK0100000A0wi00G0"
+  },
+  {
+    "HightCode": "P916",
+    "SourceCode": "CC04021eaA0u4HDAC"
+  },
+  {
+    "HightCode": "P998",
+    "SourceCode": "CF352128TA0BZHEAC"
+  },
+  {
+    "HightCode": "P1041",
+    "SourceCode": "CC040276uA09EFAAA"
+  },
+  {
+    "HightCode": "P1046",
+    "SourceCode": "Cl0600000A4l300G0"
+  },
+  {
+    "HightCode": "P1174",
+    "SourceCode": "CF352119jA0DDHEAC"
+  },
+  {
+    "HightCode": "P1297",
+    "SourceCode": "CP0800000A15H00G0"
+  },
+  {
+    "HightCode": "P1320",
+    "SourceCode": "Ce1300000A1NX00G0"
+  },
+  {
+    "HightCode": "P1339",
+    "SourceCode": "CP0800000A2XK00G0"
+  },
+  {
+    "HightCode": "P1360",
+    "SourceCode": "Cm1000000A0yJ00G0"
+  },
+  {
+    "HightCode": "P1522",
+    "SourceCode": "Cl0600000A2S000G0"
+  },
+  {
+    "HightCode": "P1533",
+    "SourceCode": "Cb0400000A3YZ00G0"
+  },
+  {
+    "HightCode": "P1542",
+    "SourceCode": "CC040271BA01ZHDAA"
+  },
+  {
+    "HightCode": "P1580",
+    "SourceCode": "Cl0600000A0ef00G0"
+  },
+  {
+    "HightCode": "P1611",
+    "SourceCode": "CC040276FA08ZFAAA"
+  },
+  {
+    "HightCode": "P1618",
+    "SourceCode": "CE0300000A4Vz00G0"
+  },
+  {
+    "HightCode": "P1629",
+    "SourceCode": "CO0100000A4wG00G0"
+  },
+  {
+    "HightCode": "P1656",
+    "SourceCode": "Cb0400000A4TA00G0"
+  },
+  {
+    "HightCode": "P1680",
+    "SourceCode": "Cb0400000A1av00G0"
+  },
+  {
+    "HightCode": "P1694",
+    "SourceCode": "CP0800000A0vt00G0"
+  },
+  {
+    "HightCode": "P1699",
+    "SourceCode": "CW0100000A1uD00G0"
+  },
+  {
+    "HightCode": "P1746",
+    "SourceCode": "CZ0500000A03h00G0"
+  },
+  {
+    "HightCode": "P1798",
+    "SourceCode": "CX0100000A1I400G0"
+  },
+  {
+    "HightCode": "P1801",
+    "SourceCode": "CV0300000A0K500G0"
+  },
+  {
+    "HightCode": "P1813",
+    "SourceCode": "CW0500000A0fi00G0"
+  },
+  {
+    "HightCode": "P1822",
+    "SourceCode": "CW0500000A0X600G0"
+  },
+  {
+    "HightCode": "P1825",
+    "SourceCode": "CP1200000A1Qo00G0"
+  },
+  {
+    "HightCode": "P2078",
+    "SourceCode": "Cb0400000A13e00G0"
+  },
+  {
+    "HightCode": "P2094",
+    "SourceCode": "Ca0600000A2Pb00G0"
+  },
+  {
+    "HightCode": "P2118",
+    "SourceCode": "CP0500000A0fX00G0"
+  },
+  {
+    "HightCode": "P2131",
+    "SourceCode": "CA0100000A0dh00G0"
+  },
+  {
+    "HightCode": "",
+    "SourceCode": "CC04021jφA11kFBAC"
+  },
+  {
+    "HightCode": "P2320",
+    "SourceCode": "Cb0400000A3J700G0"
+  },
+  {
+    "HightCode": "P2331",
+    "SourceCode": "CC040217nA0AVHDAA"
+  },
+  {
+    "HightCode": "P2399",
+    "SourceCode": "CE241811bA01zJAAC"
+  },
+  {
+    "HightCode": "P2521",
+    "SourceCode": "CB0100000A05w00G0"
+  },
+  {
+    "HightCode": "P2536",
+    "SourceCode": "Ck0200000A10J00G0"
+  },
+  {
+    "HightCode": "P2808",
+    "SourceCode": "CC040274BA05jHDAC"
+  },
+  {
+    "HightCode": "P2818",
+    "SourceCode": "CW0100000A20Z00G0"
+  },
+  {
+    "HightCode": "P2900",
+    "SourceCode": "CL0200000A7ey00G0"
+  },
+  {
+    "HightCode": "P2937",
+    "SourceCode": "CL0200000A6nE00G0"
+  },
+  {
+    "HightCode": "P2941",
+    "SourceCode": "Cb0400000A5L400G0"
+  },
+  {
+    "HightCode": "P3053",
+    "SourceCode": "CL0200000A4ou00G0"
+  }
+]

BIN
EBook.Web/Images/sentenceIco.png


BIN
EBook.Web/Images/sentenceIco_p.png


+ 21 - 2
EBook.Web/Test.html

@@ -5,7 +5,9 @@
     <title>主体课文</title>
 	<meta charset="utf-8" />
     <script src="Scripts/jquery.js"></script>
+    <link href="Common/mtm_passage.css" rel="stylesheet" type="text/css" />
     <link href="Common/tasklib_book.css" rel="stylesheet" type="text/css" />
+    <script src="Common/mtm_temp.js"></script>
     <script src="Common/tasklib_book.js"></script>
 </head>
 <body>
@@ -41,12 +43,14 @@
             //加载听说课文
             answerjson = $.ajax({ url: "AnsText/21255.json", async: false }).responseText;
             reviewjson = $.ajax({ url: "AnsText/anstext.txt", async: false }).responseText;
+            hightcodejson = $.ajax({ url: "HightCode/21051.json", async: false }).responseText;
         }
         //加载听说课文
         $("#load-text").on("click", function () {
-            var data = $.ajax({ url: "lghp/21255.lghp", async: false }).responseText;
+            var data = $.ajax({ url: "lghp/21051.lghp", async: false }).responseText;
             $("#data").html(data);
 
+            Fill(JSON.parse(hightcodejson));
             bindEventYS();
             //bindCoursewareEvent();
 
@@ -120,13 +124,28 @@
         });
         //定位滚动数据
         $("#scroll-review").on("click", function () {
-            scrollAnswer("15");
+            scrollAnswer(randomNum(0,answerData.length-1));
         });
         //测试UI效果
         $("#test-ui").on("click", function () {
             var clonediv = $(".btn-play").prop("outerHTML");
             $(".test-p").html($(".test-p").html() + clonediv);
         });
+
+        //生成从minNum到maxNum的随机数
+        function randomNum(minNum, maxNum) {
+            switch (arguments.length) {
+                case 1:
+                    return parseInt(Math.random() * minNum + 1, 10);
+                    break;
+                case 2:
+                    return parseInt(Math.random() * (maxNum - minNum + 1) + minNum, 10);
+                    break;
+                default:
+                    return 0;
+                    break;
+            }
+        }
     </script>
 </body>
 </html>

+ 0 - 1
EBook.Web/Web.config

@@ -91,7 +91,6 @@
         <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
       </handlers>
       <staticContent>
-        <mimeMap fileExtension=".apk" mimeType="application/octet-stream" />
         <remove fileExtension=".less" />
         <mimeMap fileExtension=".less" mimeType="text/css" />
         <remove fileExtension=".mp4" />

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
EBook.Web/lghp/21051.lghp


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
EBook.Web/lghp/210511.lghp


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
EBook.Web/lghp/data13.lghp


Vissa filer visades inte eftersom för många filer har ändrats