wok-4.x rev 11612

nanochess: catch ?black arg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 21 15:34:54 2012 +0100 (2012-01-21)
parents a00e9a870407
children cf79c6f40e99
files jssame/stuff/var/www/same/index.html nanochess/stuff/index.html
line diff
     1.1 --- a/jssame/stuff/var/www/same/index.html	Sat Jan 21 00:27:55 2012 +0100
     1.2 +++ b/jssame/stuff/var/www/same/index.html	Sat Jan 21 15:34:54 2012 +0100
     1.3 @@ -8,7 +8,7 @@
     1.4  	border: none;
     1.5  	font-size: 14px;
     1.6  }
     1.7 -a { color: black; }
     1.8 +a { text-decoration: none; }
     1.9  </style>
    1.10  <script language="javascript">
    1.11  <!-- // Original:  Jason Fondren (usher@betterbox.net) http://www.oogha.com/
    1.12 @@ -125,7 +125,7 @@
    1.13  <body onLoad="startUp()">
    1.14  
    1.15  <div align="center">
    1.16 -<table border=0 cellpadding=0 cellspacing=0 bgcolor=black>
    1.17 +<table border=0 cellpadding=0 cellspacing=0>
    1.18  <script language="javascript">
    1.19  <!-- // Original:  Jason Fondren (usher@betterbox.net) http://www.oogha.com/
    1.20  for (i = 9; i >= 0; i--) {
     2.1 --- a/nanochess/stuff/index.html	Sat Jan 21 00:27:55 2012 +0100
     2.2 +++ b/nanochess/stuff/index.html	Sat Jan 21 15:34:54 2012 +0100
     2.3 @@ -1,4 +1,5 @@
     2.4  <script>//(c)2010 Oscar Toledo G.
     2.5 +var go=new RegExp("[\?].*");go=go.exec(document.URL);go=(go&&go=="?black")?8:0
     2.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
     2.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,-
     2.8  1,1,-10,10,-11,-9,9,11,10,20,-9,-11,-10,-20,-21,-19,-12,-8,8,12,19,21];function
     2.9 @@ -26,7 +27,8 @@
    2.10  function W(){B=b;for(p=21;p<99;++p)if(q=document.getElementById("o"+p)){q.
    2.11  innerHTML="\xa0\u265f\u265a\u265e\u265d\u265c\u265b  \u2659\u2654\u2658\u2657\u2656\u2655".charAt(I[p]&z);
    2.12  q.style.borderColor=p==B?"red":"#dde";}}W();
    2.13 +function Z(){if(y!=go)setTimeout("X(0,0,0,21,u,2),X(0,0,0,21,u,1)",250);}
    2.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&
    2.15  7)==1&(b<29|b>90))i=14-document.getElementById("t").selectedIndex^y;X(0,0,0,21,
    2.16 -u,1);if(y)setTimeout("X(0,0,0,21,u,2/*ply*/),X(0,0,0,21,u,1)",250);}}
    2.17 +u,1);Z();}}Z()
    2.18  </script>