Commit 30bc3146 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

Liji.goto() added

parent 72f2ed26
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -63,8 +63,14 @@ Liji.checkview=function(){
    }
  }
  Liji.lastTop=Liji.svg[Liji.curr].getBoundingClientRect().top;
  if(Liji.curr!=x)
  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(){
<option value="kanripo/kR1d0052/049">聘義</option>
<option value="kanripo/kR1d0052/050">喪服四制</option>
</select>
<input type="text" id="count" size=3 value=0 style="text-align:right" onchange="Liji.writeSVG()" />
<input type="text" id="count" size=3 value=0 style="text-align:right" onchange="Liji.goto()" />
<input type="button" value="GitLab" onclick="Liji.gitlab()" />
<input type="button" value="Reload" onclick="Liji.reload()" />
</div>