|
@@ -91,8 +91,8 @@ function getInfomation() {
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
item = list[i];
|
|
|
item.content = item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
|
- anchors = '<li><i></i><a href="#'+item.title+'">' + item.title + '</a></li><li class="anchor-line"></li>';
|
|
|
- str = '<div class="infoBox"><div class="title"> <div class= "circleBox"><span class="circle"> </span></div> <h2 class="titleH2" id="' + item.title +
|
|
|
+ anchors = '<li><i></i><a href="#'+item.title.trim()+'">' + item.title + '</a></li><li class="anchor-line"></li>';
|
|
|
+ str = '<div class="infoBox"><div class="title"> <div class= "circleBox"><span class="circle"> </span></div> <h2 class="titleH2" id="' + item.title.trim() +
|
|
|
'">'
|
|
|
if (getUrlArgObject('type') == 8) {
|
|
|
str += '【' + item.title + '】'
|
|
@@ -118,7 +118,7 @@ function getInfomation() {
|
|
|
var scrollTop = $('.infos').scrollTop()
|
|
|
var divHeight = 0;
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
- divHeight = divHeight + parseInt($('#' + list[i].title).css('height')) + parseInt($('#' + list[i].title).parent().next().css('height')) + 30
|
|
|
+ divHeight = divHeight + parseInt($('#' + list[i].title.trim()).css('height')) + parseInt($('#' + list[i].title.trim()).parent().next().css('height')) + 30
|
|
|
if (divHeight > scrollTop) {
|
|
|
var anchor = 2 * (i);
|
|
|
$('.anchors ul').children().eq(anchor).addClass('active').siblings().removeClass('active');
|