version 1.40, 2001/11/29 19:26:25
|
version 1.51, 2002/05/13 19:18:29
|
Line 41 Jan Guy Albertelli
|
Line 41 Jan Guy Albertelli
|
5/4,5/9,5/28,5/30,6/1,6/2,6/3,6/8,6/15,6/16 Gerd Kortemeyer |
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 |
7/24,8/6 Scott Harrison |
8/24 Gerd Kortemeyer |
8/24 Gerd Kortemeyer |
|
YEAR=2002 |
|
March 2002 Matthew Hall |
|
3/19 Gerd Kortemeyer |
|
5/6/02 Matthew Hall |
|
|
|
// Note: use of style="background-image: url(remotebg.gif)" |
|
// in body tag causes trouble for NS4.x on multiple platforms. |
|
|
--> |
--> |
<head> |
<head> |
<title>LON-CAPA Remote</title> |
<title>LON-CAPA Remote</title> |
Line 49 Jan Guy Albertelli
|
Line 57 Jan Guy Albertelli
|
|
|
<body bgcolor="#BBBBBB" |
<body bgcolor="#BBBBBB" |
background="remotebg.gif" |
background="remotebg.gif" |
onUnload="logout();"> |
onUnload="logout();" |
|
> |
|
<style type="text/css"> |
|
</style> |
<basefont size="1" /> |
<basefont size="1" /> |
|
|
<script type="text/javascript"> |
<script type="text/javascript"> |
<!-- |
<!-- |
statustop=''; |
var statustop = ''; |
statusbot=''; |
var statusbot = ''; |
active=0; |
var active = 0; |
|
|
imgpath='/res/adm/pages/'; |
var imgpath='/res/adm/pages/'; |
|
|
var currentURL=''; |
var currentURL=''; |
var currentStale=1; |
var currentStale=1; |
Line 80 var w_LONcatInfo_flag=-1;
|
Line 91 var w_LONcatInfo_flag=-1;
|
// -1 means never yet opened/defined |
// -1 means never yet opened/defined |
/////////////////////////////////////// |
/////////////////////////////////////// |
|
|
hr=new Array; |
var hr = new Array; |
db=new Array; |
var db = new Array; |
dt=new Array; |
var dt = new Array; |
|
|
|
for (var i=1;i<=3;i++) { |
|
for (var j=1;j<=10;j++) { |
|
var index = 10*j+i; |
|
hr[index]=''; |
|
db[index]=''; |
|
dt[index]=''; |
|
} |
|
} |
|
|
clienthost=window.location.host; |
var clienthost=window.location.host; |
clientwindow=opener; |
var clientwindow=opener; |
|
|
function windowcheck() { |
function windowcheck() { |
if (clientwindow.closed) { |
if (clientwindow==null || clientwindow.closed) { |
clientwindow=window.open("http://"+clienthost+"/"); |
clientwindow=window.open("http://"+clienthost+"/",'', |
|
"height=400,width=440,"+ |
|
"scrollbars=1,toolbar=1,status=1,resizable=1,location=1,"+ |
|
"left=190,top=15,screenX=190,screenY=15"); |
} |
} |
clientwindow.name='loncapaclient'; |
clientwindow.name='loncapaclient'; |
|
clientwindow.menuwindow=self; |
} |
} |
|
|
function logout () { |
function logout () { |
windowcheck(); |
windowcheck(); |
if (clientwindow.status!='MenuControl:nologout') |
|
{ |
|
if (w_Annotator_flag!=-1 && annotator && !annotator.closed) { |
if (w_Annotator_flag!=-1 && annotator && !annotator.closed) { |
annotator.close(); |
annotator.close(); |
} |
} |
Line 111 function logout () {
|
Line 134 function logout () {
|
loncatinfo.close(); |
loncatinfo.close(); |
} |
} |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
} |
|
} |
} |
|
|
function activate () { |
function activate () { |
Line 126 function deactivate () {
|
Line 149 function deactivate () {
|
function display(utext,ltext) { |
function display(utext,ltext) { |
var i; var ch; |
var i; var ch; |
this.window.focus(); |
this.window.focus(); |
if (typeof(utext)=="undefined") { utext=''; } |
if (utext == null) { utext = '';} |
if (typeof(ltext)=="undefined") { ltext=''; } |
if (ltext == null) { ltext = '';} |
|
if (typeof(utext)!="string") { utext=''; } |
|
if (typeof(ltext)!="string") { ltext=''; } |
if ((utext=='') && (ltext=='')) { |
if ((utext=='') && (ltext=='')) { |
utext=statustop; |
utext=statustop; |
ltext=statusbot; |
ltext=statusbot; |
Line 181 function setstatus(tp,bt) {
|
Line 206 function setstatus(tp,bt) {
|
endsend(); |
endsend(); |
} |
} |
|
|
|
function cstrgo(currenturl,defaulturl) { |
|
windowcheck(); |
|
var url; |
|
if (currenturl == null || currenturl == '') { |
|
url = defaulturl; |
|
} else { |
|
url = currenturl; |
|
var res_pattern = /^\/res\/[A-z0-p]+\//; |
|
if (res_pattern.test(url)) { |
|
// map /res/103/turtle to /priv/turtle |
|
url = url.replace(/^\/res\/[A-z0-9]+\//,'/priv/'); |
|
} else { |
|
url = defaulturl; |
|
} |
|
} |
|
this.document['led'].src="ledsend.gif"; |
|
if (url != '') { |
|
clientwindow.window.location.href="http://"+clienthost+url; |
|
} |
|
} |
|
|
function go(url) { |
function go(url) { |
windowcheck(); |
windowcheck(); |
this.document['led'].src="ledsend.gif"; |
this.document['led'].src="ledsend.gif"; |
if (url!='') { |
if (url!='') { |
|
currentURL = null; |
clientwindow.window.location.href="http://"+clienthost+url; |
clientwindow.window.location.href="http://"+clienthost+url; |
} |
} |
} |
} |
Line 359 function catalog_info() {
|
Line 406 function catalog_info() {
|
|
|
<tr> |
<tr> |
<td><a href="javascript:eval(hr[101]);" onMouseOver="display(dt[101],db[101]);"><img border="0" name="b101" src="empty.gif"></img></a></td> |
<td><a href="javascript:eval(hr[101]);" onMouseOver="display(dt[101],db[101]);"><img border="0" name="b101" src="empty.gif"></img></a></td> |
<td colspan="2"><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="dempty.gif"></img></a></td> |
<td><a href="javascript:eval(hr[102]);" onMouseOver="display(dt[102],db[102]);"><img border="0" name="b102" src="empty.gif"></img></a></td> |
|
<td><a href="javascript:eval(hr[103]);" onMouseOver="display(dt[103],db[103]);"><img border="0" name="b103" src="empty.gif"></img></a></td> |
</tr> |
</tr> |
|
|
</table> |
</table> |
Line 380 activate();
|
Line 428 activate();
|
</script> |
</script> |
</body> |
</body> |
</html> |
</html> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|