Loading conllusvg/Nihonshoki.html +23 −0 Original line number Diff line number Diff line Loading @@ -11,11 +11,34 @@ Nihonshoki.init=function(){ t.style.position="static"; t.style.visibility="hidden"; document.body.appendChild(t); Nihonshoki.checkURL(); Nihonshoki.svg=new Array(); Nihonshoki.pre=new Array(); Nihonshoki.timer=setTimeout("clearTimeout(Nihonshoki.timer);Nihonshoki.checkview()",200); Nihonshoki.volchange(); } Nihonshoki.checkURL=function(){ var h=location.href; var i=h.indexOf("#"); var s; if(0>i) return; if(1>h.length-i) return; h=decodeURIComponent(h.slice(i+1)); i=h.lastIndexOf("/"); if(1<i){ document.getElementById("count").value=h.slice(i+1); h=h.substring(0,i); } s=document.getElementById("vol"); for(i=0;i<s.length;i++){ if(s.options[i].value.indexOf(h)>=0){ s.selectedIndex=i; return; } } } Nihonshoki.checkview=function(){ var t,r,b,i,x; Nihonshoki.timer=setTimeout("clearTimeout(Nihonshoki.timer);Nihonshoki.checkview()",200); Loading Loading
conllusvg/Nihonshoki.html +23 −0 Original line number Diff line number Diff line Loading @@ -11,11 +11,34 @@ Nihonshoki.init=function(){ t.style.position="static"; t.style.visibility="hidden"; document.body.appendChild(t); Nihonshoki.checkURL(); Nihonshoki.svg=new Array(); Nihonshoki.pre=new Array(); Nihonshoki.timer=setTimeout("clearTimeout(Nihonshoki.timer);Nihonshoki.checkview()",200); Nihonshoki.volchange(); } Nihonshoki.checkURL=function(){ var h=location.href; var i=h.indexOf("#"); var s; if(0>i) return; if(1>h.length-i) return; h=decodeURIComponent(h.slice(i+1)); i=h.lastIndexOf("/"); if(1<i){ document.getElementById("count").value=h.slice(i+1); h=h.substring(0,i); } s=document.getElementById("vol"); for(i=0;i<s.length;i++){ if(s.options[i].value.indexOf(h)>=0){ s.selectedIndex=i; return; } } } Nihonshoki.checkview=function(){ var t,r,b,i,x; Nihonshoki.timer=setTimeout("clearTimeout(Nihonshoki.timer);Nihonshoki.checkview()",200); Loading