wok-6.x rev 12091
nanochess: red based colors
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 10 18:05:44 2012 +0100 (2012-03-10) |
parents | 45fd8547b1f4 |
children | 87c1138bb45b |
files | nanochess/receipt |
line diff
1.1 --- a/nanochess/receipt Sat Mar 10 16:42:24 2012 +0100 1.2 +++ b/nanochess/receipt Sat Mar 10 18:05:44 2012 +0100 1.3 @@ -10,13 +10,20 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 + # define colors 1.8 + white="f0f0b0" # was f0f0f0 1.9 + black="f05030" # was c0c0f0 1.10 + gray="#843" # was #dde 1.11 + red="blue" 1.12 + 1.13 mkdir -p $src 2> /dev/null 1.14 cp $stuff/index.html $src 1.15 cd $src 1.16 sed -i -e 's/<select/\♟ \→ &/' \ 1.17 -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \ 1.18 -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \ 1.19 - -e 's/f0f":"c0c")+"0f0/f0f":"606")+"0c0/' -e 's/e0e0f0/b0b080/' \ 1.20 + -e "s/c0c\":\"f0f\")+\"0f0/$white\":\"$black\")+\"/" \ 1.21 + -e "s/#dde/$gray/" -e "s/red/$red/" \ 1.22 -e 's/><option.*$/>";/' -e 's|^doc.*|for(p=18;++p<23;)a+="<option>\b"+p+";</option>";document.write(a);|' \ 1.23 -e 's|<script>|<title>Toledo chess</title>&|' \ 1.24 -e 's|function Y|function Z(){if(y!=/\\?b/i.test(document.URL)?8:0)setTimeout("X(0,0,0,21,u,2),X(0,0,0,21,u,1)",250);}\n&|' \