Loading conllusvg/Liji.html +7 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,13 @@ Liji.checkview=function(){ if(Liji.retrytimes>0){ Liji.retrytimes--; Liji.curr=parseInt(document.getElementById("count").value,10); t=Liji.svg[Liji.curr].getBoundingClientRect().top; if(Math.abs(t-r)>5){ if(document.scrollingElement==null) document.documentElement.scrollTop+=t-r; else document.scrollingElement.scrollTop+=t-r; } } else document.getElementById("count").value=Liji.curr; Loading Loading
conllusvg/Liji.html +7 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,13 @@ Liji.checkview=function(){ if(Liji.retrytimes>0){ Liji.retrytimes--; Liji.curr=parseInt(document.getElementById("count").value,10); t=Liji.svg[Liji.curr].getBoundingClientRect().top; if(Math.abs(t-r)>5){ if(document.scrollingElement==null) document.documentElement.scrollTop+=t-r; else document.scrollingElement.scrollTop+=t-r; } } else document.getElementById("count").value=Liji.curr; Loading