--- rat/client/parameter.html 2017/06/13 15:49:36 1.71.2.1 +++ rat/client/parameter.html 2016/05/15 17:40:34 1.72 @@ -5,7 +5,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.71.2.1 2017/06/13 15:49:36 raeburn Exp $ +// $Id: parameter.html,v 1.72 2016/05/15 17:40:34 raeburn Exp $ // // Copyright Michigan State University Board of Trustees // @@ -449,6 +449,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; i Exam'); + choicewrite(' /> Bubblesheet Exam'); // choicewrite(' Library'); } 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(' Yes'); choicewrite(' No'); choicewrite(' Default (only bubblesheet grading is lenient)'); + choicewrite('Yes, weighted (optionresponse in checkbox mode)'+ + ''+ + ''+ + 'Foil submission statusPoints'); + var lenienttypes = ['Correct (checked)','Correct (unchecked)','Incorrect (checked)','Incorrect (unchecked)']; + for (var i=0; i'+lenienttypes[i]+''+ + ''); + } + choicewrite(''); } if (pscat=='discussvote') { tablestart('Discussion Voting');