version 1.78, 2018/11/13 03:59:12
|
version 1.79, 2019/01/06 04:02:19
|
Line 192 function second() {
|
Line 192 function second() {
|
choicewrite('>'+i+'</option>'); |
choicewrite('>'+i+'</option>'); |
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function date() { |
function date() { |
Line 243 function month() {
|
Line 243 function month() {
|
} |
} |
choicewrite('</select>'); |
choicewrite('</select>'); |
} |
} |
|
|
|
|
function intminute() { |
function intminute() { |
var thisminutes=cmins; |
var thisminutes=cmins; |
var i; |
var i; |
Line 454 function ipstringeval() {
|
Line 454 function ipstringeval() {
|
if (items.length > 0) { |
if (items.length > 0) { |
for (var j=0; j<items.length; j++) { |
for (var j=0; j<items.length; j++) { |
if (items[j].type == "text") { |
if (items[j].type == "text") { |
var possip = items[j].value |
var possip = items[j].value; |
possip = possip.replace(/^\s+|\s+$/g,''); |
possip = possip.replace(/^\s+|\s+$/g,''); |
if (patternIp.test(possip)) { |
if (patternIp.test(possip)) { |
if (acctypes[i] == 'deny') { |
if (acctypes[i] == 'deny') { |
Line 514 function lenienteval(newval) {
|
Line 514 function lenienteval(newval) {
|
document.getElementById('lenientweighteddiv').style.display='block'; |
document.getElementById('lenientweighteddiv').style.display='block'; |
} |
} |
var patternRelWeight = /^\-?[\d.]+$/; |
var patternRelWeight = /^\-?[\d.]+$/; |
var sform=choices.document.forms.sch; |
var sform=choices.document.forms.sch; |
if ((sform.lenientrelwt.length != 'undefined') && (sform.lenientrelwt.length) != 'null') { |
if ((sform.lenientrelwt.length != 'undefined') && (sform.lenientrelwt.length) != 'null') { |
for (var i=0; i<sform.lenientrelwt.length; i++) { |
for (var i=0; i<sform.lenientrelwt.length; i++) { |
var relweight = sform.lenientrelwt[i].value; |
var relweight = sform.lenientrelwt[i].value; |
Line 549 function calllenientradioeval(newval) {
|
Line 549 function calllenientradioeval(newval) {
|
|
|
function callintervalpmodval() { |
function callintervalpmodval() { |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
return 'onclick="parent.intcalc();parent.toggleSecret()"'; |
} |
} |
|
|
function intervaldis() { |
function intervaldis() { |
csecs=svalue; |
csecs=svalue; |
Line 788 function draw() {
|
Line 788 function draw() {
|
if (ptype=='float') { |
if (ptype=='float') { |
if (pscat=='default') { |
if (pscat=='default') { |
tablestart('Default value or none'); |
tablestart('Default value or none'); |
choicewrite('</table>'); |
choicewrite('</table>'); |
} else { |
} else { |
if (pscat=='pos') { |
if (pscat=='pos') { |
tablestart('Positive floating point number or zero'); |
tablestart('Positive floating point number or zero'); |
Line 1057 function draw() {
|
Line 1057 function draw() {
|
' type="radio" '+callradiostringeval('map_map')); |
' type="radio" '+callradiostringeval('map_map')); |
if (svalue=='map_map') { choicewrite(' checked="checked"'); } |
if (svalue=='map_map') { choicewrite(' checked="checked"'); } |
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.</label><br />'); |
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.</label><br />'); |
choicewrite('</td></tr></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
if (pscat=='deeplink') { |
if (pscat=='deeplink') { |
tablestart('Deep-linked items'); |
tablestart('Deep-linked items'); |
Line 1085 function draw() {
|
Line 1085 function draw() {
|
choicewrite('</td></tr></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |
|
|
if (ptype=='color') { |
if (ptype=='color') { |
tablestart('Choose a Color'); |
tablestart('Choose a Color'); |
choicewrite('<table>'); |
choicewrite('<table>'); |
Line 1100 function draw() {
|
Line 1100 function draw() {
|
colorfield(ir,ig,ib); |
colorfield(ir,ig,ib); |
} |
} |
choicewrite('</tr>'); |
choicewrite('</tr>'); |
} |
} |
} |
} |
choicewrite('</table></td></table>'); |
choicewrite('</table></td></table>'); |
} |
} |
Line 1133 function recursechange() {
|
Line 1133 function recursechange() {
|
if (rform.recurse[i].value == 1) { |
if (rform.recurse[i].value == 1) { |
colnum++; |
colnum++; |
} |
} |
pmarker = pmarkerst+'_'+pparm+'&'+colnum; |
pmarker = pmarkerst+'_'+pparm+'&'+colnum; |
} |
} |
} |
} |
} |
} |
Line 1193 function init() {
|
Line 1193 function init() {
|
var doneproctorRegExp = /_done(|\:[^\:]+\:)_proctor/; |
var doneproctorRegExp = /_done(|\:[^\:]+\:)_proctor/; |
var proctorkeyRegExp = /^(\d+)_(.+)$/; |
var proctorkeyRegExp = /^(\d+)_(.+)$/; |
var donetextRegExp = /\:([^\:]+)\:/; |
var donetextRegExp = /\:([^\:]+)\:/; |
var markerRegExp = /^(.+)_([A-Za-z0-9]+)\&(\d+)$/; |
var markerRegExp = /^(.+)_([A-Za-z0-9]+)\&(\d+)$/; |
var namevalue=this.window.location.search.split('&'); |
var namevalue=this.window.location.search.split('&'); |
namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1); |
namevalue[0]=namevalue[0].substr(1,namevalue[0].length-1); |
|
|
Line 1204 function init() {
|
Line 1204 function init() {
|
if (pair[0]=='type') { subs=pair[1].split('_'); |
if (pair[0]=='type') { subs=pair[1].split('_'); |
ptype=subs[0]; |
ptype=subs[0]; |
pscat=subs[1]; |
pscat=subs[1]; |
if (typeof(subs[2])!="undefined") { |
if (typeof(subs[2])!="undefined") { |
pscat+='_'+subs[2]; |
pscat+='_'+subs[2]; |
} |
} |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
pscat='default'; |
pscat='default'; |
} |
} |
} |
} |
Line 1223 function init() {
|
Line 1223 function init() {
|
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; } |
} |
} |
|
|
var tablecol = ''; |
var tablecol = ''; |
var ismap = ''; |
var ismap = ''; |
if (markerRegExp.test(pmarker)) { |
if (markerRegExp.test(pmarker)) { |
var markerinfo = pmarker.match(markerRegExp); |
var markerinfo = pmarker.match(markerRegExp); |
if (markerinfo.length == 4) { |
if (markerinfo.length == 4) { |
pmarkerst = markerinfo[1]; |
pmarkerst = markerinfo[1]; |
pparm = markerinfo[2]; |
pparm = markerinfo[2]; |
tablecol = markerinfo[3]; |
tablecol = markerinfo[3]; |
if (tablecol == 17 || tablecol == 16) { |
if (tablecol == 17 || tablecol == 16) { |
ismap = 1; |
ismap = 1; |
if (tablecol == 17) { |
if (tablecol == 17) { |
precursive = 1; |
precursive = 1; |
} |
} |
pnonreccol = 16; |
pnonreccol = 16; |
} else if (tablecol == 11 || tablecol == 10) { |
} else if (tablecol == 11 || tablecol == 10) { |
ismap = 1; |
ismap = 1; |
if (tablecol == 11) { |
if (tablecol == 11) { |
precursive = 1; |
precursive = 1; |
Line 1285 function init() {
|
Line 1285 function init() {
|
} |
} |
} else { |
} else { |
if (doneRegExp.test(pvalue)) { |
if (doneRegExp.test(pvalue)) { |
var current = pvalue.match(doneRegExp); |
var current = pvalue.match(doneRegExp); |
if (current.length == 2) { |
if (current.length == 2) { |
var textstr = current[1]; |
var textstr = current[1]; |
if (textstr != '') { |
if (textstr != '') { |
Line 1303 function init() {
|
Line 1303 function init() {
|
} |
} |
svalue=pvalue; |
svalue=pvalue; |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
(pscat=='default') && |
(pscat=='default') && |
(typeof(svalue)!="undefined") && |
(typeof(svalue)!="undefined") && |
(svalue!=0) && (svalue!='')) { pscat='any'; } |
(svalue!=0) && (svalue!='')) { pscat='any'; } |
|
|
if (ptype=='tolerance') { |
if (ptype=='tolerance') { |
Line 1380 function init() {
|
Line 1380 function init() {
|
months[10]='November'; |
months[10]='November'; |
months[11]='December'; |
months[11]='December'; |
} |
} |
|
|
if (ptype=='int') { |
if (ptype=='int') { |
sopt('default','Default'); |
sopt('default','Default'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('pos','Positive Integer, Not Zero'); |