version 1.60, 2011/04/04 21:27:30
|
version 1.61, 2011/04/05 02:29:22
|
Line 388 sub answer_spline_script {
|
Line 388 sub answer_spline_script {
|
$output=~s/\,$//; |
$output=~s/\,$//; |
$output.=']");'."\n"; |
$output.=']");'."\n"; |
for (my $i=2; $i<2*$order; $i+=2) { |
for (my $i=2; $i<2*$order; $i+=2) { |
$output.='document.ggbApplet_'.$id.'.setColor("'.$label.'_'.$i.'",0,170,0);'."\n"; |
$output.='document.ggbApplet_'.$id.'.setColor("'.$label.'_'.($i>=10?'{':'').$i.($i>=10?'}':'').'",0,170,0);'."\n"; |
} |
} |
for (my $i=1; $i<2*$order; $i+=2) { |
for (my $i=1; $i<2*$order; $i+=2) { |
$output.='document.ggbApplet_'.$id.'.setVisible("'.$label.'_'.$i.'",false);'."\n"; |
$output.='document.ggbApplet_'.$id.'.setVisible("'.$label.'_'.($i>=10?'{':'').$i.($i>=10?'}':'').'",false);'."\n"; |
} |
} |
|
|
return $output; |
return $output; |