--- rat/client/parameter.html 2021/03/08 14:27:57 1.71.8.1 +++ rat/client/parameter.html 2016/05/21 16:58:07 1.73 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.71.8.1 2021/03/08 14:27:57 raeburn Exp $ +// $Id: parameter.html,v 1.73 2016/05/21 16:58:07 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -447,10 +447,10 @@ function ipstringeval() { svalue = ''; for (var i=0; i 0) { + if (items.length) { for (var j=0; j'+ 'Remove'; @@ -504,6 +505,45 @@ function callradiostringeval(newval) { return 'onclick="parent.radiostringeval(\''+newval+'\')"'; } +function lenienteval(newval) { + if (newval == 'weighted') { + if (document.getElementById('lenientweighteddiv')) { + document.getElementById('lenientweighteddiv').style.display='block'; + } + var patternRelWeight = /^\-?[\d.]+$/; + var sform=choices.document.forms.sch; + if ((sform.lenientrelwt.length != 'undefined') && (sform.lenientrelwt.length) != 'null') { + for (var i=0; iValue:'); @@ -833,7 +873,7 @@ function draw() { choicewrite('
'); + choicewrite(' /> Bubblesheet Exam
'); // choicewrite('
'); } if (pscat=='lenient') { + var patternLenientStd = /^(yes|no|default)$/; + var patternLenientRel = /^([\-\d\.]+)\,([\-\d\.]+)\,([\-\d\.]+)\,([\-\d\.]+)$/; + var lenientweighted = 'none'; + var relatives = new Array; tablestart('Lenient Grading (Partial Credit)'); choicewrite('Value:'); choicewrite('
'); choicewrite('
'); choicewrite('
'); + choicewrite('

'+ + '
'+ + ''+ + ''); + var lenienttypes = ['Correct (checked)','Correct (unchecked)','Incorrect (checked)','Incorrect (unchecked)']; + for (var i=0; i'+ + ''); + } + choicewrite('
Foil submission statusPoints
'+lenienttypes[i]+'
'); } if (pscat=='discussvote') { tablestart('Discussion Voting'); @@ -900,17 +970,17 @@ function draw() { choicewrite(' /> No
'); } if (pscat=='ip') { - var currallow = new Array; + var currallow = new Array; var currdeny = new Array; if ((svalue != '') && (svalue != null)) { var patternComma = /,/; var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/; var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/; var current = new Array; - if (patternComma.test(svalue)) { + if (patternComma.test(svalue)) { current = svalue.split(','); } else { - current = [svalue]; + current = (svalue); } for (var i=0; i'+ '
'+ '
'); + var num=0; for (var j=0; j'); - choicewrite('Remove'); + if (num > 0) { + choicewrite('Remove'); + } choicewrite('
'); + num ++; } - choicewrite('
'); + choicewrite(''); } choicewrite(''); } @@ -975,15 +1049,15 @@ function draw() { choicewrite('
'); + choicewrite(' /> Yes, and the scope of student selected slot is a single resource.
'); choicewrite('
'); + choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource.
'); choicewrite('
'); + choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in.
'); choicewrite(''); } } @@ -1302,7 +1376,7 @@ function init() { selwrite(''); this.window.selector.document.close(); draw(); - + } // ]]>