diff --git a/conllusvg/Liji.html b/conllusvg/Liji.html index 92aa62163a206d6bbee049356cceaf68a70541b5..a228b82fc8a05d7716d6821c84256492abfb936b 100644 --- a/conllusvg/Liji.html +++ b/conllusvg/Liji.html @@ -63,8 +63,14 @@ Liji.checkview=function(){ } } Liji.lastTop=Liji.svg[Liji.curr].getBoundingClientRect().top; - if(Liji.curr!=x) - document.getElementById("count").value=Liji.curr; + if(Liji.curr!=x){ + if(Liji.retrytimes>0) + Liji.retrytimes--; + else + document.getElementById("count").value=Liji.curr; + } + else if(Liji.retrytimes>0) + Liji.retrytimes--; for(i=Liji.curr+1;i<=Liji.currmax;i++){ if(Liji.svg[i]==null||Liji.pre[i]==null){ Liji.buildup(i); @@ -180,6 +186,10 @@ Liji.ongettree=function(e){ } } } +Liji.goto=function(){ + Liji.retrytimes=3; + Liji.writeSVG(); +} Liji.writeSVG=function(){ var c=document.getElementById("count"); Liji.clearSVG(); @@ -278,7 +288,7 @@ Liji.gitlab=function(){ - +