version 1.74, 2002/11/12 16:31:40
|
version 1.80, 2002/12/06 21:24:49
|
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 136 function windowcheck() {
|
Line 139 function windowcheck() {
|
} |
} |
clientwindow.name='loncapaclient'; |
clientwindow.name='loncapaclient'; |
clientwindow.menuwindow=self; |
clientwindow.menuwindow=self; |
|
extenddispclose(); |
} |
} |
|
|
function logout () { |
function logout () { |
Line 239 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; |
Line 351 function set_bookmark() {
|
Line 319 function set_bookmark() {
|
bmquery.document.close(); |
bmquery.document.close(); |
} |
} |
|
|
function extdisp() { |
function extenddispclose() { |
|
if (w_extdisp_flag>0) { |
|
if (extdisp!=null && !extdisp.closed) { |
|
extdisp.close(); |
|
} |
|
w_extdisp_flag=-1; |
|
} |
|
} |
|
|
|
function extenddisp() { |
go(''); |
go(''); |
|
w_extdisp_flag=1; |
extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", |
extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html", |
"ExtDisp", "width=400,height=450"); |
"ExtDisp", "width=400,height=450"); |
extdisp.document.clear(); |
extdisp.document.clear(); |
extdisp.document.writeln( |
extdisp.document.writeln( |
'<html><body bgcolor="#666666" text="#DDDDDD" link="#666666">'+ |
'<html><body bgcolor="#666666" text="#DDDDDD" link="#EEEEEE" '+ |
|
'onUnload="opener.w_extdisp_flag=-1;">'+ |
'<h2>LON-CAPA Extended Display Remote Control</h2>'+ |
'<h2>LON-CAPA Extended Display Remote Control</h2>'+ |
'<script>var currentURL="'+currentURL+'";self.focus();</script>'+ |
'<script>var currentURL="'+currentURL+'";self.focus();</script>'+ |
'<table border="2">'); |
'<table border="2"><tr><th>Select Functionality from Below</th>'+ |
|
'<th>Description</th></tr>'); |
for (var i=0; i<=ds.length; i++) { |
for (var i=0; i<=ds.length; i++) { |
if (typeof(ds[i])!='undefined') { |
if (typeof(ds[i])!='undefined') { |
if (ds[i]!='') { |
if (ds[i]!='') { |
extdisp.document.writeln( |
extdisp.document.writeln( |
'<tr><td><a href="javascript:opener.'+ |
'<tr><td align="center"><a href="javascript:opener.'+ |
hr[i]+';self.close();"><img border="0" src="'+ |
hr[i]+';">>>><img align="absmiddle" border="0" src="'+ |
this.document['b'+i].src+'" /><br />'+ |
this.document['b'+i].src+'" /><<<</a><br /> <br />'+ |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
'<table hspace="0" border="0" cellspacing="1" cellpadding="0"><tr>'); |
for (var j=0;j<=7;j++) { |
for (var j=0;j<=7;j++) { |
if (j<dt[i].length) { |
if (j<dt[i].length) { |
Line 419 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:extdisp();" |
<a href="javascript:extenddisp();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img width="104" height="10" border="0" src="spacer.gif" /></a> |
><img width="104" height="10" border="0" src="spacer.gif" /></a> |
</center> |
</center> |
Line 440 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> |