[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 14 Oct 2005 17:27:23 -0000


albertel		Fri Oct 14 13:27:23 2005 EDT

  Modified files:              
    /loncom/homework	bridgetask.pm 
  Log:
  -make things easier for colorblind
  
  
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.70 loncom/homework/bridgetask.pm:1.71
--- loncom/homework/bridgetask.pm:1.70	Fri Oct 14 12:23:39 2005
+++ loncom/homework/bridgetask.pm	Fri Oct 14 13:27:23 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: bridgetask.pm,v 1.70 2005/10/14 16:23:39 albertel Exp $
+# $Id: bridgetask.pm,v 1.71 2005/10/14 17:27:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -317,8 +317,8 @@
 	my $slot_name=$Apache::lonhomework::history{'resource.'.$version.'.checkedin.slot'};
 	my %slot=&Apache::lonnet::get_slot($slot_name);
 	my $diff = $slot{'endtime'} - $submissiontime;
-	my ($color,$when)=('red','after');
-	if ($diff > 0) { ($color,$when)=('green','before'); }
+	my ($color,$when)=('#FF6666','after');
+	if ($diff > 0) { ($color,$when)=('#336600','before'); }
 	my $info;
 	if ($diff%60) { $info=($diff%60).' seconds'; }
 	$diff=int($diff/60);