--- rat/client/parameter.html 2003/02/03 18:03:54 1.20
+++ rat/client/parameter.html 2004/11/10 20:32:19 1.29
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.20 2003/02/03 18:03:54 harris41 Exp $
+// $Id: parameter.html,v 1.29 2004/11/10 20:32:19 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -27,9 +27,6 @@ Parameter Input Window
//
// http://www.lon-capa.org/
//
-06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16,
-03/21/01,03/24,06/26 Gerd Kortemeyer
-08/08 Gerd Kortemeyer
-->
LON-CAPA
@@ -304,6 +301,17 @@ function stringeval() {
draw();
}
+function radiostringeval(newval) {
+ svalue=newval;
+ draw();
+}
+
+function callradiostringeval(newval) {
+ return 'onChange="parent.radiostringeval(\''
+ +newval+'\')" onClick="parent.radiostringeval(\''
+ +newval+'\')"';
+}
+
function intervaldis() {
csecs=svalue;
cdays=Math.floor(csecs/86400);
@@ -315,7 +323,23 @@ function intervaldis() {
choicewrite(cdays+' days '+chours+' hours '
+cmins+' mins '+csecs+' secs');
}
-
+
+function pickcolor(picked) {
+ svalue=picked;
+ draw();
+}
+
+function colorfield(ir,ig,ib) {
+ var col=new Array;
+ col=["00","11","22","44","66","88","AA","CC","DD","EE","FF"];
+ var color='#'+col[ir]+col[ig]+col[ib];
+ var selection="X";
+ if (color==svalue) { selection="X"; }
+ choicewrite(''+selection+' | ');
+
+}
+
function draw() {
choicestart();
choicewrite('