version 1.55, 2002/05/24 19:45:14
|
version 1.73, 2002/10/29 20:57:31
|
Line 29 Remote Control
|
Line 29 Remote Control
|
// http://www.lon-capa.org/ |
// http://www.lon-capa.org/ |
// |
// |
|
|
6/12/00,6/13,6/14,6/15 Gerd Kortemeyer |
|
Sept Ben Tyszka |
|
10/2,10/3,10/4,10/17,10/19,3/1/1 Gerd Kortemeyer |
|
Jan Guy Albertelli |
|
5/1/1 Gerd Kortemeyer |
|
2/19 Guy Albertelli |
|
3/21 Gerd Kortemeyer |
|
4/30 Ben Tyszka |
|
5/2 Scott Harrison |
|
5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer |
|
7/24,8/6 Scott Harrison |
|
8/24 Gerd Kortemeyer |
|
YEAR=2002 |
|
March 2002 Matthew Hall |
|
3/19 Gerd Kortemeyer |
|
5/6/02 Matthew Hall |
|
|
|
--> |
--> |
<head> |
<head> |
<title>LON-CAPA Remote</title> |
<title>LON-CAPA Remote</title> |
Line 55 March 2002 Matthew Hall
|
Line 38 March 2002 Matthew Hall
|
background="remotebg.gif" |
background="remotebg.gif" |
onUnload="logout();" |
onUnload="logout();" |
> |
> |
|
<font size="1"> |
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
var statustop = ''; |
var statustop = ''; |
var statusbot = ''; |
var statusbot = ''; |
var active = 0; |
var active = 0; |
var dislocked = 1; |
var dislocked = 1; |
|
var statuslocked = 0; |
|
|
var imgpath='/res/adm/pages/'; |
var imgpath=':8080/res/adm/pages/'; |
|
var fontpath=':8080/adm/lonLCDfont/'; |
var currentURL=''; |
var currentURL=''; |
|
var reloadURL=''; |
|
var currentSymb=''; |
|
var reloadSymb=''; |
var currentStale=1; |
var currentStale=1; |
var menucltim; |
var menucltim; |
|
|
var clock=new Date(); |
var clockdelta=0; |
|
|
// not used (yet) |
// not used (yet) |
// var w_Annotator; |
// var w_Annotator; |
Line 103 for (var i=1;i<=3;i++) {
|
Line 90 for (var i=1;i<=3;i++) {
|
var clienthost=window.location.host; |
var clienthost=window.location.host; |
var clientwindow=opener; |
var clientwindow=opener; |
|
|
|
function syncclock(servertime) { |
|
var clientclock=new Date; |
|
clockdelta=servertime-clientclock.getTime(); |
|
} |
|
|
function advanceclock() { |
function advanceclock() { |
clock.setTime(clock.getTime()+1000); |
var clock=new Date(); |
statusbot=clock.getHours()+':'+clock.getMinutes()+':'+clock.getSeconds(); |
clock.setTime(clock.getTime()+clockdelta); |
if (!dislocked) { display(); } |
if (!statuslocked) { |
|
var days=""+clock.getDate(); |
|
if (days.length<2) { days="0"+days; } |
|
var mons=""+(clock.getMonth()+1); |
|
if (mons.length<2) { mons="0"+mons; } |
|
var years=""+clock.getYear(); |
|
|
|
if (years>1000) { |
|
years=years.substring(2,4); |
|
} else { |
|
years=years.substring(1,3); |
|
} |
|
statustop=mons+'/'+days+'/'+years; |
|
|
|
var secs=""+clock.getSeconds(); |
|
if (secs.length<2) { secs="0"+secs; } |
|
var mins=""+clock.getMinutes(); |
|
if (mins.length<2) { mins="0"+mins; } |
|
var hours=""+clock.getHours(); |
|
if (hours.length<2) { hours=" "+hours; } |
|
statusbot=hours+':'+mins+':'+secs; |
|
|
|
if (!dislocked) { showdisplay(); } |
|
} |
setTimeout('advanceclock();',1000); |
setTimeout('advanceclock();',1000); |
} |
} |
|
|
Line 151 function deactivate () {
|
Line 166 function deactivate () {
|
} |
} |
|
|
function display(utext,ltext) { |
function display(utext,ltext) { |
|
this.window.focus(); |
|
showdisplay(utext,ltext); |
|
} |
|
|
|
function showdisplay(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
|
dislocked=1; |
dislocked=1; |
if (utext == null) { utext = '';} |
if (utext == null) { utext = '';} |
if (ltext == null) { ltext = '';} |
if (ltext == null) { ltext = '';} |
Line 172 function display(utext,ltext) {
|
Line 191 function display(utext,ltext) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['i'+i].src=imgpath+ch+'.gif'; |
this.document['i'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
} |
} |
for (i=0;i<=7;i++) { |
for (i=0;i<=7;i++) { |
if (i<ltext.length) { |
if (i<ltext.length) { |
Line 182 function display(utext,ltext) {
|
Line 201 function display(utext,ltext) {
|
if (ch==':') { ch='colon'; } |
if (ch==':') { ch='colon'; } |
if (ch=='/') { ch='slash'; } |
if (ch=='/') { ch='slash'; } |
} else { ch='space'; } |
} else { ch='space'; } |
this.document['j'+i].src=imgpath+ch+'.gif'; |
this.document['j'+i].src="http://"+clienthost+fontpath+ch+'.gif'; |
} |
} |
} |
} |
} |
} |
Line 209 function clearbut(row,col) {
|
Line 228 function clearbut(row,col) {
|
} |
} |
|
|
function setstatus(tp,bt) { |
function setstatus(tp,bt) { |
this.document['led'].src="ledblink.gif"; |
this.document['led'].src="http://"+clienthost+imgpath+"ledblink.gif"; |
statustop=tp; |
statustop=tp; |
statusbot=bt; |
statusbot=bt; |
|
statuslocked=1; |
defdis(); |
defdis(); |
endsend(); |
|
} |
} |
|
|
function is_editable_resource (url) { |
function is_editable_resource (url) { |
|
// figure out if this a specific resource version |
var Chunks = url.split('.'); |
var Chunks = url.split('.'); |
var tmp = Chunks[Chunks.length-1]; |
var tmp = Chunks[Chunks.length-1]; |
if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { |
if ((Chunks.length > 1) && (Math.floor(tmp) == tmp)) { |
return true; |
return false; |
} |
} |
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) { |
function cstrgo(currenturl,defaulturl) { |
Line 233 function cstrgo(currenturl,defaulturl) {
|
Line 256 function cstrgo(currenturl,defaulturl) {
|
(! is_editable_resource(currenturl))) { |
(! is_editable_resource(currenturl))) { |
url = defaulturl; |
url = defaulturl; |
} else { |
} else { |
url = currenturl; |
var SlashChunks=currenturl.split('/'); |
var res_pattern = /^\/res\/[A-z0-p]+\//; |
SlashChunks[1]='priv'; |
if (res_pattern.test(url)) { |
var i; |
// map /res/103/turtle to /priv/turtle |
for (i=2;i<SlashChunks.length;i++) { |
url = url.replace(/^\/res\/[A-z0-9]+\//,'/priv/'); |
SlashChunks[i]=SlashChunks[i+1]; |
} else { |
|
url = defaulturl; |
|
} |
} |
|
SlashChunks.length--; |
|
url=SlashChunks.join('/'); |
} |
} |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="ledsend.gif"; |
if (url != '') { |
if (url != '') { |
Line 250 function cstrgo(currenturl,defaulturl) {
|
Line 273 function cstrgo(currenturl,defaulturl) {
|
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
|
statuslocked=0; |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="ledsend.gif"; |
if (url!='' && url!= null) { |
if (url!='' && url!= null) { |
currentURL = null; |
currentURL = null; |
|
currentSymb= null; |
clientwindow.window.location.href="http://"+clienthost+url; |
clientwindow.window.location.href="http://"+clienthost+url; |
} |
} |
} |
} |
|
|
function gopost(url,postdata) { |
function gopost(url,postdata) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
statuslocked=0; |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=postdata; |
this.document.server.postdata.value=postdata; |
this.document.server.command.value=''; |
this.document.server.command.value=''; |
this.document.server.url.value=''; |
this.document.server.url.value=''; |
|
this.document.server.symb.value=''; |
this.document.server.submit(); |
this.document.server.submit(); |
} |
} |
} |
} |
|
|
function gocmd(url,cmd) { |
function gocmd(url,cmd) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
statuslocked=0; |
|
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif"; |
if (url!='') { |
if (url!='') { |
this.document.server.action="http://"+clienthost+url; |
this.document.server.action="http://"+clienthost+url; |
this.document.server.postdata.value=''; |
this.document.server.postdata.value=''; |
this.document.server.command.value=cmd; |
this.document.server.command.value=cmd; |
this.document.server.url.value=currentURL; |
this.document.server.url.value=currentURL; |
|
this.document.server.symb.value=currentSymb; |
this.document.server.submit(); |
this.document.server.submit(); |
} |
} |
} |
} |
Line 328 function edit_bookmarks() {
|
Line 357 function edit_bookmarks() {
|
function catalog_info() { |
function catalog_info() { |
go(''); |
go(''); |
w_LONcatInfo_flag=1; |
w_LONcatInfo_flag=1; |
loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo"); |
loncatinfo=window.open(clientwindow.window.location.pathname+'.meta',"LONcatInfo"); |
} |
} |
// --> |
// --> |
</script> |
</script> |
Line 347 function catalog_info() {
|
Line 376 function catalog_info() {
|
<center> |
<center> |
<a href="javascript:defdis();" |
<a href="javascript:defdis();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img width="103" height="7" border="0" src="spacer.gif" /></a> |
><img width="103" height="3" border="0" src="spacer.gif" /></a> |
</center> |
</center> |
|
|
<center> |
<center> |
Line 355 function catalog_info() {
|
Line 384 function catalog_info() {
|
<tr><td bgcolor="#666666"> |
<tr><td bgcolor="#666666"> |
<table hspace="0" border="0" cellspacing="1" cellpadding="0"> |
<table hspace="0" border="0" cellspacing="1" cellpadding="0"> |
<tr> |
<tr> |
<td><img name="i0" width="15" height="19" src="l.gif" /></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><img name="i1" width="15" height="19" src="o.gif" /></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><img name="i2" width="15" height="19" src="n.gif" /></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><img name="i3" width="15" height="19" src="hyphen.gif"></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><img name="i4" width="15" height="19" src="c.gif" /></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><img name="i5" width="15" height="19" src="a.gif" /></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><img name="i6" width="15" height="19" src="p.gif" /></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><img name="i7" width="15" height="19" src="a.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="i7" width="15" height="19" src="/adm/lonLCDfont/a.gif" /></a></td> |
</tr> |
</tr> |
<tr> |
<tr> |
<td><img name="j0" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j0" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j1" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j1" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j2" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j2" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j3" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j3" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j4" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j4" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j5" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j5" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j6" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j6" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
<td><img name="j7" width="15" height="19" src="space.gif" /></td> |
<td><a href="javascript:defdis();" onMouseOver="defdis();"><img border="0" name="j7" width="15" height="19" src="/adm/lonLCDfont/space.gif" /></a></td> |
</tr> |
</tr> |
</table> |
</table> |
</td></tr> |
</td></tr> |
</table> |
</table> |
</center |
|
|
|
<center> |
|
<a href="javascript:defdis();" |
|
onMouseOver="defdis();" |
|
><img width="103" height="7" border="0" src="spacer.gif" /></a> |
|
</center> |
</center> |
|
|
<center> |
<center> |
Line 445 function catalog_info() {
|
Line 468 function catalog_info() {
|
<td><a href="javascript:eval(hr[103]);" onMouseOver="display(dt[103],db[103]);"><img width="43" height="20" border="0" name="b103" src="empty.gif" /></a></td> |
<td><a href="javascript:eval(hr[103]);" onMouseOver="display(dt[103],db[103]);"><img width="43" height="20" border="0" name="b103" src="empty.gif" /></a></td> |
</tr> |
</tr> |
|
|
|
<tr> |
|
<td><a href="javascript:eval(hr[111]);" onMouseOver="display(dt[111],db[111]);"><img width="43" height="20" border="0" name="b111" src="empty.gif" /></a></td> |
|
<td><a href="javascript:eval(hr[112]);" onMouseOver="display(dt[112],db[112]);"><img width="43" height="20" border="0" name="b112" src="empty.gif" /></a></td> |
|
<td><a href="javascript:eval(hr[113]);" onMouseOver="display(dt[113],db[113]);"><img width="43" height="20" border="0" name="b113" src="empty.gif" /></a></td> |
|
</tr> |
|
|
</table> |
</table> |
</center> |
</center> |
|
|
<center> |
<center> |
<a href="javascript:defdis();" |
<a href="javascript:defdis();" |
onMouseOver="defdis();" |
onMouseOver="defdis();" |
><img width="103" height="7" border="0" src="spacer.gif" /></a> |
><img width="103" height="3" border="0" src="spacer.gif" /></a> |
</center> |
</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" /> |
<input type="hidden" name="url" value="none" /> |
<input type="hidden" name="url" value="none" /> |
|
<input type="hidden" name="symb" value="none" /> |
</form> |
</form> |
<script> |
<script> |
activate(); |
activate(); |
</script> |
</script> |
|
</font> |
</body> |
</body> |
</html> |
</html> |
|
|