wok-6.x diff nanochess/stuff/index.html @ rev 12488

Up: parted (3.1) and fix deps/bdeps
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 24 11:18:34 2012 +0200 (2012-04-24)
parents 38deae80557b
children
line diff
     1.1 --- a/nanochess/stuff/index.html	Sat Jan 21 15:34:54 2012 +0100
     1.2 +++ b/nanochess/stuff/index.html	Tue Apr 24 11:18:34 2012 +0200
     1.3 @@ -1,5 +1,4 @@
     1.4  <script>//(c)2010 Oscar Toledo G.
     1.5 -var go=new RegExp("[\?].*");go=go.exec(document.URL);go=(go&&go=="?black")?8:0
     1.6  var B,i,y,u,b,I=[],G=120,x=10,z=15,M=1e4,l=[5,3,4,6,2,4,3,5,1,1,1,1,1,1,1,1,9,9
     1.7  ,9,9,9,9,9,9,13,11,12,14,10,12,11,13,0,99,0,306,297,495,846,-1,0,1,2,2,1,0,-1,-
     1.8  1,1,-10,10,-11,-9,9,11,10,20,-9,-11,-10,-20,-21,-19,-12,-8,8,12,19,21];function
     1.9 @@ -27,8 +26,7 @@
    1.10  function W(){B=b;for(p=21;p<99;++p)if(q=document.getElementById("o"+p)){q.
    1.11  innerHTML="\xa0\u265f\u265a\u265e\u265d\u265c\u265b  \u2659\u2654\u2658\u2657\u2656\u2655".charAt(I[p]&z);
    1.12  q.style.borderColor=p==B?"red":"#dde";}}W();
    1.13 -function Z(){if(y!=go)setTimeout("X(0,0,0,21,u,2),X(0,0,0,21,u,1)",250);}
    1.14  function Y(s){i=(I[s]^y)&z;if(i>8){b=s;W();}else if(B&&i<9){b=s;i=I[B]&z;if((i&
    1.15  7)==1&(b<29|b>90))i=14-document.getElementById("t").selectedIndex^y;X(0,0,0,21,
    1.16 -u,1);Z();}}Z()
    1.17 +u,1);if(y)setTimeout("X(0,0,0,21,u,2/*ply*/),X(0,0,0,21,u,1)",250);}}
    1.18  </script>