--- rat/client/parameter.html 2022/07/06 22:00:43 1.88
+++ rat/client/parameter.html 2023/12/29 21:06:03 1.92
@@ -5,7 +5,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.88 2022/07/06 22:00:43 raeburn Exp $
+// $Id: parameter.html,v 1.92 2023/12/29 21:06:03 raeburn Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -422,6 +422,7 @@ function validateDeepLink() {
svalue += sform.deeplinkacc.options[sform.deeplinkacc.selectedIndex].value+',';
var keyRegExp = /^[a-zA-Z\d_.!@#$%^&*()+=-]+$/;
var numRegExp = /^\d+$/;
+ var exitTextRegExp = /^[^'":;,]+$/;
if (sform.deeplinkprotect.length) {
for (var i=0; i No
');
}
+ if (pscat=='tex') {
+ tablestart('TeX file display');
+ choicewrite('
Value: | ');
+ choicewrite(' ');
+ choicewrite(' ');
+ }
if (pscat=='ip') {
var currallow = new Array;
var currdeny = new Array;
@@ -1183,12 +1240,16 @@ function draw() {
if (pscat=='deeplink') {
var deeplinkvals = new Array();
var linkprotectparts = new Array();
- var ltikeyRegExp = /^(ltic|ltid|key):(\w+)$/;
+ var ltikeyRegExp = /^(ltic:\d+|ltid:\d+|key:[a-zA-Z\d_.!@#$%^&*()+=-]+)$/;
+ var linkexitparts = new Array();
+ var dlinkexitRegExp = /^(yes|url|no)(|:[^:,;'"]+)$/;
var dlinkkeysty = 'hidden';
var dlinkkeyval = '';
var dlinklticdivsty = 'none';
var dlinkltiddivsty = 'none';
var dlinkmenusdivsty = 'none';
+ var dlinkexitdivsty = 'none';
+ var dlinkexittextval = '';
if ((svalue != '') && (typeof(svalue) != 'undefined')) {
deeplinkvals = svalue.split(',');
if (ltikeyRegExp.test(deeplinkvals[4])) {
@@ -1206,8 +1267,20 @@ function draw() {
if (deeplinkvals[5] >= 1) {
dlinkmenusdivsty = 'inline-block';
}
+ if (dlinkexitRegExp.test(deeplinkvals[7])) {
+ linkexitparts = deeplinkvals[7].split(':');
+ deeplinkvals[7] = linkexitparts[0];
+ if (deeplinkvals[7] != 'no') {
+ dlinkexitdivsty = 'inline-block';
+ if (!linkexitparts[1]) {
+ dlinkexittextval = 'Exit Tool';
+ } else {
+ dlinkexittextval = linkexitparts[1];
+ }
+ }
+ }
} else {
- deeplinkvals = ['off','unhide','full','res','','0'];
+ deeplinkvals = ['off','unhide','full','res','','0','_self','no'];
}
var deeplinkstate = new Array();
deeplinkstate = ['only','off','both'];
@@ -1231,6 +1304,7 @@ function draw() {
deeplinktarget = ['_self','_top'];
var deeplinktargettxt = new Array();
deeplinktargettxt = ['Embedded','Not embedded'];
+ var deeplinkexit = ['yes','url','no'];
tablestart('Deep-linked items');
choicewrite(' |
Access status? | ');
choicewrite('');
+ choicewrite(' |
');
+ choicewrite('Exit Button? | ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite('');
+ choicewrite(' Button text: ');
+ choicewrite('');
+ choicewrite(' ');
choicewrite(' |
');
}
}
@@ -1752,6 +1847,7 @@ function init() {
else if (pscat == 'fileext') { sopt('fileext','File Extension'); }
else if (pscat == 'useslots') { sopt('useslots','Slots control access'); }
else if (pscat == 'deeplink') { sopt('deeplink','Deep-linked items'); }
+ else if (pscat == 'tex') { sopt('texdisplay','TeX File Display'); }
else { pscat = 'any'; }
if (pscat != 'deeplink') { sopt('any','String Value'); }
}