File:
[LON-CAPA] /
loncom /
html /
res /
adm /
pages /
menu.html
Revision
1.11:
download - view:
text,
annotated -
select for diffs
Tue Oct 10 10:05:17 2000 UTC (23 years, 11 months ago) by
tyszkabe
Branches:
MAIN
CVS tags:
HEAD
fixed annotator...instead of posting through the remote, now a dynamically genereated bookmark page automatically posts and get's annotations. This was the only way to keep the size of the annotations window the same.
<html>
<!--
The LearningOnline Network with CAPA
Remote Control
6/12/00,6/13,6/14,6/15 Gerd Kortemeyer
Sept Ben Tyszka
10/2,10/3,10/4 Gerd Kortemeyer
-->
<head>
<title>LON-CAPA Remote</title>
</head>
<body bgcolor="#BBBBBB" background="remotebg.gif" onUnload="logout();">
<basefont size=1>
<script>
statustop='';
statusbot='';
clienthost=window.location.host;
clientwindow=opener;
function windowcheck() {
if (clientwindow.closed) {
clientwindow=window.open("http://"+clienthost+"/");
}
clientwindow.name='loncapaclient';
}
function logout () {
windowcheck();
if (clientwindow.status!='MenuControl:nologout')
{
clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
}
}
function display(utext,ltext) {
var i; var ch;
for (i=0;i<=7;i++) {
if (i<utext.length) {
ch=utext.charAt(i);
if (ch==' ') { ch='space'; }
if (ch=='-') { ch='hyphen'; }
} else { ch='space'; }
this.document['i'+i].src=ch+'.gif';
}
for (i=0;i<=7;i++) {
if (i<ltext.length) {
ch=ltext.charAt(i);
if (ch==' ') { ch='space'; }
if (ch=='-') { ch='hyphen'; }
} else { ch='space'; }
this.document['j'+i].src=ch+'.gif';
}
}
function defdis() {
this.window.focus();
display(statustop,statusbot);
}
function setstatus(tp,bt) {
this.document['led'].src="ledblink.gif";
statustop=tp;
statusbot=bt;
defdis();
endsend();
}
function go(url) {
windowcheck();
this.document['led'].src="ledsend.gif";
if (url!='') {
clientwindow.window.location.href="http://"+clienthost+url;
}
}
function gopost(url,postdata) {
windowcheck();
this.document['led'].src="ledsend.gif";
if (url!='') {
this.document.server.action="http://"+clienthost+url;
this.document.server.postdata.value=postdata;
this.document.server.submit();
}
}
function annotate() {
annotator=window.open('','Annotator','width=365,height=265,scrollbars=0');
anndoc=annotator.document;
anstr="<html><body onload='Javascript:document.goannotate.submit();'>";
anstr+="<form name='goannotate' target='Annotator' method='post' action='/adm/annotations'>";
anstr+="<input type='hidden' name='urlnew' value='"+clientwindow.location.href+"'>";
anstr+="</form></body></html>";
anndoc.write(anstr);
anndoc.close();
}
function set_bookmark() {
go('');
prompt("Please enter a name for this bookmark.",
clientwindow.window.location.href);
}
function edit_bookmarks() {
go('');
window.open("http://"+clienthost+"/adm/bookmarks",
"BookmarkPal", "width=400,height=505,scrollbars=0");
}
</script>
<center>
<table border=0 cellspacing=0 cellpadding=0>
<tr><td>
<a href="javascript:defdis();"
onMouseOver="defdis();"
><img border=0 src="title.gif"></a>
</td><td>
<img border=0 name="led" src="ledoff.gif">
</td></tr>
</table>
<br>
<table border=0 cellspacing=1 cellpadding=1>
<tr><td bgcolor="#666666">
<table border=0 cellspacing=1 cellpadding=0>
<tr>
<td><img name=i0 src=l.gif></td>
<td><img name=i1 src=o.gif></td>
<td><img name=i2 src=n.gif></td>
<td><img name=i3 src=hyphen.gif></td>
<td><img name=i4 src=c.gif></td>
<td><img name=i5 src=a.gif></td>
<td><img name=i6 src=p.gif></td>
<td><img name=i7 src=a.gif></td>
</tr>
<tr>
<td><img name=j0 src=space.gif></td>
<td><img name=j1 src=space.gif></td>
<td><img name=j2 src=space.gif></td>
<td><img name=j3 src=space.gif></td>
<td><img name=j4 src=space.gif></td>
<td><img name=j5 src=space.gif></td>
<td><img name=j6 src=space.gif></td>
<td><img name=j7 src=space.gif></td>
</tr>
</table>
</td>
</tr>
</table><br>
<a href="javascript:defdis();"
onMouseOver="defdis();"
><img border=0 src="spacer.gif"></a><br>
<img src="navmenu.gif" usemap="#navmenuMap" border=0><br>
<a href="javascript:defdis();"
onMouseOver="defdis();"
><img border=0 src="spacer.gif"></a><br>
<img src="fnkmenu.gif" usemap="#fnkmenuMap" border=0><br>
<a href="javascript:defdis();"
onMouseOver="defdis();"
><img border=0 src="spacer.gif"></a><br>
<img src="endmenu.gif" usemap="#endmenuMap" border=0>
</center>
<MAP NAME="fnkmenuMap">
<AREA SHAPE="rect" COORDS="4,3,34,21"
href="javascript:annotate();"
onMouseOver="display('my anno-','tations');"
>
<AREA SHAPE="rect" COORDS="35,3,65,21"
href="javascript:go('');"
onMouseOver="display('search','catalog');"
>
<AREA SHAPE="rect" COORDS="66,3,96,21"
href="javascript:go('');"
onMouseOver="display('feedback','on this');"
>
<AREA SHAPE="rect" COORDS="97,3,127,21"
href="javascript:go('');"
onMouseOver="display('my pre-','ferences');"
>
<AREA SHAPE="rect" COORDS="4,30,34,48"
href="javascript:go('');"
onMouseOver="display('catalog','info');"
>
<AREA SHAPE="rect" COORDS="35,30,65,48"
href="javascript:go('');"
onMouseOver="display('prepare','printout');"
>
<AREA SHAPE="rect" COORDS="66,30,96,48"
href="javascript:go('');"
onMouseOver="display('evaluate','this');"
>
<AREA SHAPE="rect" COORDS="97,30,127,48"
href="javascript:go('');"
onMouseOver="display('assign-','ments');"
>
<area shape="default"
href="javascript:defdis();"
onMouseOver="defdis()";
>
</MAP>
<MAP NAME="endmenuMap">
<AREA SHAPE="rect" COORDS="76,1,131,19"
href="javascript:logout();"
onMouseOver="display('logout','');"
>
<AREA SHAPE="rect" COORDS="39,0,69,19"
href="javascript:go('');"
onMouseOver="display('my desk','');"
>
<AREA SHAPE="rect" COORDS="1,1,30,19"
href="javascript:go('');"
onMouseOver="display('commu-','nication');"
>
<area shape="default"
href="javascript:defdis();"
onMouseOver="defdis()";
>
</MAP>
<MAP NAME="navmenuMap">
<AREA SHAPE="rect" COORDS="86,24,110,80"
href="javascript:windowcheck();gopost('/adm/flip',
'forward:'+clientwindow.window.location.href);"
onMouseOver="display('go','forward');"
>
<AREA SHAPE="rect" COORDS="20,23,44,81"
href="javascript:windowcheck();gopost('/adm/flip',
'back:'+clientwindow.window.location.href);"
onMouseOver="display('go','back');"
>
<AREA SHAPE="rect" COORDS="35,72,95,97"
href="javascript:windowcheck();gopost('/adm/flip',
'down:'+clientwindow.window.location.href);"
onMouseOver="display('go level','down');"
>
<AREA SHAPE="rect" COORDS="36,7,94,31"
href="javascript:windowcheck();gopost('/adm/flip',
'up:'+clientwindow.window.location.href);"
onMouseOver="display('go level','up');"
>
<AREA SHAPE="circle" COORDS="64,51,21"
href="javascript:go('');"
onMouseOver="display('return','location');"
>
<AREA SHAPE="polygon" COORDS="2,2,42,2,2,42"
href="javascript:go('/adm/roles');"
onMouseOver="display('enter','course');"
>
<AREA SHAPE="polygon" COORDS="2,103,42,103,2,63"
href="javascript:set_bookmark();"
onMouseOver="display('set','bookmark');"
>
<AREA SHAPE="polygon" COORDS="127,2,87,2,127,42"
href="javascript:go('');"
onMouseOver="display('navigate','maps');"
>
<AREA SHAPE="polygon" COORDS="128,102,89,102,128,63"
href="javascript:edit_bookmarks();"
onMouseOver="display('go to','bookmark');"
>
<area shape="default"
href="javascript:defdis();"
onMouseOver="defdis()";
>
</MAP>
<form name='server' action='/adm/logout' method='post' target='loncapaclient'>
<input type='hidden' name='postdata' value='none'>
</form>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>