Diff for /rat/client/parameter.html between versions 1.22 and 1.23

version 1.22, 2003/04/19 15:34:06 version 1.23, 2003/05/01 23:59:37
Line 323  function pickcolor(picked) { Line 323  function pickcolor(picked) {
   
 function colorfield(ir,ig,ib) {  function colorfield(ir,ig,ib) {
    var col=new Array;     var col=new Array;
    col=["00","11","22","33","44","55","66","77","88","99","AA","BB","CC","DD","EE","FF"];     col=["00","11","22","44","66","88","AA","CC","DD","EE","FF"];
    var color='#'+col[ir]+col[ig]+col[ib];     var color='#'+col[ir]+col[ig]+col[ib];
    var selection="&nbsp;&nbsp;&nbsp;";     var selection="<font color='"+color+"'>X</font>";
    if (color==svalue) { selection="X"; }     if (color==svalue) { selection="<font color='#"+col[10-ir]+col[10-ig]+col[10-ib]+"'>X</font>"; }
    choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+     choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+
                color+"'"+')">'+selection+'</a></td>');                 color+"'"+')">'+selection+'</a></td>');
                                 
Line 534  function draw() { Line 534  function draw() {
       tablestart('Choose a Color');        tablestart('Choose a Color');
       choicewrite('<table>');        choicewrite('<table>');
       if (svalue) {        if (svalue) {
          choicewrite('<tr><td colspan="10">Current choice:</td><td bgcolor="'+           choicewrite('<tr><td colspan="9">Current choice:</td><td bgcolor="'+
                      svalue+'" colspan="6">&nbsp;</td></tr>');                       svalue+'" colspan="2">&nbsp;</td></tr>');
       }        }
       for (var ir=1; ir<=15; ir++) {        for (var ir=0; ir<=10; ir++) {
           for (var ig=1; ig<=15; ig++) {            for (var ig=0; ig<=10; ig++) {
               choicewrite('<tr>');                choicewrite('<tr>');
               for (var ib=1; ib<=15; ib++) {                for (var ib=0; ib<=10; ib++) {
                   colorfield(ir,ig,ib);                    colorfield(ir,ig,ib);
       }        }
               choicewrite('</tr>');                choicewrite('</tr>');

Removed from v.1.22  
changed lines
  Added in v.1.23


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>