--- rat/client/parameter.html 2015/09/13 21:48:37 1.68
+++ rat/client/parameter.html 2015/11/21 00:16:09 1.69
@@ -5,7 +5,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.68 2015/09/13 21:48:37 raeburn Exp $
+// $Id: parameter.html,v 1.69 2015/11/21 00:16:09 musolffc Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -242,58 +242,66 @@ function month() {
function intminute() {
var thisminutes=cmins;
var i;
- choicewrite('';
+ return result;
}
function inthour() {
var thishours=chours;
var i;
- choicewrite('');
+ var result = '';
+ result += '';
for (i=0;i<=23;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
+ result += '';
+ return result;
}
function intsecond() {
- var thisseconds=csecs;
+ var thisseconds=csecs;
var i;
- choicewrite('');
+ var result = '';
+ result += '';
for (i=0;i<=59;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
+ result += '';
+ return result;
}
function intday() {
var thisdate=cdays;
var i;
- choicewrite('');
+ var result ='';
+ result += '';
for (i=0;i<=31;i++) {
- choicewrite('');
+ result += '>'+i+'';
}
- choicewrite('');
+ result += '';
+ return result;
}
function intcalc() {
@@ -376,8 +384,7 @@ function intervaldis() {
csecs-=chours*3600;
cmins=Math.floor(csecs/60);
csecs-=cmins*60;
- choicewrite(cdays+' days '+chours+' hours '
- +cmins+' mins '+csecs+' secs');
+ return cdays+' days '+chours+' hours '+cmins+' mins '+csecs+' secs';
}
function pickcolor(picked) {
@@ -494,15 +501,17 @@ function draw() {
}
if (pscat=='interval') {
tablestart('Time interval');
- choicewrite('
');
- intervaldis();
- choicewrite(' |
Time:'
- +' | ');
- intday();choicewrite('days ');
- inthour();choicewrite('hours ');
- intminute(); choicewrite('mins '); intsecond();
- choicewrite('secs |
');
- choicewrite('
');
+ choicewrite( [
+ ''+intervaldis()+' |
',
+ 'Time: | ',
+ ''+intday()+' days ',
+ ''+inthour()+' hours',
+ ''+intminute()+' mins',
+ ''+intsecond()+' secs',
+ ' |
',
+ '',
+ '
',
+ ].join("\n"));
tablestart('Provide a "Done" button to students?');
choicewrite('Value: | ');
choicewrite(' |