version 1.73, 2002/10/29 20:57:31
|
version 1.81, 2002/12/09 17:08:19
|
Line 58 var menucltim;
|
Line 58 var menucltim;
|
|
|
var clockdelta=0; |
var clockdelta=0; |
|
|
|
var w_extdisp_flag=-1; |
|
var extdisp; |
|
|
// not used (yet) |
// not used (yet) |
// var w_Annotator; |
// var w_Annotator; |
// var w_bmquery; |
// var w_bmquery; |
Line 77 var w_LONcatInfo_flag=-1;
|
Line 80 var w_LONcatInfo_flag=-1;
|
var hr = new Array; |
var hr = new Array; |
var db = new Array; |
var db = new Array; |
var dt = new Array; |
var dt = new Array; |
|
var ds = new Array; |
|
|
for (var i=1;i<=3;i++) { |
for (var i=1;i<=3;i++) { |
for (var j=1;j<=10;j++) { |
for (var j=1;j<=10;j++) { |
Line 84 for (var i=1;i<=3;i++) {
|
Line 88 for (var i=1;i<=3;i++) {
|
hr[index]=''; |
hr[index]=''; |
db[index]=''; |
db[index]=''; |
dt[index]=''; |
dt[index]=''; |
|
ds[index]=''; |
} |
} |
} |
} |
|
|
Line 134 function windowcheck() {
|
Line 139 function windowcheck() {
|
} |
} |
clientwindow.name='loncapaclient'; |
clientwindow.name='loncapaclient'; |
clientwindow.menuwindow=self; |
clientwindow.menuwindow=self; |
|
extenddispclose(); |
} |
} |
|
|
function logout () { |
function logout () { |
Line 211 function defdis() {
|
Line 217 function defdis() {
|
display(); |
display(); |
} |
} |
|
|
function switchbutton(row,col,imgsrc,texttop,textbot,action) { |
function switchbutton(row,col,imgsrc,texttop,textbot,action,desc) { |
var idx=10*row+col; |
var idx=10*row+col; |
this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc; |
this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc; |
hr[idx]=action; |
hr[idx]=action; |
dt[idx]=texttop; |
dt[idx]=texttop; |
db[idx]=textbot; |
db[idx]=textbot; |
|
ds[idx]=desc; |
} |
} |
|
|
function clearbut(row,col) { |
function clearbut(row,col) { |
Line 225 function clearbut(row,col) {
|
Line 232 function clearbut(row,col) {
|
hr[idx]='javascript:defdis();'; |
hr[idx]='javascript:defdis();'; |
dt[idx]=''; |
dt[idx]=''; |
db[idx]=''; |
db[idx]=''; |
|
ds[idx]=''; |
} |
} |
|
|
function setstatus(tp,bt) { |
function setstatus(tp,bt) { |
Line 235 function setstatus(tp,bt) {
|
Line 243 function setstatus(tp,bt) {
|
defdis(); |
defdis(); |
} |
} |
|
|
function is_editable_resource (url) { |
|
// figure out if this a specific resource version |
|
var Chunks = url.split('.'); |
|
var tmp = Chunks[Chunks.length-1]; |
|
if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { |
|
return false; |
|
} |
|
// see if this is actually in resource space |
|
var SlashChunks=url.split('/'); |
|
if (SlashChunks[1]!='res') { return false; } |
|
return true; |
|
} |
|
|
|
function cstrgo(currenturl,defaulturl) { |
|
windowcheck(); |
|
var url; |
|
if ((currenturl == null) || |
|
(currenturl == '') || |
|
(! is_editable_resource(currenturl))) { |
|
url = defaulturl; |
|
} else { |
|
var SlashChunks=currenturl.split('/'); |
|
SlashChunks[1]='priv'; |
|
var i; |
|
for (i=2;i<SlashChunks.length;i++) { |
|
SlashChunks[i]=SlashChunks[i+1]; |
|
} |
|
SlashChunks.length--; |
|
url=SlashChunks.join('/'); |
|
} |
|
this.document['led'].src="ledsend.gif"; |
|
if (url != '') { |
|
clientwindow.window.location.href="http://"+clienthost+url; |
|
} |
|
} |
|
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
statuslocked=0; |
statuslocked=0; |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
currentSymb= null; |
currentSymb= null; |
Line 347 function set_bookmark() {
|
Line 319 function set_bookmark() {
|
bmquery.document.close(); |
bmquery.document.close(); |
} |
} |
|
|
|
function extenddispclose() { |
|
if (w_extdisp_flag>0) { |
|
if (extdisp!=null && !extdisp.closed) { |
|
extdisp.close(); |
|
} |
|
w_extdisp_flag=-1; |
|
} |
|
} |
|
|
|
function extenddisp() { |
|
go(''); |
|
w_extdisp_flag=1; |
|
extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", |
|
"ExtDisp", "width=400,height=450"); |
|
extdisp.document.clear(); |
|
extdisp.document.writeln( |
|
'<html><body bgcolor="#666666" text="#DDDDDD" link="#EEEEEE" '+ |
|
'onUnload="opener.w_extdisp_flag=-1;">'+ |
|
'<h2>LON-CAPA Extended Display Remote Control</h2>'+ |
|
'<script>var currentURL="'+currentURL+'";self.focus();</script>'+ |
|
'<table border="2"><tr><th>Select Functionality from Below</th>'+ |
|
'<th>Description</th></tr>'); |
|
for (var i=0; i<=ds.length; i++) { |
|
if (typeof(ds[i])!='undefined') { |
|
if (ds[i]!='') { |
|
extdisp.document.writeln( |
|
'<tr><td align="center"><a href="javascript:opener.'+ |
|
hr[i]+';">>>><img align="absmiddle" border="0" src="'+ |
|
this.document['b'+i].src+'" /><<<</a><br /> <br />'+ |
|
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
|
for (var j=0;j<=7;j++) { |
|
if (j<dt[i].length) { |
|
ch=dt[i].charAt(j); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
extdisp.document.writeln('<td><img border="0" src="http://' |
|
+clienthost+fontpath+ch+'.gif" /></td>'); |
|
} |
|
extdisp.document.writeln('</tr><tr>'); |
|
for (var j=0;j<=7;j++) { |
|
if (j<db[i].length) { |
|
ch=db[i].charAt(j); |
|
if (ch==' ') { ch='space'; } |
|
if (ch=='-') { ch='hyphen'; } |
|
if (ch==':') { ch='colon'; } |
|
if (ch=='/') { ch='slash'; } |
|
} else { ch='space'; } |
|
extdisp.document.writeln('<td><img border="0" src="http://' |
|
+clienthost+fontpath+ch+'.gif" /></td>'); |
|
} |
|
extdisp.document.writeln( |
|
'</tr></table></td><td>'+ds[i]+'</td></tr>'); |
|
} |
|
} |
|
} |
|
extdisp.document.writeln('</table></body></html>'); |
|
extdisp.document.close(); |
|
} |
function edit_bookmarks() { |
function edit_bookmarks() { |
go(''); |
go(''); |
w_BookmarkPal_flag=1; |
w_BookmarkPal_flag=1; |
Line 366 function catalog_info() {
|
Line 399 function catalog_info() {
|
<tr><td> |
<tr><td> |
<a href="javascript:defdis();" |
<a href="javascript:defdis();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img border="0" width="80" height="50" src="title.gif"></a> |
><img border="0" width="80" height="50" src="title.gif" /></a> |
</td><td> |
</td><td> |
<img border="0" width="50" height="50" name="led" src="ledoff.gif"> |
<img border="0" width="50" height="50" name="led" src="ledoff.gif" /> |
</td></tr> |
</td></tr> |
</table> |
</table> |
</center> |
</center> |
|
|
<center> |
<center> |
<a href="javascript:defdis();" |
<a href="javascript:extenddisp();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img width="103" height="3" border="0" src="spacer.gif" /></a> |
><img width="104" height="10" border="0" src="spacer.gif" /></a> |
</center> |
</center> |
|
|
<center> |
<center> |
Line 387 function catalog_info() {
|
Line 420 function catalog_info() {
|
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i0" width="15" height="19" src="/adm/lonLCDfont/l.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i0" width="15" height="19" src="/adm/lonLCDfont/l.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i1" width="15" height="19" src="/adm/lonLCDfont/o.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i1" width="15" height="19" src="/adm/lonLCDfont/o.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i2" width="15" height="19" src="/adm/lonLCDfont/n.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i2" width="15" height="19" src="/adm/lonLCDfont/n.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i3" width="15" height="19" src="/adm/lonLCDfont/hyphen.gif"></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i3" width="15" height="19" src="/adm/lonLCDfont/hyphen.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i4" width="15" height="19" src="/adm/lonLCDfont/c.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i4" width="15" height="19" src="/adm/lonLCDfont/c.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i5" width="15" height="19" src="/adm/lonLCDfont/a.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i5" width="15" height="19" src="/adm/lonLCDfont/a.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i6" width="15" height="19" src="/adm/lonLCDfont/p.gif" /></a></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i6" width="15" height="19" src="/adm/lonLCDfont/p.gif" /></a></td> |
Line 477 function catalog_info() {
|
Line 510 function catalog_info() {
|
</table> |
</table> |
</center> |
</center> |
|
|
<center> |
|
<a href="javascript:defdis();" |
|
onMouseOver="defdis();" |
|
><img width="103" height="3" border="0" src="spacer.gif" /></a> |
|
</center> |
|
|
|
<form name="server" action="/adm/logout" method="post" target="loncapaclient"> |
<form name="server" action="/adm/logout" method="post" target="loncapaclient"> |
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="postdata" value="none" /> |
<input type="hidden" name="command" value="none" /> |
<input type="hidden" name="command" value="none" /> |