[LON-CAPA-cvs] cvs: loncom /interface lonquickgrades.pm
bowersj2
lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jun 2003 20:01:21 -0000
bowersj2 Mon Jun 23 16:01:21 2003 EDT
Modified files:
/loncom/interface lonquickgrades.pm
Log:
Amazingly, Mozilla got "green" out of "# 0c0 0". Mac IE wasn't quite as
accomodating, and just turned it black. This update will fix that. (This
occurred when a student got all problems in a sequence correct in
quickgrades; I'm surprised nobody complained about this earlier, since
it's been in there since day one.)
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.15 loncom/interface/lonquickgrades.pm:1.16
--- loncom/interface/lonquickgrades.pm:1.15 Wed Jun 18 15:31:38 2003
+++ loncom/interface/lonquickgrades.pm Mon Jun 23 16:01:20 2003
@@ -241,7 +241,7 @@
$a = $start->[2]; $b = $end->[2];
my $mix3 = POSIX::floor((1-$ratio)*$a + $ratio*$b);
- $final = sprintf "%2x%2x%2x", $mix1, $mix2, $mix3;
+ $final = sprintf "%02x%02x%02x", $mix1, $mix2, $mix3;
return "#" . $final;
}