Browse Source

评估内容隐藏右侧导航栏

wyq 4 năm trước cách đây
mục cha
commit
f2d3ef47e4
2 tập tin đã thay đổi với 0 bổ sung11 xóa
  1. 0 5
      src/html/staticInfo.html
  2. 0 6
      src/js/staticInfo.js

+ 0 - 5
src/html/staticInfo.html

@@ -61,11 +61,6 @@
       <div class="infos" id="Print">
         <div class="infos-box"></div>
       </div>
-      <div class="anchors">
-        <div class="a-circle"></div>
-        <ul></ul>
-        <div class="a-circle"></div>
-      </div>
     </div>
   </div>
   <div class="btmFix"></div>

+ 0 - 6
src/js/staticInfo.js

@@ -129,9 +129,6 @@ function renderContentscale(list, contentWrapClassName, name) {
     console.log(item.resultType)
     textType.push(item.textType)
     if (item.textType == 11) {
-      anchors = '<li><i></i><a href="#' + contentWrapClassName + i +
-        '">' + item.content + '</a></li><li class="anchor-line"></li>';
-
       item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
       str = '<div class="infoBox scaleBox" data-id="' + item.id + '"><div class="title"> <h2 class="titleH2" id="' + contentWrapClassName + i +
         '">'
@@ -139,7 +136,6 @@ function renderContentscale(list, contentWrapClassName, name) {
       str += '</h2></div>'
       str = `<div class="infoWrapper">${str}</div>`
       $(`.${contentWrapClassName} .infos .infos-box`).append(str);
-      $(`.${contentWrapClassName} .anchors ul`).append(anchors);
       for (var j = 0; j < item.subList.length; j++) {
         var items = item.subList[j];
         for (var k = 0; k < items.detailList.length; k++) {
@@ -177,7 +173,6 @@ function renderContentscale(list, contentWrapClassName, name) {
           }
         }
       }
-
     }
     if (item.textType == 13) {
       for (var m = 0; m < item.subList[0].detailList[0].subList[0].detailList.length; m++) {
@@ -500,7 +495,6 @@ function adjustHeight() {
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;
   $(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
-  $(".content .infos").width(wt - 0.2 * wt - 33 + 'px');
   //$("pre").width(wt- 0.2*wt - 240 + 'px')
 }
 $(window).on('resize', function () {