version 1.86, 2021/08/04 19:59:12
|
version 1.89, 2022/07/06 22:31:13
|
Line 401 function validateInterval() {
|
Line 401 function validateInterval() {
|
for (var i=0; i<sform.donebutton.length; i++) { |
for (var i=0; i<sform.donebutton.length; i++) { |
if (sform.donebutton[i].checked) { |
if (sform.donebutton[i].checked) { |
if (sform.donebutton[i].value == '_done_proctor') { |
if (sform.donebutton[i].value == '_done_proctor') { |
if ((sform.donebutton_proctorkey.value == '') || |
var keyval = sform.donebutton_proctorkey.value; |
(sform.donebutton_proctorkey.value == null)) { |
if ((keyval == '') || (typeof(keyval) == 'undefined')) { |
alert('Please enter a key for a proctor to enter when a student uses the "Done" button.'); |
alert('Please enter a key for a proctor to enter when a student uses the "Done" button.'); |
return; |
return; |
} |
} |
Line 476 function validateDeepLink() {
|
Line 476 function validateDeepLink() {
|
} |
} |
} |
} |
} |
} |
|
svalue += ','; |
|
svalue += sform.deeplinktarget.options[sform.deeplinktarget.selectedIndex].value; |
assemble(); |
assemble(); |
} |
} |
|
|
Line 634 function lenienteval(newval) {
|
Line 636 function lenienteval(newval) {
|
} |
} |
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') { |
var relwtlength = sform.lenientrelwt.length; |
|
if ((relwtlength != '') && (typeof(relwtlength) != 'undefined')) { |
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; |
relweight = relweight.replace(/^\s+|\s+$/g,''); |
relweight = relweight.replace(/^\s+|\s+$/g,''); |
Line 1093 function draw() {
|
Line 1096 function draw() {
|
if (pscat=='ip') { |
if (pscat=='ip') { |
var currallow = new Array; |
var currallow = new Array; |
var currdeny = new Array; |
var currdeny = new Array; |
if ((svalue != '') && (svalue != null)) { |
if ((svalue != '') && (typeof(svalue) != 'undefined')) { |
var patternComma = /,/; |
var patternComma = /,/; |
var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternAllow = /^([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/; |
var patternDeny = /^\!([\[\]a-zA-Z\.\d\*\-]+)$/; |
Line 1180 function draw() {
|
Line 1183 function draw() {
|
if (pscat=='deeplink') { |
if (pscat=='deeplink') { |
var deeplinkvals = new Array(); |
var deeplinkvals = new Array(); |
var linkprotectparts = new Array(); |
var linkprotectparts = new Array(); |
var ltikeyRegExp = /^(ltic|ltid|key):(\w+)$/; |
var ltikeyRegExp = /^(ltic:\d+|ltid:\d+|key:[a-zA-Z\d_.!@#$%^&*()+=-]+)$/; |
var dlinkkeysty = 'hidden'; |
var dlinkkeysty = 'hidden'; |
var dlinkkeyval = ''; |
var dlinkkeyval = ''; |
var dlinklticdivsty = 'none'; |
var dlinklticdivsty = 'none'; |
var dlinkltiddivsty = 'none'; |
var dlinkltiddivsty = 'none'; |
var dlinkmenusdivsty = 'none'; |
var dlinkmenusdivsty = 'none'; |
if ((svalue != '') && (svalue != null)) { |
if ((svalue != '') && (typeof(svalue) != 'undefined')) { |
deeplinkvals = svalue.split(','); |
deeplinkvals = svalue.split(','); |
if (ltikeyRegExp.test(deeplinkvals[4])) { |
if (ltikeyRegExp.test(deeplinkvals[4])) { |
linkprotectparts = deeplinkvals[4].split(':'); |
linkprotectparts = deeplinkvals[4].split(':'); |
Line 1224 function draw() {
|
Line 1227 function draw() {
|
deeplinkscopetxt = ['resource only','enclosing map/folder','recursive map/folder']; |
deeplinkscopetxt = ['resource only','enclosing map/folder','recursive map/folder']; |
var deeplinkprotect = new Array(); |
var deeplinkprotect = new Array(); |
deeplinkprotect = ['none','key','ltic','ltid']; |
deeplinkprotect = ['none','key','ltic','ltid']; |
|
var deeplinktarget = new Array(); |
|
deeplinktarget = ['_self','_top']; |
|
var deeplinktargettxt = new Array(); |
|
deeplinktargettxt = ['Embedded','Not embedded']; |
tablestart('Deep-linked items'); |
tablestart('Deep-linked items'); |
choicewrite('<tr><td>Access status?</td><td>'); |
choicewrite('<tr><td>Access status?</td><td>'); |
choicewrite('<select name="deeplinkstate">'); |
choicewrite('<select name="deeplinkstate">'); |
Line 1279 function draw() {
|
Line 1286 function draw() {
|
choicewrite('</span><br />'); |
choicewrite('</span><br />'); |
|
|
var possmenus = new Array(); |
var possmenus = new Array(); |
if ((pextra != '') && (pextra != null)) { |
if ((pextra != '') && (typeof(pextra) != 'undefined')) { |
var lticRegExp = /^ltic_/; |
var lticRegExp = /^ltic_/; |
var ltidRegExp = /^ltid_/; |
var ltidRegExp = /^ltid_/; |
var menusRegExp = /^menus_/; |
var menusRegExp = /^menus_/; |
Line 1404 function draw() {
|
Line 1411 function draw() {
|
} |
} |
choicewrite('</select></div></span><br />'); |
choicewrite('</select></div></span><br />'); |
} |
} |
|
choicewrite('</td></tr>'); |
|
choicewrite('<tr><td>Embedded?</td><td>'); |
|
choicewrite('<select name="deeplinktarget">'); |
|
for (var i=0; i<deeplinktarget.length; i++) { |
|
choicewrite('<option value="'+deeplinktarget[i]+'"'); |
|
if (deeplinkvals[6] == deeplinktarget[i]) { |
|
choicewrite(' selected="selected"'); |
|
} |
|
choicewrite('>'+deeplinktargettxt[i]+'</option>'); |
|
} |
|
choicewrite('</select>'); |
choicewrite('</td></tr></table>'); |
choicewrite('</td></tr></table>'); |
} |
} |
} |
} |