|
@@ -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 () {
|