From 30bc31465934787aa7bb1580143221d757a8f228 Mon Sep 17 00:00:00 2001 From: Koichi Yasuoka Date: Wed, 10 Jul 2019 13:30:31 +0900 Subject: [PATCH] Liji.goto() added --- conllusvg/Liji.html | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/conllusvg/Liji.html b/conllusvg/Liji.html index 92aa62163a2..a228b82fc8a 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(){ - + -- GitLab